Created
July 25, 2019 20:35
-
-
Save tstolswo/2005c26867f6b6ddbee9c9263954ffeb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PowerShell -ExecutionPolicy Bypass -Command "(New-Object -COMObject Microsoft.SMS.TSEnvironment).Value('OSDComputerName') = (Get-CimInstance -Class Win32_BIOS).SerialNumber -replace '-' -replace '^(.{15})(.+)','$1'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment