Code: Select all
^!+x::run net stop "wuauserv"
Code: Select all
^!+x::RunWait, %comspec% /c net ... , , hide
Anyone know how I can do this?
Thank you!
Code: Select all
^!+x::run net stop "wuauserv"
Code: Select all
^!+x::RunWait, %comspec% /c net ... , , hide
Code: Select all
; Prompt to 'Run as Admin', i.e. show UAC dialog
If Not A_IsAdmin
{
Run *RunAs "%A_ScriptFullPath%" ; Requires v1.0.92.01+
ExitApp
}
; Stop and delete the Retail Demo service in Windows 10
RunWait,sc stop "RetailDemo",,hide
RunWait,sc config "RetailDemo" start= disabled,,hide
RunWait,sc delete "RetailDemo",,hide
Code: Select all
REM Start the Windows Update and
REM Background Intelligent Transfer services
sc config wuauserv start= auto
sc config bits start= auto
net start wuauserv
net start bits
REM Now run Windows Update and wait
control /name Microsoft.WindowsUpdate
pause
REM When finished, stop the services and disable them
net stop wuauserv
net stop bits
sc config wuauserv start= disabled
sc config bits start= disabled
Users browsing this forum: RandomBoy and 252 guests