none
How to hide Windows popup RRS feed

  • Question

  • Hello all,

    I have created small script which will run the command line(SLMGR /CKMS) to clear the KMS entry.

    when i run the script below windows pop up is coming,  help me to hide that pop up.

    This is the script i have used.

    On Error Resume Next
    Set WshShell = WScript.CreateObject("WScript.Shell")
    sCommandLine= "C:\Windows\System32\slmgr.vbs" & " /ckms"
    a = WshShell.Run (sCommandLine,0,True)

    Thanks 

    Suresh 


    THANKS SURESH M

    Wednesday, May 15, 2019 6:03 AM

All replies

  • cscript slmgr.vbs /ckms

    This will prevent the popup.


    \_(ツ)_/


    • Edited by jrv Wednesday, May 15, 2019 6:43 AM
    Wednesday, May 15, 2019 6:43 AM
  • I have tried with Cscript.exe (VBS NAME), but still showing the popup.

    Even we have tried with Cscript.exe //B (VBS Name) again same.


    THANKS SURESH M

    Wednesday, May 15, 2019 8:27 AM
  • Works fine for me.

    Don't use a script just type at a command prompt.


    \_(ツ)_/

    Wednesday, May 15, 2019 8:29 AM
  • yeah its works fine

    can i get this as VBS, so that i can deploy to the machines


    THANKS SURESH M

    Wednesday, May 15, 2019 1:39 PM
  • Use a batch file.  You don't need to deploy.  The script can access machine remotely.


    \_(ツ)_/

    Wednesday, May 15, 2019 4:27 PM