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
# | |
# Script to set the computername to be the same as the name of the virtual machine and turn off password complexity and | |
# expiration. We do that because we just use this for scrap, throwaway VMs | |
# | |
Set-ExecutionPolicy RemoteSigned | |
Enable-psremoting -Force | |
$virtualmachinename= (Get-ItemProperty 'HKLM:\software\microsoft\virtual machine\guest\parameters').virtualmachinename |
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
<?xml version="1.0" encoding="utf-8"?> | |
<!-- Goes in C:\Windows\System32\Sysprep where --> | |
<unattend xmlns="urn:schemas-microsoft-com:unattend"> | |
<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>0809:00000809</InputLocale> | |
<SystemLocale>en-GB</SystemLocale> | |
<UILanguage>en-GB</UILanguage> | |
<UserLocale>en-GB</UserLocale> | |
</component> |
NewerOlder