Created
September 5, 2018 14:20
-
-
Save ScriptingPro/56496f6d453b269bfaabe149c28962fd to your computer and use it in GitHub Desktop.
AD Object Property Types and New-AD* Cmdlet Parameter Types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Determine which AD Group attributes are of type string | |
$GetGroupStringProperties = $((Get-ADGroup -Filter * -ResultSetSize 1 -Properties *).psobject.properties | ?{$_.TypeNameOfValue -eq "System.String"}).Name | |
# Determine which parameters are expecting strings for New-AdGroup | |
$NewGroupStringParameters = $((Get-Help New-ADGroup).parameters.parameter | ?{$_.type.name -eq "string"}).Name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment