Update 'DeployTools/Deploy-FirstBoot.ps1'

This commit is contained in:
Bram Prieshof
2022-03-31 13:27:48 +00:00
parent e2b1c6b665
commit 0169acc9b3

View File

@@ -24,7 +24,7 @@ $ta = Get-CimInstance -ClassName SoftwareLicensingProduct -Filter "PartialProduc
if ($ta.LicenseStatus -eq 1) {Write-Output "Activation [OK]"} else {Write-Output "Activation [Error, Opening settings]";Start-Process "ms-settings:activation"; pause }
Write-Output "Getting System name"
$sysid = Read-Host -Prompt 'Please enter system ID (example: DT001)'
$sysid = Read-Host -Prompt 'Please enter asset ID:'
Rename-Computer -NewName $sysid
Write-Output "System name [OK]"