Skip to content

Instantly share code, notes, and snippets.

@martin9700
Created February 9, 2014 14:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save martin9700/8899889 to your computer and use it in GitHub Desktop.
Save martin9700/8899889 to your computer and use it in GitHub Desktop.
[CmdletBinding(DefaultParameterSetName="User")]
Param (
[Parameter(Mandatory=$true,
ValueFromPipeline=$true,
ParameterSetName="User")]
[Parameter(Mandatory=$true,
ValueFromPipeline=$true,
ParameterSetName="Enabled")]
[Parameter(Mandatory=$true,
ValueFromPipeline=$true,
ParameterSetName="Disabled")]
[string[]]$User
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment