You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I Have a solution to run this in Windows 8.1 You can add the following lines and force the script to run as administrator (notice the extra s so that the other wshshell does not overwrite it) :
add this immediately after on error resume next :
Dim WshsShell, objsshell
Set WshsShell = WScript.CreateObject("WScript.Shell")
If WScript.Arguments.length = 0 Then
Set ObjsShell = CreateObject("Shell.Application")
ObjsShell.ShellExecute "wscript.exe", """" & _
WScript.ScriptFullName & """" &_
" RunAsAdministrator", , "runas", 1
Else
add this AFTER Processing Complete but BEFORE wscript.quit(0) :
End if
The text was updated successfully, but these errors were encountered:
I Have a solution to run this in Windows 8.1 You can add the following lines and force the script to run as administrator (notice the extra s so that the other wshshell does not overwrite it) :
add this immediately after
on error resume next
:add this AFTER
Processing Complete
but BEFOREwscript.quit(0)
:End if
The text was updated successfully, but these errors were encountered: