Get-DomainRole.ps1

# Get-DomainRole.ps1 # Gets system's domain role using PowerShell # Sample 2 from http://msdn.microsoft.com/en-us/library/aa394586 # Thomas Lee - tfl@psp.co.uk # Get Computer info $Computer = Get - WmiObject - Class Win32_ComputerSystem # Print Role: " Computer `"{0}.{1}`" is a: " -f $Computer .Name, $computer .domain switch ( $computer .DomainRole) { 0 { " Standalone Workstation Read More...

Read the complete post at http://pshscripts.blogspot.com/2008/11/get-domainroleps1.html


Posted Nov 24 2008, 04:14 AM by PowerShell Scripts
Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.