Welcome to TechNet Blogs Sign in | Join | Help
Tech Ed 2008 - Demo 2 - Administering Servers in Bulk

Bonjour Bonjour

It’s time for Demo 2 – Administering Servers in Bulk.  I’ve attached the 4 scripts that I used.

Demo 2 – Administering Servers in Bulk

BulkServers1.ps1 – This script reads in a text file, containing 1 server per line.  It simply then writes the server names back to the console

BulkServers2.ps1 – This script extends the first script and simply gets the hostname, operating system and service pack level for each server listed in the input file.

BulkServers3.ps1 – This script gets a little bit more complex and in fact is rather exciting.  It again reads an input file and for each server, gets operating system information, bios information, writes this to a CSV file and then opens the csv file in your default CSV file handler.

BulkServers4.ps1 – The piece de resistance!  This script is very similar to the above script, except that rather than read an input file with server names, it connects to the Domain Controller container in the Active Directory, and gets information from all computers in that container.

Please note, there is no error checking in these scripts, and are purely working illustrations.  I would flesh these scripts out a bit more before I used them in anything other than a test infrastructure.

All done, stay tuned for Demo 3 – How Do I Know Which Classes to Use

That is all.


BenP

Posted: Thursday, June 12, 2008 6:39 PM by benp
Attachment(s): bulkservers.zip

Comments

Windows PowerShell said:

I mentioned that one of my favorite TechEd 2008 talks was Ben Pearce's talk, "Windows, PowerShell and

# June 18, 2008 1:47 PM

Gary said:

There does not appear to be any links to these scripts?

# June 18, 2008 2:02 PM

benp said:

Hi Gary

The scripts are attached as a zip file.  If you can't see the attachment on the front page, click the post title which will open the post in it's own page, and you should see the attachment there.

Let me know if you still have problems.

Thanks

BenP

# June 19, 2008 5:27 AM

The PowerShell Guy said:

An video interview the Ben Pearce at TechEd has been posted on Technet Edge here : http://edge.technet.com/Media/Powershell-tips-and-tricks-from-the-field-with-Ben-Pearce/

# June 23, 2008 1:36 PM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Page view tracker