From 9c248aa4192edf94efe4da8356e5462ce57c0fda Mon Sep 17 00:00:00 2001 From: Lightemerald Date: Mon, 6 Nov 2023 14:49:05 +0100 Subject: [PATCH] Update thomson script --- ...nattend thomson.xml => autounattend TS.xml | 154 +++++++++++++----- 1 file changed, 112 insertions(+), 42 deletions(-) rename autounattend thomson.xml => autounattend TS.xml (87%) diff --git a/autounattend thomson.xml b/autounattend TS.xml similarity index 87% rename from autounattend thomson.xml rename to autounattend TS.xml index 684ed9a..bc7b90a 100644 --- a/autounattend thomson.xml +++ b/autounattend TS.xml @@ -1,6 +1,6 @@  - + @@ -13,12 +13,78 @@ fr-FR + + + + 1 + 3 + + + M7XTQ-FN8P6-TTKYV-9D4CC-J462D true + + + 1 + cmd.exe /c ">>"X:\diskpart.txt" echo SELECT DISK=1" + + + 2 + cmd.exe /c ">>"X:\diskpart.txt" echo CLEAN" + + + 3 + cmd.exe /c ">>"X:\diskpart.txt" echo CONVERT GPT" + + + 4 + cmd.exe /c ">>"X:\diskpart.txt" echo CREATE PARTITION EFI SIZE=100" + + + 5 + cmd.exe /c ">>"X:\diskpart.txt" echo FORMAT QUICK FS=FAT32 LABEL="System"" + + + 6 + cmd.exe /c ">>"X:\diskpart.txt" echo CREATE PARTITION MSR SIZE=16" + + + 7 + cmd.exe /c ">>"X:\diskpart.txt" echo CREATE PARTITION PRIMARY" + + + 8 + cmd.exe /c ">>"X:\diskpart.txt" echo SHRINK MINIMUM=1000" + + + 9 + cmd.exe /c ">>"X:\diskpart.txt" echo FORMAT QUICK FS=NTFS LABEL="Windows"" + + + 10 + cmd.exe /c ">>"X:\diskpart.txt" echo CREATE PARTITION PRIMARY" + + + 11 + cmd.exe /c ">>"X:\diskpart.txt" echo FORMAT QUICK FS=NTFS LABEL="Recovery"" + + + 12 + cmd.exe /c ">>"X:\diskpart.txt" echo SET ID="de94bba4-06d1-4d40-a16a-bfd50179d6ac"" + + + 13 + cmd.exe /c ">>"X:\diskpart.txt" echo GPT ATTRIBUTES=0x8000000000000001" + + + 14 + cmd.exe /c diskpart /s X:\diskpart.txt >> X:\diskpart.log + + @@ -527,158 +593,162 @@ 126 - cmd.exe /c ">>"%TEMP%\wdac.ps1" echo Set-RuleOption -FilePath $xml -Option 10;" + cmd.exe /c ">>"%TEMP%\wdac.ps1" echo Set-RuleOption -FilePath $xml -Option 11;" 127 - cmd.exe /c ">>"%TEMP%\wdac.ps1" echo Merge-CIPolicy -PolicyPaths $xml -OutputFilePath $xml -Rules $(" + cmd.exe /c ">>"%TEMP%\wdac.ps1" echo Set-RuleOption -FilePath $xml -Option 10;" 128 - cmd.exe /c ">>"%TEMP%\wdac.ps1" echo @(" + cmd.exe /c ">>"%TEMP%\wdac.ps1" echo Merge-CIPolicy -PolicyPaths $xml -OutputFilePath $xml -Rules $(" 129 - cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule 'C:\Windows\*';" + cmd.exe /c ">>"%TEMP%\wdac.ps1" echo @(" 130 - cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule 'C:\Program Files\*';" + cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule 'C:\Windows\*';" 131 - cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule 'C:\Program Files (x86)\*';" + cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule 'C:\Program Files\*';" 132 - cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\debug\WIA\*' -Deny;" + cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule 'C:\Program Files (x86)\*';" 133 - cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\PLA\Reports\*' -Deny;" + cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\debug\WIA\*' -Deny;" 134 - cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\PLA\Rules\*' -Deny;" + cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\PLA\Reports\*' -Deny;" 135 - cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\PLA\Templates\*' -Deny;" + cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\PLA\Rules\*' -Deny;" 136 - cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\Registration\CRMLog\*' -Deny;" + cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\PLA\Templates\*' -Deny;" 137 - cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\System32\Com\dmp\*' -Deny;" + cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\Registration\CRMLog\*' -Deny;" 138 - cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\System32\FxsTmp\*' -Deny;" + cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\System32\Com\dmp\*' -Deny;" 139 - cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\System32\LogFiles\WMI\*' -Deny;" + cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\System32\FxsTmp\*' -Deny;" 140 - cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\System32\Microsoft\Crypto\RSA\MachineKeys\*' -Deny;" + cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\System32\LogFiles\WMI\*' -Deny;" 141 - cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\System32\spool\drivers\color\*' -Deny;" + cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\System32\Microsoft\Crypto\RSA\MachineKeys\*' -Deny;" 142 - cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\System32\spool\PRINTERS\*' -Deny;" + cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\System32\spool\drivers\color\*' -Deny;" 143 - cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\System32\spool\SERVERS\*' -Deny;" + cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\System32\spool\PRINTERS\*' -Deny;" 144 - cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\System32\Tasks_Migrated\*' -Deny;" + cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\System32\spool\SERVERS\*' -Deny;" 145 - cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\System32\Tasks\*' -Deny;" + cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\System32\Tasks_Migrated\*' -Deny;" 146 - cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\SysWOW64\Com\dmp\*' -Deny;" + cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\System32\Tasks\*' -Deny;" 147 - cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\SysWOW64\FxsTmp\*' -Deny;" + cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\SysWOW64\Com\dmp\*' -Deny;" 148 - cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\SysWOW64\Tasks\*' -Deny;" + cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\SysWOW64\FxsTmp\*' -Deny;" 149 - cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\Tasks\*' -Deny;" + cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\SysWOW64\Tasks\*' -Deny;" 150 - cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\Temp\*' -Deny;" + cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\Tasks\*' -Deny;" 151 - cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\tracing\*' -Deny;" + cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\Temp\*' -Deny;" 152 - cmd.exe /c ">>"%TEMP%\wdac.ps1" echo ) ^| ForEach-Object -Process { $_; }" + cmd.exe /c ">>"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\tracing\*' -Deny;" 153 - cmd.exe /c ">>"%TEMP%\wdac.ps1" echo );" + cmd.exe /c ">>"%TEMP%\wdac.ps1" echo ) ^| ForEach-Object -Process { $_; }" 154 - cmd.exe /c ">>"%TEMP%\wdac.ps1" echo $doc = [xml]::new();" + cmd.exe /c ">>"%TEMP%\wdac.ps1" echo );" 155 - cmd.exe /c ">>"%TEMP%\wdac.ps1" echo $doc.Load( $xml );" + cmd.exe /c ">>"%TEMP%\wdac.ps1" echo $doc = [xml]::new();" 156 - cmd.exe /c ">>"%TEMP%\wdac.ps1" echo $nsmgr = [System.Xml.XmlNamespaceManager]::new( $doc.NameTable );" + cmd.exe /c ">>"%TEMP%\wdac.ps1" echo $doc.Load( $xml );" 157 - cmd.exe /c ">>"%TEMP%\wdac.ps1" echo $nsmgr.AddNamespace( 'pol', 'urn:schemas-microsoft-com:sipolicy' );" + cmd.exe /c ">>"%TEMP%\wdac.ps1" echo $nsmgr = [System.Xml.XmlNamespaceManager]::new( $doc.NameTable );" 158 - cmd.exe /c ">>"%TEMP%\wdac.ps1" echo $doc.SelectSingleNode( '/pol:SiPolicy/pol:PolicyID', $nsmgr ).InnerText = $guid;" + cmd.exe /c ">>"%TEMP%\wdac.ps1" echo $nsmgr.AddNamespace( 'pol', 'urn:schemas-microsoft-com:sipolicy' );" 159 - cmd.exe /c ">>"%TEMP%\wdac.ps1" echo $doc.SelectSingleNode( '/pol:SiPolicy/pol:BasePolicyID', $nsmgr ).InnerText = $guid;" + cmd.exe /c ">>"%TEMP%\wdac.ps1" echo $doc.SelectSingleNode( '/pol:SiPolicy/pol:PolicyID', $nsmgr ).InnerText = $guid;" 160 - cmd.exe /c ">>"%TEMP%\wdac.ps1" echo $node = $doc.SelectSingleNode( '//pol:SigningScenario[@Value=''12'']/pol:ProductSigners/pol:AllowedSigners', $nsmgr );" + cmd.exe /c ">>"%TEMP%\wdac.ps1" echo $doc.SelectSingleNode( '/pol:SiPolicy/pol:BasePolicyID', $nsmgr ).InnerText = $guid;" 161 - cmd.exe /c ">>"%TEMP%\wdac.ps1" echo $node.ParentNode.RemoveChild( $node );" + cmd.exe /c ">>"%TEMP%\wdac.ps1" echo $node = $doc.SelectSingleNode( '//pol:SigningScenario[@Value=''12'']/pol:ProductSigners/pol:AllowedSigners', $nsmgr );" 162 - cmd.exe /c ">>"%TEMP%\wdac.ps1" echo $doc.Save( $xml );" + cmd.exe /c ">>"%TEMP%\wdac.ps1" echo $node.ParentNode.RemoveChild( $node );" 163 - cmd.exe /c ">>"%TEMP%\wdac.ps1" echo ConvertFrom-CIPolicy -XmlFilePath $xml -BinaryFilePath $binary;" + cmd.exe /c ">>"%TEMP%\wdac.ps1" echo $doc.Save( $xml );" 164 + cmd.exe /c ">>"%TEMP%\wdac.ps1" echo ConvertFrom-CIPolicy -XmlFilePath $xml -BinaryFilePath $binary;" + + + 165 powershell.exe -NoProfile -File "%TEMP%\wdac.ps1" @@ -704,7 +774,7 @@ Admin Administrators - password + Lprsnm4ehk26- true</PlainText> </Password> </LocalAccount> @@ -712,7 +782,7 @@ <Name>Prof</Name> <Group>Users</Group> <Password> - <Value>password</Value> + <Value>IPRprof2398</Value> <PlainText>true</PlainText> </Password> </LocalAccount> @@ -720,7 +790,7 @@ <Name>Eleve</Name> <Group>Users</Group> <Password> - <Value>password</Value> + <Value>eleve</Value> <PlainText>true</PlainText> </Password> </LocalAccount>