Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
@mexicangangboss

This comment has been minimized.

Copy link

mexicangangboss commented Jan 30, 2019

Awesome. Love your blog by the way!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment