Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <settings pass="specialize">
- <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <InputLocale>en-IE</InputLocale>
- <SystemLocale>en-IE</SystemLocale>
- <UILanguage>en-IE</UILanguage>
- <UserLocale>en-IE</UserLocale>
- <UILanguageFallback></UILanguageFallback>
- </component>
- <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <RunAsynchronous>
- <RunAsynchronousCommand wcm:action="add">
- <Path>powershell.exe –ExecutionPolicy Bypass -File "\serverstoreSoftwarePowershellUnattendedInstallComputerName.ps1"</Path>
- <Description>Use script to rename computer with Serial number</Description>
- <Order>1</Order>
- </RunAsynchronousCommand>
- </RunAsynchronous>
- </component>
- </settings>
- <settings pass="oobeSystem">
- <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <InputLocale>en-IE</InputLocale>
- <SystemLocale>en-IE</SystemLocale>
- <UILanguage>en-IE</UILanguage>
- <UserLocale>en-IE</UserLocale>
- </component>
- </settings>
- $Serial = Get-WmiObject win32_bios | select -expand serialnumber
- $CompName = "A" + $Serial
- Rename-Computer $CompName
Add Comment
Please, Sign In to add comment