This script list all servers in Active Directory running on Windows 2008 and Windows 2008 R2 and check the service pack level (SP2 for Windows 2008 and SP1 for Windows 2008 R2)

Script (with Microsoft Active Directory module loaded : import-module activedirectory) :

Script (with Quest Active Directory module) :

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Social Media Auto Publish Powered By : XYZScripts.com
%d bloggers like this: