Skip to content

Instantly share code, notes, and snippets.

@tstolswo
Created July 25, 2019 20:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tstolswo/2005c26867f6b6ddbee9c9263954ffeb to your computer and use it in GitHub Desktop.
Save tstolswo/2005c26867f6b6ddbee9c9263954ffeb to your computer and use it in GitHub Desktop.
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