cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
teejayuu
Engaged Sweeper
Hello

Has anyone tried running wuauclt.exe remotely? I've read that you can you:

psexec \\RemoteMachine -d C:\windows\system32\wuauclt.exe /detectnow


How would I go about creating a Custom action to do this?
Tony In view of the fact that God limited the intelligence of man, it seems unfair that He did not also limit his stupidity. Konrad Adenauer
3 REPLIES 3
Daniel_B
Lansweeper Alumni
1. Test your asset action in a command prompt on the computer you are using to open the web console. If you place your files into the action folder on your Lansweeper server, be sure that it's folder path is set correctly under Configuration\Asset pages, section Action path and that you use {actionpath} as placeholder in your Action's command.

2. Use the deployment feature for scripts or commands you would like to execute on target computer. This is more flexible, gives you a better overview and you don't need to use psexec.
LewisJPeters
Engaged Sweeper II
Doesn't work for me, keeps saying file not found even though both files are in the action path
sammy-m
Engaged Sweeper
Hi,

I made a batch called wsus-now.bat with the following and copy it to the lansweeper$ folder:

wuauclt /ResetAuthorization /DetectNow
wuauclt /ReportNow

My custom action look like this:
psexec.exe \\{computer} -c -d -f {actionpath}\WSUS-NOW.bat

hope this helps.

sammy