# MABDC Quick Provision - One Line Deploy # Usage: irm https://repo.mabdc.com/mabdc/scripts/raw/branch/main/quick-provision.ps1 | iex # Then run: Start-MabdcJoin -Department "IT" function Start-MabdcJoin { param( [Parameter(Mandatory=$true)] [ValidateSet("IT","Accounting","Design","Management","Teaching","Admin")] [string]$Department, [string]$PCName ) $scriptUrl = "https://repo.mabdc.com/mabdc/scripts/raw/branch/main/domain-join.ps1" $localPath = "$env:TEMP\mabdc-domain-join.ps1" [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 (New-Object System.Net.WebClient).DownloadFile($scriptUrl, $localPath) $params = @{ Department = $Department } if ($PCName) { $params.PCName = $PCName } & $localPath @params } Write-Host "" Write-Host " MABDC Quick Provision loaded!" -ForegroundColor Green Write-Host " Usage: Start-MabdcJoin -Department 'IT' -PCName 'IT-PC-001'" -ForegroundColor Cyan Write-Host " Departments: IT, Accounting, Design, Management, Teaching, Admin" -ForegroundColor Cyan Write-Host ""