Update thomson script

This commit is contained in:
2023-11-06 14:49:05 +01:00
parent 556f4feb7a
commit 9c248aa419

View File

@@ -1,6 +1,6 @@
<?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=en-US&UserLocale=fr-FR&KeyboardLayout=040c%3A0000040c&ProcessorArchitecture=amd64&ComputerName=IPR-PC&TimeZoneMode=Explicit&TimeZone=Romance+Standard+Time&PartitionMode=Interactive&WindowsEditionMode=Unattended&WindowsEdition=pro&UserAccountMode=Unattended&AdministratorAccountName=Admin&AdministratorAccountName=&AdministratorAccountName=&AdministratorAccountName=&AdministratorAccountName=&UserAccountName=Prof&UserAccountName=Eleve&UserAccountName=&UserAccountName=&UserAccountName=&UserAccountName=&LockoutMode=Default&EnableLongPaths=true&EnableRemoteDesktop=true&HardenSystemDriveAcl=true&AllowPowerShellScripts=true&DisableLastAccess=true&NoAutoRebootWithLoggedOnUsers=true&RunScriptOnFirstLogon=true&DisableAppSuggestions=true&WifiMode=Unattended&WifiName=IPR2&WifiAuthentication=WPA2PSK&WifiPassword=WIFIPASSWORD&ExpressSettings=DisableAll&Remove3DViewer=true&RemoveClipchamp=true&RemoveClock=true&RemoveFeedbackHub=true&RemoveGetHelp=true&RemoveGetStarted=true&RemoveInternetExplorer=true&RemoveMaps=true&RemoveMathInputPanel=true&RemoveNews=true&RemoveOneDrive=true&RemoveOneNote=true&RemovePaint3D=true&RemovePeople=true&RemovePowerAutomate=true&RemovePowerShellISE=true&RemoveQuickAssist=true&RemoveSkype=true&RemoveSnipAndSketch=true&RemoveSolitaire=true&RemoveStepsRecorder=true&RemoveStickyNotes=true&RemoveTeams=true&RemoveToDo=true&RemoveVoiceRecorder=true&RemoveWeather=true&RemoveWordPad=true&RemoveXboxApps=true&RemoveYourPhone=true&WdacMode=Configure&WdacAuditMode=AuditingOnBootFailure&WdacScriptMode=Restricted-->
<!--https://schneegans.de/windows/unattend-generator/?LanguageMode=Unattended&UILanguage=en-US&UserLocale=fr-FR&KeyboardLayout=040c%3A0000040c&ProcessorArchitecture=amd64&ComputerName=IPR-PC&TimeZoneMode=Explicit&TimeZone=Romance+Standard+Time&PartitionMode=Unattended&PartitionLayout=GPT&RecoveryMode=Partition&WindowsEditionMode=Unattended&WindowsEdition=pro&UserAccountMode=Unattended&AdministratorAccountName=Admin&AdministratorAccountName=&AdministratorAccountName=&AdministratorAccountName=&AdministratorAccountName=&UserAccountName=Prof&UserAccountName=Eleve&UserAccountName=&UserAccountName=&UserAccountName=&UserAccountName=&LockoutMode=Default&EnableLongPaths=true&EnableRemoteDesktop=true&HardenSystemDriveAcl=true&AllowPowerShellScripts=true&DisableLastAccess=true&NoAutoRebootWithLoggedOnUsers=true&RunScriptOnFirstLogon=true&DisableAppSuggestions=true&WifiMode=Unattended&WifiName=IPR2&WifiAuthentication=WPA2PSK&WifiPassword=WIFIPASSWORD&ExpressSettings=DisableAll&Remove3DViewer=true&RemoveClipchamp=true&RemoveClock=true&RemoveFeedbackHub=true&RemoveGetHelp=true&RemoveGetStarted=true&RemoveInternetExplorer=true&RemoveMaps=true&RemoveMathInputPanel=true&RemoveNews=true&RemoveOneDrive=true&RemoveOneNote=true&RemovePaint3D=true&RemovePeople=true&RemovePowerAutomate=true&RemovePowerShellISE=true&RemoveQuickAssist=true&RemoveSkype=true&RemoveSnipAndSketch=true&RemoveSolitaire=true&RemoveStepsRecorder=true&RemoveStickyNotes=true&RemoveTeams=true&RemoveToDo=true&RemoveVoiceRecorder=true&RemoveWeather=true&RemoveWordPad=true&RemoveXboxApps=true&RemoveYourPhone=true&WdacMode=Configure&WdacAuditMode=AuditingOnBootFailure&WdacScriptMode=Unrestricted-->
<settings pass="offlineServicing"></settings>
<settings pass="windowsPE">
<component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
@@ -13,12 +13,78 @@
<UserLocale>fr-FR</UserLocale>
</component>
<component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<ImageInstall>
<OSImage>
<InstallTo>
<DiskID>1</DiskID>
<PartitionID>3</PartitionID>
</InstallTo>
</OSImage>
</ImageInstall>
<UserData>
<ProductKey>
<Key>M7XTQ-FN8P6-TTKYV-9D4CC-J462D</Key>
</ProductKey>
<AcceptEula>true</AcceptEula>
</UserData>
<RunSynchronous>
<RunSynchronousCommand wcm:action="add">
<Order>1</Order>
<Path>cmd.exe /c "&gt;&gt;"X:\diskpart.txt" echo SELECT DISK=1"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>2</Order>
<Path>cmd.exe /c "&gt;&gt;"X:\diskpart.txt" echo CLEAN"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>3</Order>
<Path>cmd.exe /c "&gt;&gt;"X:\diskpart.txt" echo CONVERT GPT"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>4</Order>
<Path>cmd.exe /c "&gt;&gt;"X:\diskpart.txt" echo CREATE PARTITION EFI SIZE=100"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>5</Order>
<Path>cmd.exe /c "&gt;&gt;"X:\diskpart.txt" echo FORMAT QUICK FS=FAT32 LABEL="System""</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>6</Order>
<Path>cmd.exe /c "&gt;&gt;"X:\diskpart.txt" echo CREATE PARTITION MSR SIZE=16"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>7</Order>
<Path>cmd.exe /c "&gt;&gt;"X:\diskpart.txt" echo CREATE PARTITION PRIMARY"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>8</Order>
<Path>cmd.exe /c "&gt;&gt;"X:\diskpart.txt" echo SHRINK MINIMUM=1000"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>9</Order>
<Path>cmd.exe /c "&gt;&gt;"X:\diskpart.txt" echo FORMAT QUICK FS=NTFS LABEL="Windows""</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>10</Order>
<Path>cmd.exe /c "&gt;&gt;"X:\diskpart.txt" echo CREATE PARTITION PRIMARY"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>11</Order>
<Path>cmd.exe /c "&gt;&gt;"X:\diskpart.txt" echo FORMAT QUICK FS=NTFS LABEL="Recovery""</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>12</Order>
<Path>cmd.exe /c "&gt;&gt;"X:\diskpart.txt" echo SET ID="de94bba4-06d1-4d40-a16a-bfd50179d6ac""</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>13</Order>
<Path>cmd.exe /c "&gt;&gt;"X:\diskpart.txt" echo GPT ATTRIBUTES=0x8000000000000001"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>14</Order>
<Path>cmd.exe /c diskpart /s X:\diskpart.txt &gt;&gt; X:\diskpart.log</Path>
</RunSynchronousCommand>
</RunSynchronous>
</component>
</settings>
<settings pass="generalize"></settings>
@@ -527,158 +593,162 @@
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>126</Order>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo Set-RuleOption -FilePath $xml -Option 10;"</Path>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo Set-RuleOption -FilePath $xml -Option 11;"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>127</Order>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo Merge-CIPolicy -PolicyPaths $xml -OutputFilePath $xml -Rules $("</Path>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo Set-RuleOption -FilePath $xml -Option 10;"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>128</Order>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo @("</Path>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo Merge-CIPolicy -PolicyPaths $xml -OutputFilePath $xml -Rules $("</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>129</Order>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule 'C:\Windows\*';"</Path>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo @("</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>130</Order>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule 'C:\Program Files\*';"</Path>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule 'C:\Windows\*';"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>131</Order>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule 'C:\Program Files (x86)\*';"</Path>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule 'C:\Program Files\*';"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>132</Order>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\debug\WIA\*' -Deny;"</Path>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule 'C:\Program Files (x86)\*';"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>133</Order>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\PLA\Reports\*' -Deny;"</Path>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\debug\WIA\*' -Deny;"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>134</Order>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\PLA\Rules\*' -Deny;"</Path>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\PLA\Reports\*' -Deny;"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>135</Order>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\PLA\Templates\*' -Deny;"</Path>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\PLA\Rules\*' -Deny;"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>136</Order>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\Registration\CRMLog\*' -Deny;"</Path>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\PLA\Templates\*' -Deny;"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>137</Order>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\System32\Com\dmp\*' -Deny;"</Path>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\Registration\CRMLog\*' -Deny;"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>138</Order>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\System32\FxsTmp\*' -Deny;"</Path>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\System32\Com\dmp\*' -Deny;"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>139</Order>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\System32\LogFiles\WMI\*' -Deny;"</Path>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\System32\FxsTmp\*' -Deny;"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>140</Order>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\System32\Microsoft\Crypto\RSA\MachineKeys\*' -Deny;"</Path>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\System32\LogFiles\WMI\*' -Deny;"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>141</Order>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\System32\spool\drivers\color\*' -Deny;"</Path>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\System32\Microsoft\Crypto\RSA\MachineKeys\*' -Deny;"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>142</Order>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\System32\spool\PRINTERS\*' -Deny;"</Path>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\System32\spool\drivers\color\*' -Deny;"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>143</Order>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\System32\spool\SERVERS\*' -Deny;"</Path>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\System32\spool\PRINTERS\*' -Deny;"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>144</Order>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\System32\Tasks_Migrated\*' -Deny;"</Path>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\System32\spool\SERVERS\*' -Deny;"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>145</Order>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\System32\Tasks\*' -Deny;"</Path>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\System32\Tasks_Migrated\*' -Deny;"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>146</Order>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\SysWOW64\Com\dmp\*' -Deny;"</Path>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\System32\Tasks\*' -Deny;"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>147</Order>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\SysWOW64\FxsTmp\*' -Deny;"</Path>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\SysWOW64\Com\dmp\*' -Deny;"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>148</Order>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\SysWOW64\Tasks\*' -Deny;"</Path>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\SysWOW64\FxsTmp\*' -Deny;"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>149</Order>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\Tasks\*' -Deny;"</Path>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\SysWOW64\Tasks\*' -Deny;"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>150</Order>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\Temp\*' -Deny;"</Path>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\Tasks\*' -Deny;"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>151</Order>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\tracing\*' -Deny;"</Path>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\Temp\*' -Deny;"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>152</Order>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo ) ^| ForEach-Object -Process { $_; }"</Path>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo New-CIPolicyRule -FilePathRule '%WINDIR%\tracing\*' -Deny;"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>153</Order>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo );"</Path>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo ) ^| ForEach-Object -Process { $_; }"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>154</Order>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo $doc = [xml]::new();"</Path>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo );"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>155</Order>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo $doc.Load( $xml );"</Path>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo $doc = [xml]::new();"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>156</Order>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo $nsmgr = [System.Xml.XmlNamespaceManager]::new( $doc.NameTable );"</Path>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo $doc.Load( $xml );"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>157</Order>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo $nsmgr.AddNamespace( 'pol', 'urn:schemas-microsoft-com:sipolicy' );"</Path>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo $nsmgr = [System.Xml.XmlNamespaceManager]::new( $doc.NameTable );"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>158</Order>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo $doc.SelectSingleNode( '/pol:SiPolicy/pol:PolicyID', $nsmgr ).InnerText = $guid;"</Path>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo $nsmgr.AddNamespace( 'pol', 'urn:schemas-microsoft-com:sipolicy' );"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>159</Order>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo $doc.SelectSingleNode( '/pol:SiPolicy/pol:BasePolicyID', $nsmgr ).InnerText = $guid;"</Path>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo $doc.SelectSingleNode( '/pol:SiPolicy/pol:PolicyID', $nsmgr ).InnerText = $guid;"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>160</Order>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo $node = $doc.SelectSingleNode( '//pol:SigningScenario[@Value=''12'']/pol:ProductSigners/pol:AllowedSigners', $nsmgr );"</Path>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo $doc.SelectSingleNode( '/pol:SiPolicy/pol:BasePolicyID', $nsmgr ).InnerText = $guid;"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>161</Order>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo $node.ParentNode.RemoveChild( $node );"</Path>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo $node = $doc.SelectSingleNode( '//pol:SigningScenario[@Value=''12'']/pol:ProductSigners/pol:AllowedSigners', $nsmgr );"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>162</Order>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo $doc.Save( $xml );"</Path>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo $node.ParentNode.RemoveChild( $node );"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>163</Order>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo ConvertFrom-CIPolicy -XmlFilePath $xml -BinaryFilePath $binary;"</Path>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo $doc.Save( $xml );"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>164</Order>
<Path>cmd.exe /c "&gt;&gt;"%TEMP%\wdac.ps1" echo ConvertFrom-CIPolicy -XmlFilePath $xml -BinaryFilePath $binary;"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>165</Order>
<Path>powershell.exe -NoProfile -File "%TEMP%\wdac.ps1"</Path>
</RunSynchronousCommand>
</RunSynchronous>
@@ -704,7 +774,7 @@
<Name>Admin</Name>
<Group>Administrators</Group>
<Password>
<Value>password</Value>
<Value>Lprsnm4ehk26-</Value>
<PlainText>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>