Created
February 14, 2018 14:55
-
-
Save ngetchell/9313dce01e5ee48b2e93e43ca832e4fd to your computer and use it in GitHub Desktop.
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
Function New-Employee { | |
[cmdletbinding()] | |
param( | |
[Parameter(Mandatory)] | |
$EmployeeID, | |
[Parameter(Mandatory)] | |
$FirstName, | |
[Parameter(Mandatory)] | |
$LastName, | |
[Parameter(ParameterSetName='IT Admin')] | |
[switch]$ITPermissions, | |
[Parameter(ParameterSetName='HR Associate')] | |
[switch]$HRPerms, | |
[Parameter(ParameterSetName='Sales Associate')] | |
[switch]$SalesPerms, | |
[Parameter(ParameterSetName='Contractor')] | |
[switch]$Contractor, | |
[ValidateSet("IT", "HR", "Sales")] | |
$NetworkShares = 'IT', | |
[switch]$O365Enabled | |
) | |
} | |
Show-Command New-Employee |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks! I like the concept, but would like to know how to convert this into a "actionable" script?