wuauclt /detectnowbut now i want to execute that command from server so i don't need to do it manually on all over remote/client computers.
wuauclt /force
After googling awhile i found PsExec (free tools from microsoft) can do it.
Download pstools and extract it into C:/Windows/system32
Examples
The following command launches an interactive command prompt on \\marklap:
psexec \\marklap cmdThis command executes IpConfig on the remote system with the /all switch, and displays the resulting output locally:
psexec \\marklap ipconfig /allThis command copies the program test.exe to the remote system and executes it interactively:
psexec \\marklap -c test.exeSpecify the full path to a program that is already installed on a remote system if its not on the system's path:
psexec \\marklap c:\bin\test.exeRun Regedit interactively in the System account to view the contents of the SAM and SECURITY keys::
psexec -i -d -s c:\windows\regedit.exeTo run Internet Explorer as with limited-user privileges use this command:
psexec -l -d "c:\program files\internet explorer\iexplore.exe"References:
http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx
3 comments:
This is really interesting. I hadn't heard of psexec before, so I'm going to have to take a look at it. There doesn't appear to be a lot of intrinsic security to it, but on a trusted network it wouldn't be so bad.
Trackback
If ssh isn't an option, I like winexe for a zero-configuration option. winexe works on any host (assuming the IPC$ (I think?) share is exposed) to execute commands. After winexe authenticates, it checks to see if the winexe service is running, and if not, copies up a binary and starts that service and then gives you a session on it. So all you need is a linux box with winexe and you can remote into any windows host without touching the windows host. Very neat.
Hi matt,
I don't think it's encrypted. I use it on our office network so that should be quite secure to use this psexec.
You have a great blog. Hope i can visit and drop comments in your blog soon.
Hi Jordan,
That's interesting tips. Thank you. Will make a review about this soon.
Post a Comment