Jump to content

not really into programming, can someone help me with this? im trying to run windows update to almost a hundreds of machines is there a way to run windows update through script? i know the command wuauclt /detectnow /updatenow . what i want my script to do is to check online for updates from windows update, because currently im doing it manually is this possible?

Link to comment
https://linustechtips.com/topic/902940-help-batch-scripting/
Share on other sites

Link to post
Share on other sites

learn programming, don't take someone's free help when it comes to administration

Join the Appleitionist cause! See spoiler below for answers to common questions that shouldn't be common!

Spoiler

Q: Do I have a virus?!
A: If you didn't click a sketchy email, haven't left your computer physically open to attack, haven't downloaded anything sketchy/free, know that your software hasn't been exploited in a new hack, then the answer is: probably not.

 

Q: What email/VPN should I use?
A: Proton mail and VPN are the best for email and VPNs respectively. (They're free in a good way)

 

Q: How can I stay anonymous on the (deep/dark) webzz???....

A: By learning how to de-anonymize everyone else; if you can do that, then you know what to do for yourself.

 

Q: What Linux distro is best for x y z?

A: Lubuntu for things with little processing power, Ubuntu for normal PCs, and if you need to do anything else then it's best if you do the research yourself.

 

Q: Why is my Linux giving me x y z error?

A: Have you not googled it? Are you sure StackOverflow doesn't have an answer? Does the error tell you what's wrong? If the answer is no to all of those, message me.

 

Link to comment
https://linustechtips.com/topic/902940-help-batch-scripting/#findComment-11110428
Share on other sites

Link to post
Share on other sites

I'm not a programmer so I don't know how to do it but tinkering with basic level programming (this might be considered dirty programming) I've written batch files from within C# or VB coded applications and launched those files. So in theory if you can write a script that creates and executes the batch like on the desktop or just the C:/ directory then that'd check & update the systems all at once over the network.

 

This isn't a direct answer though. You'll still have to do your own research.

Link to comment
https://linustechtips.com/topic/902940-help-batch-scripting/#findComment-11110468
Share on other sites

Link to post
Share on other sites

You could use PSTOOLS - It essentially runs a command on another computer.

But it really depends on how the computers are configured to if it works or not.

If you're on a domain network then you'd just pass a network username and password but if not then you're going to have to work out how to pass different credentials per computer.

 

For a domain network you could just create a list of every computer and then just loop through it via a batch file, executing the PSEXEC command each time.

Link to comment
https://linustechtips.com/topic/902940-help-batch-scripting/#findComment-11112957
Share on other sites

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

×