Jump to content

How to remote trigger wuauclt /updatenow


DanielK
 Share

Recommended Posts

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. :'(

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...