How do I script Windows?

  • Thread starter newjerseyrunner
  • Start date
  • #1
newjerseyrunner
1,535
637
I'm starting to get really annoyed trying to script a new server installation. I found out I have to go into some control panel, make some adjustments, click next, next, then save. No. Just xxx no!

Why is there no documentation anywhere that I can find about how to do it easily? How do I make changes to the control panel without actually going through the stupid control panel? Where are the files that these settings are actually stored in?

"Oh, I want to make changes to my network." - Microsoft Sally
"Okay, instead of having an /etc/network.d, let's give the user all these windows and buttons because it looks pretty." - Microsoft Dick
"Why not make it easier for the tech people who actually have to do these operations and don't care about or even plan on seeing those buttons and have to do it on entire racks of servers all at once?"- Microsoft Sally
"F*ck those people."- Microsoft Dick

Where is documentation on the inner workings of this stupid operating system?

Or, maybe somebody just knows. Where is the Local Server Roles so that I can enable Windows Media Server?

/rant/question
 

Answers and Replies

  • #2
fresh_42
Mentor
Insights Author
2022 Award
17,853
19,125
Have you tried msconfig in the command line? O.k., it's not a batch, but maybe less to click though.
 
  • Like
Likes newjerseyrunner
  • #3
newjerseyrunner
1,535
637
It's been something I've been looking into for doing this. It looks like it allows you to basically script what the mouse and keyboard are doing, is that right?
 
  • #4
fresh_42
Mentor
Insights Author
2022 Award
17,853
19,125
? You can try it without risk as long as you do not make changes. It allows you to control startup procedures and services as a whole. There have been also default paths and variables in earlier versions somewhere, but I have forgotten where or if it is still available outside the registry. The latter can also be manually adjusted by regedit in the command line. (But make a copy of it before doing so. You can destruct the OS there.) But to switch on and off services msconfig should do.
 
  • #5
Svein
Science Advisor
Insights Author
2,274
787
I'm starting to get really annoyed trying to script a new server installation. I found out I have to go into some control panel, make some adjustments, click next, next, then save. No. Just f*cking no!
There are several ways of doing this:
  • The advanced way: Learn to create an installation file (*.msi). Warning: This is complex!
  • The Command Prompt way: Learn Powershell and all its associated commands.
  • The hacker way: Get hold of one of those utilities that can record your key presses and mouse clicks, record your actions and use the record to play back the actions.
There may be more options, but these are just off the top of my head.
 

Suggested for: How do I script Windows?

Replies
5
Views
394
Replies
26
Views
928
Replies
15
Views
671
Replies
10
Views
705
Replies
20
Views
2K
Top