
With KMS, you can complete activations on your local network, eliminating the need for individual computers to connect to Microsoft for product activation.Ī KMS host key is used only to activate the KMS host with a Microsoft activation server. KMS is a lightweight service that does not require a dedicated system and can easily be co-hosted on a system that provides other services. If (($ErrCode -eq 0) -or ($ErrCode -eq 1) -or ($ErrCode -eq 3010)) ģ04: $Return = New-Object psobject -Property $Propertiesģ08: $ProtectionState = Get-WmiObject -Namespace ROOT\CIMV2\Security\Microsoftvolumeencryption -Class Win32_encryptablevolume -Filter "DriveLetter = '$DriveLetter'"ģ09: write-verbose 'Gathering BitLocker protection status infos.'ģ11: switch ($ProtectionState.GetProtectionStatus().Here is the official word from Microsoft: In particular, this paragraph: What is Key Management Service (KMS) and how does it work? $ErrCode = (Start-Process -FilePath $Executable -ArgumentList $Switches -Wait -Passthru).ExitCode Write-Host "Install"$DisplayName"." -NoNewline Set-Variable -Name ErrCode -Scope Local -Force Remove-Variable -Name Architecture -Scope Local -Force $Architecture = $Global:Architecture.OSArchitecture $Architecture = Get-WmiObject -Class Win32_OperatingSystem | Select-Object OSArchitecture Set-Variable -Name Architecture -Scope Local -Force There are often interval BIOS updates that have to be installed first before the latest can be installed. This allows for the BIOS to be completely updated. Also, I execute the script in two different task sequences. The BIOS password must be disabled if you want the BIOS to be updated.

I use the script below so that it can disable the BIOS password and execute the dcu-cli.exe in either a 32-bit or 64-bit system.

NOTE: I used Sapien's PowerShell Studio to write this script that significantly simplified the process!ĭuring the build process, I execute the Dell Command Update to make sure the latest drivers and BIOS version are installed.
