When I teach PowerShell, I point out the consistency within and across the product. When you learn something, it can be broadly used in other circumstances. This is the power of knowledge transfer – learning things once and using that knowleldge to solve...
< # .SYNOPSIS This script demonstrates the confirmance level enum. .DESCRIPTION This script displays the values form the conformancelevel enum and checks it against a value. .NOTES ...
I’ve been reading Jeffrey Snover's discussions on ENUMs over on the PowerShell Team blog ( here , and here ). I knew most of this stuff and have been playing with Enums and PowerShell for a while. I’ve created a bunch of sample scripts...
# Get-DomainModeEnumValues.ps1 # Prints out the values of the DomainMode Enum # Thomas Lee - tfl@psp.co.uk # Enumerate System.DirectoryServices.ActiveDirectory.DomainMode $enums =[enum]::GetValues([System.DirectoryServices.ActiveDirectory.DomainMode]) ...
# Get-ForestModeEnumValues.ps1 # Prints out the values of the ForestMode Enum # Thomas Lee - tfl@psp.co.uk # Enumerate System.DirectoryServices.ActiveDirectory.forestmode $enums =[enum]::GetValues([System.DirectoryServices.ActiveDirectory.ForestMode]) ...