PeetersOnline.nl
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!
No related posts.
2 Responses to Really Quick Server Info
Tags
Active Directory API bind order cleanup cluster CPU Custom Fields datastores description device management directory tree errors Event Log file name filter Fun function HA IT known issues License Server LUN multipath NIC objects Oneliner portgroups PowerCLI PowerShell profile recursive Registry Scripts security session share snapshots SQL Stat VI Toolkit VMware vSphere WMI WSUS ZenArchives
- July 2012
- July 2011
- February 2011
- January 2011
- December 2010
- May 2010
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008





Hi,
i am getting the below error when i run this script.
The term ‘Get-QADComputer’ is not recognized as a cmdlet, function, operable program, or script file. Verify the term a
nd try again.
At C:\get-myserver.ps1:5 char:22
+ Else {Get-QADComputer <<<< -searchRoot “OU=Servers,DC=MYDOMAIN,DC=LOCAL” -name $ServerName -sizeLimit 0 | Select-Obj
ect Name, Description, OSName, OSServicePack, ParentContainer, @{N=”Model”;E={(Get-WmiObject -Class Win32_ComputerSyste
m -ComputerName $_.Name).Model}}}
Could you please help?
Regards
Sumit
Hi Sumit,
Looks like you are missing the Quest AD snapin.
Download it at : http://www.quest.com/activeroles-server/arms.aspx and add it using add-pssnapin.
Good luck!
Hugo