Browse Source

系统安装完成删除缓存的应答文件

main
dsx42 3 years ago
parent
commit
e4019edd1a
  1. 8
      UnattendTool.ps1
  2. 5
      product.json

8
UnattendTool.ps1

@ -1429,6 +1429,14 @@ Add-Content -Path $UnattendPath -Value ' <HideWirelessSetupInOOBE
Add-Content -Path $UnattendPath -Value ' <HideLocalAccountScreen>true</HideLocalAccountScreen>' Add-Content -Path $UnattendPath -Value ' <HideLocalAccountScreen>true</HideLocalAccountScreen>'
Add-Content -Path $UnattendPath -Value ' <ProtectYourPC>3</ProtectYourPC>' Add-Content -Path $UnattendPath -Value ' <ProtectYourPC>3</ProtectYourPC>'
Add-Content -Path $UnattendPath -Value ' </OOBE>' Add-Content -Path $UnattendPath -Value ' </OOBE>'
Add-Content -Path $UnattendPath -Value ''
Add-Content -Path $UnattendPath -Value ' <FirstLogonCommands>'
Add-Content -Path $UnattendPath -Value ' <SynchronousCommand wcm:action="add">'
Add-Content -Path $UnattendPath -Value (' <CommandLine>cmd /c del /f /q %WINDIR%\Panther' + `
'\unattend.xml</CommandLine>')
Add-Content -Path $UnattendPath -Value ' <Order>1</Order>'
Add-Content -Path $UnattendPath -Value ' </SynchronousCommand>'
Add-Content -Path $UnattendPath -Value ' </FirstLogonCommands>'
Add-Content -Path $UnattendPath -Value ' </component>' Add-Content -Path $UnattendPath -Value ' </component>'
Add-Content -Path $UnattendPath -Value ' </settings>' Add-Content -Path $UnattendPath -Value ' </settings>'
Add-Content -Path $UnattendPath -Value '</unattend>' Add-Content -Path $UnattendPath -Value '</unattend>'

5
product.json

@ -1,6 +1,9 @@
{ {
"name": "UnattendTool", "name": "UnattendTool",
"version": "2022.6.30", "author": "dsx42",
"license": "GPL-3.0",
"home": "https://github.com/dsx42/UnattendTool",
"version": "2022.7.2",
"files": [ "files": [
"UnattendTool.cmd", "UnattendTool.cmd",
"UnattendTool.ps1", "UnattendTool.ps1",

Loading…
Cancel
Save