Tag Archives: Server Information

Really Quick Server Info

Today’s Helpful Function of the Day is a great one to store in your profile. (Don’t know how to create or update your own custom profile? Read this.) It’s syntax is a simple as:

Get-MyServer SERVERNAME

It returns server information such as Operating System Version and Service Pack, Active Directory Description and Parent Container (Organizational Unit) and the Model of the computer (e.g. Proliant DL380 G3).
It also supports the use of wildcards in a server name. It will return the same info for all matches.

All of that in just 4 lines of powershell code. Gotta love it!

Get-MyServer (Rename to .ps1)

»crosslinked«