Sign in to follow this  
Followers 0
DanielK

How to remote trigger wuauclt /updatenow

2 posts in this topic

when I remote run the command the updatenow does not take effect. please advise. Thanks.

Share this post


Link to post
Share on other sites



Need more details, but assuming you're using Windows, I offer you this code to be used with psexec.

;  Remote Command Prompt.au3

$remoteName = InputBox ("Computer Name", "Enter the remote computer name to manage through a command prompt window on your desktop.")
$remoteName = "\\" & $remoteName
If $remoteName = "\\" Then Exit
ShellExecute ("C:\Windows\System32\cmd.exe", "/admin")
WinWait ("Administrator:")
Send ("psexec " & $remoteName & " cmd{ENTER}")
Exit

It opens a remote command prompt that allows you to do anything you could do if you were sitting at the remote console looking at a command prompt.  You'll need psexec.exe on your system and the remote system (system32 folder would work nicely).

Good luck,

_aleph_


Meds.  They're not just for breakfast anymore. :'(

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0