AutopilotOOBE.psm1
function Start-AutopilotOOBE { [CmdletBinding()] param ( [switch]$Assign, [string]$GroupTag, [string]$AddToGroup, [ValidateSet ( 'Sysprep', 'SysprepRestart', 'SysprepShutdown' )] [string]$PostAction = '', [ValidateSet ( 'CommandPrompt', 'PowerShell', 'PowerShellISE', 'WindowsExplorer', 'WindowsSettings', 'NetworkingWireless', 'Restart', 'Shutdown', 'Sysprep', 'SysprepRestart', 'SysprepShutdown', 'MDMDiag', 'MDMDiagAutopilot', 'MDMDiagAutopilotTPM' )] [string]$Run = 'PowerShell', [string]$Start = 'https://docs.microsoft.com/en-us/mem/autopilot/' ) $Global:AutopilotOOBE = @{ AddToGroup = $AddToGroup Assign = $Assign GroupTag = $GroupTag PostAction = $PostAction Run = $Run Start = $Start } & "$($MyInvocation.MyCommand.Module.ModuleBase)\AutopilotOOBE.ps1" } New-Alias -Name AutopilotOOBE -Value Start-AutopilotOOBE -Force -ErrorAction SilentlyContinue Export-ModuleMember -Function Start-AutopilotOOBE -Alias AutopilotOOBE |