Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Write-Host "Welcome to the Axxess All-In-One Deployment Script!" -ForegroundColor Yellow
- $inventory = Read-Host -Prompt "Enter the last 4 digits of the computer's inventory tag"
- $compFullName = "AXDALCELAP" + $inventory
- Write-Host "Computer's full name will be: $compFullName" -ForegroundColor Yellow
- $rawUsername = Read-Host "Enter Domain Admin Username"
- $domainUsername = "AXXESS\$rawUsername"
- $password = Read-Host "Enter Password for $domainUsername (secure)" -AsSecureString
- $credential = New-Object System.Management.Automation.PSCredential($domainUsername,$password)
- Add-Computer -ComputerName $compFullName -DomainName "axxess.local" -Credential $credential
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement