Guest User

Untitled

a guest
Apr 19th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. <settings pass="specialize">
  2. <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">
  3. <InputLocale>en-IE</InputLocale>
  4. <SystemLocale>en-IE</SystemLocale>
  5. <UILanguage>en-IE</UILanguage>
  6. <UserLocale>en-IE</UserLocale>
  7. <UILanguageFallback></UILanguageFallback>
  8. </component>
  9. <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">
  10. <RunAsynchronous>
  11. <RunAsynchronousCommand wcm:action="add">
  12. <Path>powershell.exe –ExecutionPolicy Bypass -File "\serverstoreSoftwarePowershellUnattendedInstallComputerName.ps1"</Path>
  13. <Description>Use script to rename computer with Serial number</Description>
  14. <Order>1</Order>
  15. </RunAsynchronousCommand>
  16. </RunAsynchronous>
  17. </component>
  18. </settings>
  19. <settings pass="oobeSystem">
  20. <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">
  21. <InputLocale>en-IE</InputLocale>
  22. <SystemLocale>en-IE</SystemLocale>
  23. <UILanguage>en-IE</UILanguage>
  24. <UserLocale>en-IE</UserLocale>
  25. </component>
  26. </settings>
  27.  
  28. $Serial = Get-WmiObject win32_bios | select -expand serialnumber
  29. $CompName = "A" + $Serial
  30. Rename-Computer $CompName
Add Comment
Please, Sign In to add comment