Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SOLVED] RegUpdateAllUsers does not update HKCU Default when run on Windows 8.1 professional #2

Open
mjs6161970 opened this issue Oct 31, 2014 · 0 comments

Comments

@mjs6161970
Copy link

mjs6161970 commented Oct 31, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant