Answer the question
In order to leave comments, you need to log in
How to run two commands from the command line on all computers in the domain?
There is a need to run some commands on behalf of the domain admin in order for the WSUS servant to discover new machines, namely:
hostname.exe >>d:\logfile.txt 2>>&1
net stop wuauserv >>d:\logfile.txt 2>>&1
echo STARTstage2 >>d:\logfile.txt 2>>&1
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v SusClientIdValidation /f >>d:\logfile.txt 2>>&1
echo STARTstage3 >> d:\logfile.txt 2>>&1
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v SusClientId /f >>d:\logfile.txt 2>>&1
echo STARTstage4 >>d:\logfile .txt 2>>&1
reg add"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v SusClientIdValidation /t REG_BINARY >>d:\logfile.txt 2>>&1
echo STARTstage5 >>d:\logfile.txt 2>>&1
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v SusClientId /t REG_SZ >>d:\logfile.txt 2>>&1
echo STARTstage6 > >d:\logfile.txt 2>>&1
net start wuauserv >>d:\logfile.txt 2>>&1
echo STARTstage7 >>d:\logfile.txt 2>>& 1
EXIT
parameters, but I only had enough mind to delete the parameter itself and create it again)
I wanted to do it through bat-nichek and kaspersky security center, but this villain writes that he did everything, but in reality he didn’t. Through the GPO, there is no reason either, because the policy is updated every 60 minutes, and I only need a one-time pass.
Answer the question
In order to leave comments, you need to log in
And only one word repeats Aibolit: psexec.
This is if once, if many times - then the startup / login scripts.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question