-
-
Save markgyoni/e646d584b96c8c9ca037460b21215fe1 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
<?xml version="1.0" encoding="utf-8"?> | |
<unattend xmlns="urn:schemas-microsoft-com:unattend" | |
xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"> | |
<!--https://schneegans.de/windows/unattend-generator/?LanguageMode=Unattended&UILanguage=hu-HU&UserLocale=hu-HU&KeyboardLayout=040e%3A0000040e&ProcessorArchitecture=amd64&BypassNetworkCheck=true&ComputerNameMode=Custom&ComputerName=BPS-changeme&TimeZoneMode=Implicit&PartitionMode=Unattended&PartitionLayout=GPT&EspSize=300&RecoverySize=1000&RecoveryMode=Folder&WindowsEditionMode=Unattended&WindowsEdition=pro_education&UserAccountMode=Unattended&AccountName0=tempuser&AccountPassword0=&AccountGroup0=Administrators&AccountName1=&AccountName2=&AccountName3=&AccountName4=&AutoLogonMode=Own&PasswordExpirationMode=Default&LockoutMode=Default&AllowPowerShellScripts=true&WifiMode=Unattended&WifiName=Tbone++WiFi&WifiAuthentication=WPA2PSK&WifiPassword=asdasdasd&ExpressSettings=DisableAll&SystemScript0=copy+D%3A%5CBPS-CreateTask.ps1+C%3A%5CWindows&SystemScriptType0=Cmd&SystemScript1=copy+D%3A%5CBPS-PostSetup.ps1+C%3A%5CWindows&SystemScriptType1=Cmd&SystemScript2=&SystemScriptType2=Reg&SystemScript3=&SystemScriptType3=Vbs&FirstLogonScript0=%24username+%3D+%22tempuser%22%0D%0A%24command+%3D+%22C%3A%5CWindows%5CBPS-PostSetup.ps1%22%0D%0A%24trigger+%3D+New-ScheduledTaskTrigger+-AtLogOn+-User+%24username%0D%0A%24action+%3D+New-ScheduledTaskAction+-Execute+%22powershell.exe%22+-Argument+%22-Command+%24command%22%0D%0A%24principal+%3D+New-ScheduledTaskPrincipal+-UserId+%22NT+AUTHORITY%5CSYSTEM%22+-LogonType+ServiceAccount%0D%0ARegister-ScheduledTask+-TaskName+%22BPS-Post_Setup%22+-Trigger+%24trigger+-Action+%24action+-Principal+%24principal+-Force&FirstLogonScriptType0=Ps1&FirstLogonScript1=&FirstLogonScriptType1=Ps1&FirstLogonScript2=&FirstLogonScriptType2=Reg&FirstLogonScript3=&FirstLogonScriptType3=Vbs&UserOnceScript0=&UserOnceScriptType0=Cmd&UserOnceScript1=&UserOnceScriptType1=Ps1&UserOnceScript2=&UserOnceScriptType2=Reg&UserOnceScript3=&UserOnceScriptType3=Vbs&WdacMode=Skip--> | |
<settings pass="offlineServicing"></settings> | |
<settings pass="windowsPE"> | |
<component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" | |
publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> | |
<SetupUILanguage> | |
<UILanguage>hu-HU</UILanguage> | |
</SetupUILanguage> | |
<InputLocale>040e:0000040e</InputLocale> | |
<SystemLocale>hu-HU</SystemLocale> | |
<UILanguage>hu-HU</UILanguage> | |
<UserLocale>hu-HU</UserLocale> | |
</component> | |
<component name="Microsoft-Windows-Setup" processorArchitecture="amd64" | |
publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> | |
<ImageInstall> | |
<OSImage> | |
<InstallTo> | |
<DiskID>0</DiskID> | |
<PartitionID>3</PartitionID> | |
</InstallTo> | |
</OSImage> | |
</ImageInstall> | |
<UserData> | |
<ProductKey> | |
<Key>8PTT6-RNW4C-6V7J2-C2D3X-MHBPB</Key> | |
</ProductKey> | |
<AcceptEula>true</AcceptEula> | |
</UserData> | |
<RunSynchronous> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>1</Order> | |
<Path>cmd.exe /c ">>"X:\diskpart.txt" echo SELECT DISK=0"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>2</Order> | |
<Path>cmd.exe /c ">>"X:\diskpart.txt" echo CLEAN"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>3</Order> | |
<Path>cmd.exe /c ">>"X:\diskpart.txt" echo CONVERT GPT"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>4</Order> | |
<Path>cmd.exe /c ">>"X:\diskpart.txt" echo CREATE PARTITION EFI SIZE=300"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>5</Order> | |
<Path>cmd.exe /c ">>"X:\diskpart.txt" echo FORMAT QUICK FS=FAT32 | |
LABEL="System""</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>6</Order> | |
<Path>cmd.exe /c ">>"X:\diskpart.txt" echo CREATE PARTITION MSR SIZE=16"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>7</Order> | |
<Path>cmd.exe /c ">>"X:\diskpart.txt" echo CREATE PARTITION PRIMARY"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>8</Order> | |
<Path>cmd.exe /c ">>"X:\diskpart.txt" echo FORMAT QUICK FS=NTFS | |
LABEL="Windows""</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>9</Order> | |
<Path>cmd.exe /c ">>"X:\diskpart.log" diskpart.exe /s "X:\diskpart.txt""</Path> | |
</RunSynchronousCommand> | |
</RunSynchronous> | |
</component> | |
</settings> | |
<settings pass="generalize"></settings> | |
<settings pass="specialize"> | |
<component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" | |
publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> | |
<RunSynchronous> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>1</Order> | |
<Path>reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE" /v | |
BypassNRO /t REG_DWORD /d 1 /f</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>2</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo ^<WLANProfile | |
xmlns="http://www.microsoft.com/networking/WLAN/profile/v1"^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>3</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo ^<name^>Tbone | |
WiFi^</name^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>4</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo ^<SSIDConfig^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>5</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo ^<SSID^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>6</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo | |
^<hex^>54626F6E65202057694669^</hex^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>7</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo ^<name^>Tbone | |
WiFi^</name^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>8</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo ^</SSID^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>9</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo ^</SSIDConfig^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>10</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo | |
^<connectionType^>ESS^</connectionType^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>11</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo | |
^<connectionMode^>auto^</connectionMode^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>12</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo ^<MSM^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>13</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo ^<security^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>14</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo ^<authEncryption^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>15</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo | |
^<authentication^>WPA2PSK^</authentication^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>16</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo | |
^<encryption^>AES^</encryption^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>17</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo | |
^<useOneX^>false^</useOneX^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>18</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo ^</authEncryption^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>19</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo ^<sharedKey^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>20</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo | |
^<keyType^>passPhrase^</keyType^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>21</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo | |
^<protected^>false^</protected^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>22</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo | |
^<keyMaterial^>asdasdasd^</keyMaterial^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>23</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo ^</sharedKey^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>24</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo ^</security^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>25</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo ^</MSM^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>26</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo ^</WLANProfile^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>27</Order> | |
<Path>cmd.exe /c "2>&1 >>"%TEMP%\wifi.log" netsh.exe wlan add | |
profile filename="%TEMP%\wifi.xml" user=all"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>28</Order> | |
<Path>cmd.exe /c "del "%TEMP%\wifi.xml""</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>29</Order> | |
<Path>cmd.exe /c "2>&1 >>"%TEMP%\wifi.log" netsh.exe wlan connect | |
name="Tbone WiFi" ssid="Tbone WiFi""</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>30</Order> | |
<Path>powershell.exe -NoProfile -Command "Set-ExecutionPolicy -Scope | |
'LocalMachine' -ExecutionPolicy 'RemoteSigned' -Force;"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>31</Order> | |
<Path>cmd.exe /c "mkdir C:\Windows\Setup\Scripts"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>32</Order> | |
<Path>cmd.exe /c ">>"C:\Windows\Setup\Scripts\unattend-01.cmd" echo | |
Y29weSBEOlxCUFMtQ3JlYXRlVGFzay5wczEgQzpcV2luZG93cw=="</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>33</Order> | |
<Path>powershell.exe -NoProfile -Command | |
"$p='C:\Windows\Setup\Scripts\unattend-01.cmd'; $f=[System.IO.File]; | |
$f::WriteAllBytes($p, [convert]::FromBase64String($f::ReadAllText($p)));"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>34</Order> | |
<Path>C:\Windows\Setup\Scripts\unattend-01.cmd</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>35</Order> | |
<Path>cmd.exe /c ">>"C:\Windows\Setup\Scripts\unattend-02.cmd" echo | |
Y29weSBEOlxCUFMtUG9zdFNldHVwLnBzMSBDOlxXaW5kb3dz"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>36</Order> | |
<Path>powershell.exe -NoProfile -Command | |
"$p='C:\Windows\Setup\Scripts\unattend-02.cmd'; $f=[System.IO.File]; | |
$f::WriteAllBytes($p, [convert]::FromBase64String($f::ReadAllText($p)));"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>37</Order> | |
<Path>C:\Windows\Setup\Scripts\unattend-02.cmd</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>38</Order> | |
<Path> | |
cmd.exe /c ">>"C:\Windows\Setup\Scripts\unattend-03.ps1" echo | |
JHVzZXJuYW1lID0gInRlbXB1c2VyIg0KJGNvbW1hbmQgPSAiQzpcV2luZG93c1xCUFMtUG9zdFNldHVwLnBzMSINCiR0cmlnZ2VyID0gTmV3LVNjaGVkdWxlZFRhc2tUcmlnZ2VyIC1BdExvZ09uIC1Vc2VyICR1c2VybmFtZQ0KJGFjdGlvbiA9IE"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>39</Order> | |
<Path> | |
cmd.exe /c ">>"C:\Windows\Setup\Scripts\unattend-03.ps1" echo | |
5ldy1TY2hlZHVsZWRUYXNrQWN0aW9uIC1FeGVjdXRlICJwb3dlcnNoZWxsLmV4ZSIgLUFyZ3VtZW50ICItQ29tbWFuZCAkY29tbWFuZCINCiRwcmluY2lwYWwgPSBOZXctU2NoZWR1bGVkVGFza1ByaW5jaXBhbCAtVXNlcklkICJOVCBBVVRIT1JJ"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>40</Order> | |
<Path> | |
cmd.exe /c ">>"C:\Windows\Setup\Scripts\unattend-03.ps1" echo | |
VFlcU1lTVEVNIiAtTG9nb25UeXBlIFNlcnZpY2VBY2NvdW50DQpSZWdpc3Rlci1TY2hlZHVsZWRUYXNrIC1UYXNrTmFtZSAiQlBTLVBvc3RfU2V0dXAiIC1UcmlnZ2VyICR0cmlnZ2VyIC1BY3Rpb24gJGFjdGlvbiAtUHJpbmNpcGFsICRwcmluY2"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>41</Order> | |
<Path>cmd.exe /c ">>"C:\Windows\Setup\Scripts\unattend-03.ps1" echo | |
lwYWwgLUZvcmNl"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>42</Order> | |
<Path>powershell.exe -NoProfile -Command | |
"$p='C:\Windows\Setup\Scripts\unattend-03.ps1'; $f=[System.IO.File]; | |
$f::WriteAllBytes($p, [convert]::FromBase64String($f::ReadAllText($p)));"</Path> | |
</RunSynchronousCommand> | |
</RunSynchronous> | |
</component> | |
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" | |
publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> | |
<ComputerName>BPS-changeme</ComputerName> | |
</component> | |
</settings> | |
<settings pass="auditSystem"></settings> | |
<settings pass="auditUser"></settings> | |
<settings pass="oobeSystem"> | |
<component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" | |
publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> | |
<InputLocale>040e:0000040e</InputLocale> | |
<SystemLocale>hu-HU</SystemLocale> | |
<UILanguage>hu-HU</UILanguage> | |
<UserLocale>hu-HU</UserLocale> | |
</component> | |
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" | |
publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> | |
<UserAccounts> | |
<LocalAccounts> | |
<LocalAccount wcm:action="add"> | |
<Name>tempuser</Name> | |
<Group>Administrators</Group> | |
<Password> | |
<Value></Value> | |
<PlainText>true</PlainText> | |
</Password> | |
</LocalAccount> | |
</LocalAccounts> | |
</UserAccounts> | |
<AutoLogon> | |
<Username>tempuser</Username> | |
<Enabled>true</Enabled> | |
<LogonCount>1</LogonCount> | |
<Password> | |
<Value></Value> | |
<PlainText>true</PlainText> | |
</Password> | |
</AutoLogon> | |
<OOBE> | |
<ProtectYourPC>3</ProtectYourPC> | |
<HideEULAPage>true</HideEULAPage> | |
</OOBE> | |
<FirstLogonCommands> | |
<SynchronousCommand wcm:action="add"> | |
<Order>1</Order> | |
<CommandLine>reg.exe add "HKLM\SOFTWARE\Microsoft\Windows | |
NT\CurrentVersion\Winlogon" /v AutoLogonCount /t REG_DWORD /d 0 /f</CommandLine> | |
</SynchronousCommand> | |
<SynchronousCommand wcm:action="add"> | |
<Order>2</Order> | |
<CommandLine>powershell.exe -NoProfile -Command "Get-Content -LiteralPath | |
'C:\Windows\Setup\Scripts\unattend-03.ps1' -Raw | Invoke-Expression;"</CommandLine> | |
</SynchronousCommand> | |
</FirstLogonCommands> | |
</component> | |
</settings> | |
</unattend> |
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
<settings pass="specialize"> | |
<component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" | |
publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> | |
<RunSynchronous> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>1</Order> | |
<Path>reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE" /v | |
BypassNRO /t REG_DWORD /d 1 /f</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>2</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo ^<WLANProfile | |
xmlns="http://www.microsoft.com/networking/WLAN/profile/v1"^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>3</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo ^<name^>Tbone | |
WiFi^</name^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>4</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo ^<SSIDConfig^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>5</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo ^<SSID^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>6</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo | |
^<hex^>54626F6E65202057694669^</hex^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>7</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo ^<name^>Tbone | |
WiFi^</name^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>8</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo ^</SSID^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>9</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo ^</SSIDConfig^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>10</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo | |
^<connectionType^>ESS^</connectionType^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>11</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo | |
^<connectionMode^>auto^</connectionMode^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>12</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo ^<MSM^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>13</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo ^<security^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>14</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo ^<authEncryption^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>15</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo | |
^<authentication^>WPA2PSK^</authentication^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>16</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo | |
^<encryption^>AES^</encryption^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>17</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo | |
^<useOneX^>false^</useOneX^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>18</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo ^</authEncryption^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>19</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo ^<sharedKey^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>20</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo | |
^<keyType^>passPhrase^</keyType^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>21</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo | |
^<protected^>false^</protected^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>22</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo | |
^<keyMaterial^>wifipassword^</keyMaterial^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>23</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo ^</sharedKey^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>24</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo ^</security^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>25</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo ^</MSM^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>26</Order> | |
<Path>cmd.exe /c ">>"%TEMP%\wifi.xml" echo ^</WLANProfile^>"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>27</Order> | |
<Path>cmd.exe /c "2>&1 >>"%TEMP%\wifi.log" netsh.exe wlan add | |
profile filename="%TEMP%\wifi.xml" user=all"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>28</Order> | |
<Path>cmd.exe /c "del "%TEMP%\wifi.xml""</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>29</Order> | |
<Path>cmd.exe /c "2>&1 >>"%TEMP%\wifi.log" netsh.exe wlan connect | |
name="Tbone WiFi" ssid="Tbone WiFi""</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>30</Order> | |
<Path>powershell.exe -NoProfile -Command "Set-ExecutionPolicy -Scope | |
'LocalMachine' -ExecutionPolicy 'RemoteSigned' -Force;"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>31</Order> | |
<Path>cmd.exe /c "mkdir C:\Windows\Setup\Scripts"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>32</Order> | |
<Path>cmd.exe /c ">>"C:\Windows\Setup\Scripts\unattend-01.cmd" echo | |
Y29weSBEOlxCUFMtQ3JlYXRlVGFzay5wczEgQzpcV2luZG93cw=="</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>33</Order> | |
<Path>powershell.exe -NoProfile -Command | |
"$p='C:\Windows\Setup\Scripts\unattend-01.cmd'; $f=[System.IO.File]; | |
$f::WriteAllBytes($p, [convert]::FromBase64String($f::ReadAllText($p)));"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>34</Order> | |
<Path>C:\Windows\Setup\Scripts\unattend-01.cmd</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>35</Order> | |
<Path>cmd.exe /c ">>"C:\Windows\Setup\Scripts\unattend-02.cmd" echo | |
Y29weSBEOlxCUFMtUG9zdFNldHVwLnBzMSBDOlxXaW5kb3dz"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>36</Order> | |
<Path>powershell.exe -NoProfile -Command | |
"$p='C:\Windows\Setup\Scripts\unattend-02.cmd'; $f=[System.IO.File]; | |
$f::WriteAllBytes($p, [convert]::FromBase64String($f::ReadAllText($p)));"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>37</Order> | |
<Path>C:\Windows\Setup\Scripts\unattend-02.cmd</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>38</Order> | |
<Path> | |
cmd.exe /c ">>"C:\Windows\Setup\Scripts\unattend-03.ps1" echo | |
JHVzZXJuYW1lID0gInRlbXB1c2VyIg0KJGNvbW1hbmQgPSAiQzpcV2luZG93c1xCUFMtUG9zdFNldHVwLnBzMSINCiR0cmlnZ2VyID0gTmV3LVNjaGVkdWxlZFRhc2tUcmlnZ2VyIC1BdExvZ09uIC1Vc2VyICR1c2VybmFtZQ0KJGFjdGlvbiA9IE"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>39</Order> | |
<Path> | |
cmd.exe /c ">>"C:\Windows\Setup\Scripts\unattend-03.ps1" echo | |
5ldy1TY2hlZHVsZWRUYXNrQWN0aW9uIC1FeGVjdXRlICJwb3dlcnNoZWxsLmV4ZSIgLUFyZ3VtZW50ICItQ29tbWFuZCAkY29tbWFuZCINCiRwcmluY2lwYWwgPSBOZXctU2NoZWR1bGVkVGFza1ByaW5jaXBhbCAtVXNlcklkICJOVCBBVVRIT1JJ"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>40</Order> | |
<Path> | |
cmd.exe /c ">>"C:\Windows\Setup\Scripts\unattend-03.ps1" echo | |
VFlcU1lTVEVNIiAtTG9nb25UeXBlIFNlcnZpY2VBY2NvdW50DQpSZWdpc3Rlci1TY2hlZHVsZWRUYXNrIC1UYXNrTmFtZSAiQlBTLVBvc3RfU2V0dXAiIC1UcmlnZ2VyICR0cmlnZ2VyIC1BY3Rpb24gJGFjdGlvbiAtUHJpbmNpcGFsICRwcmluY2"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>41</Order> | |
<Path>cmd.exe /c ">>"C:\Windows\Setup\Scripts\unattend-03.ps1" echo | |
lwYWwgLUZvcmNl"</Path> | |
</RunSynchronousCommand> | |
<RunSynchronousCommand wcm:action="add"> | |
<Order>42</Order> | |
<Path>powershell.exe -NoProfile -Command | |
"$p='C:\Windows\Setup\Scripts\unattend-03.ps1'; $f=[System.IO.File]; | |
$f::WriteAllBytes($p, [convert]::FromBase64String($f::ReadAllText($p)));"</Path> | |
</RunSynchronousCommand> | |
</RunSynchronous> | |
</component> | |
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" | |
publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> | |
<ComputerName>orgname-changeme</ComputerName> | |
</component> | |
</settings> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment