Skip to content

Instantly share code, notes, and snippets.

@FracVX
Forked from ngetchell/New-Employee.ps1
Created August 8, 2019 18:23
Show Gist options
  • Save FracVX/ce873c36832e41206636c753b5f4efb1 to your computer and use it in GitHub Desktop.
Save FracVX/ce873c36832e41206636c753b5f4efb1 to your computer and use it in GitHub Desktop.
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