下载地址
软件截图
启动脚本
使用批处理拉起主程序,并给定权限
@echo off
Cd /d %~dp0
%1 start "" mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit >nul 2>nul
start powershell -NoLogo -NonInteractive -WindowStyle Hidden -ExecutionPolicy Bypass -file "Tool.ps1"
源码
源码
批处理部分
@echo off
Cd /d %~dp0 %1
start "" mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit >nul 2>nul
start powershell -NoLogo -NonInteractive -WindowStyle Hidden -ExecutionPolicy Bypass -file "Tool.ps1"
powershell部分
# 将 System.Windows.Forms 程序集加载到 PowerShell 中 Add-Type -AssemblyName System.Windows.Forms # 创建一个新的 Form 对象并分配给变量 $Form Add-Type -AssemblyName System.Drawing Add-Type -AssemblyName PresentationFramework # 创建窗体 $Form = New-Object System.Windows.Forms.Form $Form.Text = "少女祈祷中——power by 瑜" $Form.Size = New-Object System.Drawing.Size(880,600) $Form.FormBorderStyle = "FixedDialog" # 设置窗体在用户屏幕上打开的位置# 选项包括:CenterScreen、Manual、WindowsDefaultLocation、WindowsDefaultBounds、CenterParent $Form.StartPosition = "CenterScreen" $form.BackgroundImageLayout = 3 # 使图片跟随窗口大小缩放 $form.MaximizeBox = $false; # 屏蔽最大化按钮 $img = [System.Drawing.Image]::Fromfile('.\src\少女祈祷中.jpg') $Form.BackgroundImage = $img #$form.ClientSize = $img.Size # 把窗口图片区域的大小设为和图片一样 # 设置窗口的不透明度级别,即它的透明度 # Range is from 0.0 (invisible) to 1.0 (100% opaque) # 设置用户是否可以在任务栏中看到“窗体”图标 # $false = not seen, $true = seen $Form.ShowInTaskbar = $false # 通过控制窗口设置来设置表单状态# Windows 设置选项:最小化、正常或最大化 # $false禁用用户的特定标题选项 $Form.MinimizeBox = $false $Form.MaximizeBox = $false # $Form.WindowsState = "Normal" # 获取当前计算机名 $SetNamelabel = New-Object System.Windows.Forms.label $SetNamelabel.Location = New-Object System.Drawing.Point(20,20) $SetNamelabel.Size = New-Object System.Drawing.Size(560,30) $LocalhostnameNow = Get-Content Env:COMPUTERNAME $SetNamelabel.Font = New-Object System.Drawing.Font( "方正兰亭大黑简体",12,[System.Drawing.FontStyle]::Regular ) $SetNamelabel.BackColor = [System.Drawing.Color]::FromName("Transparent") #$SetNamelabel.Parent = PictureBox1 $SetNamelabel.Text = "当前计算机名:$LocalhostnameNow" $Form.Controls.Add($SetNamelabel) # 创建修改计算机名输入框 $SetNameTextBox = New-Object System.Windows.Forms.TextBox $SetNameTextBox.Location = New-Object System.Drawing.Point(20,50) $SetNameTextBox.Multiline = $true $SetNameTextBox.Size = New-Object System.Drawing.Size(300,30) $SetNameTextBox.BackColor = '#93d5dc' $SetNameTextBox.Font = New-Object System.Drawing.Font("Comic Sans MS",12) #$SetNameTextBox.BackColor = [System.Drawing.Color]::FromName("Transparent") if($LocalhostnameNow -match "-") { # Write-Host "有-" $LocalhostnameNowArray = $LocalhostnameNow -split "-" $LocalhostnameNowArray[1] = [int]$LocalhostnameNowArray[1]+1 $ShowLocalhostname = $LocalhostnameNowArray[0]+"-"+$LocalhostnameNowArray[1] }elseif($LocalhostnameNow -match "工号"){ $ShowLocalhostname = $LocalhostnameNow } else{ # Write-Host "没有-" $ShowLocalhostname = $LocalhostnameNow+"-1" } $SetNameTextBox.Text = $ShowLocalhostname $Form.Controls.Add($SetNameTextBox) # 创建修改计算机名按钮 $SetNameButton = New-Object System.Windows.Forms.Button $SetNameButton.Location = New-Object System.Drawing.Point(20,100) $SetNameButton.Size = New-Object System.Drawing.Size(140,30) $SetNameButton.Font = New-Object System.Drawing.Font( "幼圆",11,[System.Drawing.FontStyle]::Regular ) $SetNameButton.Text = "修改为↑" $SetNameButton.Add_Click({ try{ $a = $SetNameTextBox.Lines Rename-Computer -NewName "$a" -ErrorAction Stop $msgBoxInput = [System.Windows.MessageBox]::Show('修改成功,重启生效,是否重启?', '修改计算机名 - [ INFO ]', 'YesNo') switch ($msgBoxInput) { 'Yes' { Restart-Computer -Force } } } catch{ $ErrorTmp = $($_) $msgBoxInput = [System.Windows.MessageBox]::Show("$ErrorTmp" , '修改计算机名 - [ INFO ]') } }) $Form.Controls.Add($SetNameButton) # 创建重启电脑按钮 $RestartComputerButton = New-Object System.Windows.Forms.Button $RestartComputerButton.Location = New-Object System.Drawing.Point(180,100) $RestartComputerButton.Size = New-Object System.Drawing.Size(140,30) $RestartComputerButton.Font = New-Object System.Drawing.Font( "幼圆",11,[System.Drawing.FontStyle]::Regular ) $RestartComputerButton.Text = "重启电脑" $RestartComputerButton.Add_Click({ $msgBoxInput = [System.Windows.MessageBox]::Show('确认重启?', '重启 - [ INFO ]', 'YesNo') switch ($msgBoxInput) { 'Yes' { Restart-Computer -Force } } }) $Form.Controls.Add($RestartComputerButton) # 创建加入域按钮 $JoinButton = New-Object System.Windows.Forms.Button $JoinButton.Location = New-Object System.Drawing.Point(20,140) $JoinButton.Size = New-Object System.Drawing.Size(140,30) $JoinButton.Font = New-Object System.Drawing.Font( "幼圆",11,[System.Drawing.FontStyle]::Regular ) $JoinButton.Text = "加入域" $JoinButton.Add_Click({ $domain = "pdc.chana.com" $username = "pdc.chana.com\428641" $password = "Changan12#$" $securePassword = ConvertTo-SecureString -String $password -AsPlainText -Force $credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $username, $securePassword try { Add-Computer -DomainName $domain -Credential $credential -ErrorAction Stop Write-Host "[ INFO ]".PadRight(20), "已加入" -ForegroundColor:Yellow; $msgBoxInput = [System.Windows.MessageBox]::Show('已加入PDC,是否重启', '加域 - [ INFO ]', 'YesNo') switch ($msgBoxInput) { 'Yes' { Restart-Computer -Force } } } catch { $ErrorTmp = $($_) $msgBoxInput = [System.Windows.MessageBox]::Show("$ErrorTmp" , '加域 - [ INFO ]') } # Add-Computer -DomainName $domain -Credential $credential -Restart # Add-Computer -DomainName $domain -Credential $credential }) $Form.Controls.Add($JoinButton) # 创建退出域按钮 $LeaveButton = New-Object System.Windows.Forms.Button $LeaveButton.Location = New-Object System.Drawing.Point(180,140) $LeaveButton.Size = New-Object System.Drawing.Size(140,30) $LeaveButton.Font = New-Object System.Drawing.Font( "幼圆",11,[System.Drawing.FontStyle]::Regular ) $LeaveButton.Text = "退出域" $LeaveButton.Add_Click({ try{ $username = "pdc.chana.com\428641" $password = "Changan12#$" $securePassword = ConvertTo-SecureString -String $password -AsPlainText -Force $credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $username, $securePassword Remove-Computer -Credential $credential -Force -ErrorAction Stop Write-Host "[ INFO ]".PadRight(20), "已退出PDC,请重启" -ForegroundColor:Yellow; $msgBoxInput = [System.Windows.MessageBox]::Show('已成功退出PDC', '退域 - [ INFO ]') } catch{ $ErrorTmp = $($_) $msgBoxInput = [System.Windows.MessageBox]::Show("$ErrorTmp" , '少女祈祷中') } }) $Form.Controls.Add($LeaveButton) # 创建PDC账户输入框 $SetGonghaoTextBox = New-Object System.Windows.Forms.TextBox $SetGonghaoTextBox.Location = New-Object System.Drawing.Point(20,180) $SetGonghaoTextBox.Multiline = $true $SetGonghaoTextBox.Size = New-Object System.Drawing.Size(140,30) $SetGonghaoTextBox.BackColor = '#93d5dc' $SetGonghaoTextBox.Font = New-Object System.Drawing.Font("Comic Sans MS",12) #$SetGonghaoTextBox.BackColor = [System.Drawing.Color]::FromName("Transparent") if($LocalhostnameNow -match "-") { # Write-Host "有-" $LocalhostnameNowArray = $LocalhostnameNow -split "-" $CQCAgonghao = $LocalhostnameNowArray[0] $Matches[0] = $null $gonghao = $CQCAgonghao -match '\d+' } elseif($LocalhostnameNow -match "工号"){ $CQCAgonghao = $LocalhostnameNow } else{ # Write-Host "没有-" $CQCAgonghao = $LocalhostnameNow $Matches = $null $gonghao = $CQCAgonghao -match '\d+' } # 显示工号 $SetGonghaoTextBox.Text = $Matches[0] $Form.Controls.Add($SetGonghaoTextBox) # 创建加入管理组按钮 $AddLocalGroupMemberButton = New-Object System.Windows.Forms.Button $AddLocalGroupMemberButton.Location = New-Object System.Drawing.Point(180,180) $AddLocalGroupMemberButton.Size = New-Object System.Drawing.Size(140,30) $AddLocalGroupMemberButton.Font = New-Object System.Drawing.Font( "幼圆",11,[System.Drawing.FontStyle]::Regular ) $AddLocalGroupMemberButton.Text = "加入管理组" $AddLocalGroupMemberButton.Add_Click({ $JoinAdmin = $SetGonghaoTextBox.Text $TempJoin= $JoinAdmin + "@pdc.chana.com" try { Add-LocalGroupMember -Group "Administrators" -Member $TempJoin -ErrorAction Stop Write-Host "[ INFO ]".PadRight(20), $domain, $SetGonghaoTextBox.Text"已加入管理组Administrators" -ForegroundColor:Yellow; $msgBoxInput = [System.Windows.MessageBox]::Show('重启?', '加入管理组 - [ INFO ]', 'YesNo') switch ($msgBoxInput) { 'Yes' { Restart-Computer -Force } } } catch { $ErrorTmp = $($_) $msgBoxInput = [System.Windows.MessageBox]::Show("$ErrorTmp" , '加入管理组 - [ INFO ]') } }) $Form.Controls.Add($AddLocalGroupMemberButton) # 创建IE设置按钮按钮 $SetIEButton = New-Object System.Windows.Forms.Button $SetIEButton.Location = New-Object System.Drawing.Point(20,220) $SetIEButton.Size = New-Object System.Drawing.Size(140,30) $SetIEButton.Font = New-Object System.Drawing.Font( "幼圆",11,[System.Drawing.FontStyle]::Regular ) $SetIEButton.Text = "IE设置" $SetIEButton.Add_Click({ # 执行异步(多线程)任务, Start-Job -ScriptBlock { #添加microsoft兼容性视图 cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Internet Explorer\BrowserEmulation\ClearableListData" /f /v "UserFilter" /t REG_BINARY /d 411f00005308adba030000007e00000001000000030000000c0000008f6f0f2ca53ad0010100000009006c006f00630061006c0068006f00730074000c0000000f4f9df68dcdd001010000000a006800750061007700650069002e0063006f006d000c000000a17f610b2cb3da01010000000b006300680061006e00670061006e002e0063006f006d00 1>nul' #修改ie设置 cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /f /v "CertificateRevocation" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /f /v "DisableCachingOfSSLPages" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /f /v "IE5_UA_Backup_Flag" /t REG_SZ /d "5.0" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /f /v "PrivacyAdvanced" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /f /v "SecureProtocols" /t REG_DWORD /d 2688 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /f /v "User Agent" /t REG_SZ /d "Mozilla/4.0 (compatible; MSIE 8.0; Win32)" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /f /v "ZonesSecurityUpgrade" /t REG_BINARY /d f1043146c621da01 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /f /v "EnableNegotiate" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /f /v "ProxyEnable" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /f /v "MigrateProxy" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /f /v "WarnonZoneCrossing" /t REG_DWORD /d 0 1>nul' # cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /f /v "LockDatabase" /t REG_QWORD /d 7.0684808062489e+018 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /f /v "LockDatabase" /t REG_QWORD /d 133456276859983970 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /f /v "MaxConnectionsPerServer" /t REG_DWORD /d 10 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /f /v "MaxConnectionsPer1_0Server" /t REG_DWORD /d 10 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache" /f /v "ContentLimit" /t REG_DWORD /d 330 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache" /f /v "TotalContentLimit" /t REG_DWORD /d 495 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache" /f /v "AppContainerTotalContentLimit" /t REG_DWORD /d 1000 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache" /f /v "AppContainerContentLimit" /t REG_DWORD /d 50 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache" /f /v "Version" /t REG_DWORD /d 4 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Content" /f /v "CachePrefix" /t REG_SZ /d "" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Content" /f /v "CacheVersion" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Content" /f /v "CacheLimit" /t REG_DWORD /d 337920 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Cookies" /f /v "CachePrefix" /t REG_SZ /d "Cookie:" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Cookies" /f /v "CacheVersion" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Cookies" /f /v "CacheLimit" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\DNTException" /f /v "CachePrefix" /t REG_SZ /d "DNTException:" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\DNTException" /f /v "CachePath" /t REG_SZ /d "C:\Users\a\AppData\Local\Microsoft\Windows\INetCookies\DNTException" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\DNTException" /f /v "CacheRelativePath" /t REG_SZ /d "Microsoft\Windows\INetCookies\DNTException" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\DNTException" /f /v "CacheOptions" /t REG_DWORD /d 768 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\DNTException" /f /v "CacheRepair" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\DNTException" /f /v "CacheLimit" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\EmieSiteList" /f /v "CachePrefix" /t REG_SZ /d "EmieSiteList:" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\EmieSiteList" /f /v "CachePath" /t REG_SZ /d "C:\Users\a\AppData\Local\Microsoft\Internet Explorer\EmieSiteList" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\EmieSiteList" /f /v "CacheRelativePath" /t REG_SZ /d "Microsoft\Internet Explorer\EmieSiteList" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\EmieSiteList" /f /v "CacheOptions" /t REG_DWORD /d 768 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\EmieSiteList" /f /v "CacheRepair" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\EmieSiteList" /f /v "CacheLimit" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\EmieUserList" /f /v "CachePrefix" /t REG_SZ /d "EmieUserList:" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\EmieUserList" /f /v "CachePath" /t REG_SZ /d "C:\Users\a\AppData\Local\Microsoft\Internet Explorer\EmieUserList" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\EmieUserList" /f /v "CacheRelativePath" /t REG_SZ /d "Microsoft\Internet Explorer\EmieUserList" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\EmieUserList" /f /v "CacheOptions" /t REG_DWORD /d 768 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\EmieUserList" /f /v "CacheRepair" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\EmieUserList" /f /v "CacheLimit" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\feedplat" /f /v "CachePrefix" /t REG_SZ /d "feedplat:" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\feedplat" /f /v "CachePath" /t REG_SZ /d "C:\Users\a\AppData\Local\Microsoft\Feeds Cache" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\feedplat" /f /v "CacheRelativePath" /t REG_SZ /d "Microsoft\Feeds Cache" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\feedplat" /f /v "CacheOptions" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\feedplat" /f /v "CacheRepair" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\feedplat" /f /v "CacheLimit" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\iecompat" /f /v "CachePrefix" /t REG_SZ /d "iecompat:" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\iecompat" /f /v "CachePath" /t REG_SZ /d "C:\Users\a\AppData\Local\Microsoft\Windows\IECompatCache" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\iecompat" /f /v "CacheRelativePath" /t REG_SZ /d "Microsoft\Windows\IECompatCache" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\iecompat" /f /v "CacheOptions" /t REG_DWORD /d 777 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\iecompat" /f /v "CacheRepair" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\iecompat" /f /v "CacheLimit" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\iecompatua" /f /v "CachePrefix" /t REG_SZ /d "iecompatua:" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\iecompatua" /f /v "CachePath" /t REG_SZ /d "C:\Users\a\AppData\Local\Microsoft\Windows\IECompatUaCache" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\iecompatua" /f /v "CacheRelativePath" /t REG_SZ /d "Microsoft\Windows\IECompatUaCache" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\iecompatua" /f /v "CacheOptions" /t REG_DWORD /d 777 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\iecompatua" /f /v "CacheRepair" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\iecompatua" /f /v "CacheLimit" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\iedownload" /f /v "CachePrefix" /t REG_SZ /d "iedownload:" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\iedownload" /f /v "CachePath" /t REG_SZ /d "C:\Users\a\AppData\Local\Microsoft\Windows\IEDownloadHistory" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\iedownload" /f /v "CacheRelativePath" /t REG_SZ /d "Microsoft\Windows\IEDownloadHistory" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\iedownload" /f /v "CacheOptions" /t REG_DWORD /d 9 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\iedownload" /f /v "CacheRepair" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\iedownload" /f /v "CacheLimit" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\IEToEdgeList" /f /v "CachePrefix" /t REG_SZ /d "IEToEdgeList:" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\IEToEdgeList" /f /v "CachePath" /t REG_SZ /d "C:\Users\a\AppData\Local\Microsoft\EdgeBho\IEToEdge" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\IEToEdgeList" /f /v "CacheRelativePath" /t REG_SZ /d "Microsoft\EdgeBho\IEToEdge" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\IEToEdgeList" /f /v "CacheOptions" /t REG_DWORD /d 768 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\IEToEdgeList" /f /v "CacheRepair" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\IEToEdgeList" /f /v "CacheLimit" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\MSHist012023112820231129" /f /v "CachePrefix" /t REG_SZ /d ":2023112820231129: " 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\MSHist012023112820231129" /f /v "CachePath" /t REG_SZ /d "C:\Users\a\AppData\Local\Microsoft\Windows\History\History.IE5\MSHist012023112820231129" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\MSHist012023112820231129" /f /v "CacheRelativePath" /t REG_SZ /d "Microsoft\Windows\History\History.IE5\MSHist012023112820231129" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\MSHist012023112820231129" /f /v "CacheOptions" /t REG_DWORD /d 11 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\MSHist012023112820231129" /f /v "CacheRepair" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Extensible Cache\MSHist012023112820231129" /f /v "CacheLimit" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\History" /f /v "CachePrefix" /t REG_SZ /d "Visited:" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\History" /f /v "CacheVersion" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\History" /f /v "CacheLimit" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache" /f /v "Persistent" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections" /f /v "SavedLegacySettings" /t REG_BINARY /d 4600000002000000090000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections" /f /v "DefaultConnectionSettings" /t REG_BINARY /d 4600000002000000090000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\0" /f /ve /t REG_SZ /d "" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\0" /f /v "DisplayName" /t REG_SZ /d "Computer" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\0" /f /v "PMDisplayName" /t REG_SZ /d "Computer [Protected Mode]" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\0" /f /v "Description" /t REG_SZ /d "Your computer" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\0" /f /v "Icon" /t REG_SZ /d "shell32.dll#0016" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\0" /f /v "LowIcon" /t REG_SZ /d "inetcpl.cpl#005422" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\0" /f /v "CurrentLevel" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\0" /f /v "Flags" /t REG_DWORD /d 33 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\0" /f /v "1200" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\0" /f /v "1400" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\1" /f /ve /t REG_SZ /d "" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\1" /f /v "DisplayName" /t REG_SZ /d "Local intranet" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\1" /f /v "PMDisplayName" /t REG_SZ /d "Local intranet [Protected Mode]" 1>nul' # cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\1" /f /v "Description" /t REG_SZ /d "This zone contains all Web sites that are on your organization's intranet." 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\1" /f /v "Icon" /t REG_SZ /d "shell32.dll#0018" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\1" /f /v "LowIcon" /t REG_SZ /d "inetcpl.cpl#005423" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\1" /f /v "CurrentLevel" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\1" /f /v "Flags" /t REG_DWORD /d 219 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\1" /f /v "1200" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\1" /f /v "1400" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\2" /f /ve /t REG_SZ /d "" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\2" /f /v "DisplayName" /t REG_SZ /d "Trusted sites" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\2" /f /v "PMDisplayName" /t REG_SZ /d "Trusted sites [Protected Mode]" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\2" /f /v "Description" /t REG_SZ /d "This zone contains Web sites that you trust not to damage your computer or data." 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\2" /f /v "Icon" /t REG_SZ /d "inetcpl.cpl#00004480" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\2" /f /v "LowIcon" /t REG_SZ /d "inetcpl.cpl#005424" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\2" /f /v "CurrentLevel" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\2" /f /v "Flags" /t REG_DWORD /d 33 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\2" /f /v "1200" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\2" /f /v "1400" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\3" /f /ve /t REG_SZ /d "" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\3" /f /v "DisplayName" /t REG_SZ /d "Internet" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\3" /f /v "PMDisplayName" /t REG_SZ /d "Internet [Protected Mode]" 1>nul' # cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\3" /f /v "Description" /t REG_SZ /d "This zone contains all Web sites you haven't placed in other zones" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\3" /f /v "Icon" /t REG_SZ /d "inetcpl.cpl#001313" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\3" /f /v "LowIcon" /t REG_SZ /d "inetcpl.cpl#005425" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\3" /f /v "CurrentLevel" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\3" /f /v "Flags" /t REG_DWORD /d 33 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\3" /f /v "1200" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\3" /f /v "1400" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\4" /f /ve /t REG_SZ /d "" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\4" /f /v "DisplayName" /t REG_SZ /d "Restricted sites" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\4" /f /v "PMDisplayName" /t REG_SZ /d "Restricted sites [Protected Mode]" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\4" /f /v "Description" /t REG_SZ /d "This zone contains Web sites that could potentially damage your computer or data." 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\4" /f /v "Icon" /t REG_SZ /d "inetcpl.cpl#00004481" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\4" /f /v "LowIcon" /t REG_SZ /d "inetcpl.cpl#005426" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\4" /f /v "CurrentLevel" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\4" /f /v "Flags" /t REG_DWORD /d 33 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\4" /f /v "1200" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\4" /f /v "1400" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\P3P\History\changan.com" /f /ve /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Passport" /f /v "NumRegistrationRuns" /t REG_DWORD /d 6 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\TemplatePolicies\High" /f /v "1400" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap" /f /ve /t REG_SZ /d "" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap" /f /v "ProxyByPass" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap" /f /v "IntranetName" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap" /f /v "UNCAsIntranet" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap" /f /v "AutoDetect" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains" /f /ve /t REG_SZ /d "" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\changan.com\cmp" /f /v "*" /t REG_DWORD /d 2 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\ProtocolDefaults" /f /ve /t REG_SZ /d "" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\ProtocolDefaults" /f /v "http" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\ProtocolDefaults" /f /v "https" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\ProtocolDefaults" /f /v "ftp" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\ProtocolDefaults" /f /v "file" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\ProtocolDefaults" /f /v "@ivt" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\ProtocolDefaults" /f /v "shell" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\ProtocolDefaults" /f /v "knownfolder" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Ranges" /f /ve /t REG_SZ /d "" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones" /f /ve /t REG_SZ /d "" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones" /f /v "SelfHealCount" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones" /f /v "SecuritySafe" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0" /f /ve /t REG_SZ /d "" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0" /f /v "DisplayName" /t REG_SZ /d "Computer" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0" /f /v "PMDisplayName" /t REG_SZ /d "Computer [Protected Mode]" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0" /f /v "Description" /t REG_SZ /d "Your computer" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0" /f /v "Icon" /t REG_SZ /d "shell32.dll#0016" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0" /f /v "LowIcon" /t REG_SZ /d "inetcpl.cpl#005422" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0" /f /v "CurrentLevel" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0" /f /v "Flags" /t REG_DWORD /d 33 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0" /f /v "1200" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0" /f /v "1400" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0" /f /v "2001" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0" /f /v "2004" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /ve /t REG_SZ /d "" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "DisplayName" /t REG_SZ /d "本地 Intranet" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "PMDisplayName" /t REG_SZ /d "Local intranet [Protected Mode]" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "Description" /t REG_SZ /d "该区域中包含你公司 Intranet 上的所有网站。" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "Icon" /t REG_SZ /d "shell32.dll#0018" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "LowIcon" /t REG_SZ /d "inetcpl.cpl#005423" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "CurrentLevel" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "Flags" /t REG_DWORD /d 219 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "1200" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "1400" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "2500" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "2001" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "2004" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "2400" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "2401" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "2402" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "2007" /t REG_DWORD /d 65536 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "2201" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "1405" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "1201" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "2000" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "120B" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "1004" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "1001" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "2702" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "1209" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "1208" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "270C" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "120A" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "1402" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "1409" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "1407" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "2103" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "2105" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "270B" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "1606" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "2101" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "1806" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "160A" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "1607" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "2100" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "2301" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "1809" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "1601" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "1406" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "1802" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "1609" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "1608" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "1206" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "120C" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "2102" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "2300" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "2104" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "2709" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "2708" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "1804" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "1A04" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "2600" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "1803" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "1604" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /f /v "1A00" /t REG_DWORD /d 131072 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /ve /t REG_SZ /d "" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "DisplayName" /t REG_SZ /d "受信任的站点" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "PMDisplayName" /t REG_SZ /d "Trusted sites [Protected Mode]" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "Description" /t REG_SZ /d "该区域包含你确信不会损害你的计算机或数据的网站。" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "Icon" /t REG_SZ /d "inetcpl.cpl#00004480" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "LowIcon" /t REG_SZ /d "inetcpl.cpl#005424" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "CurrentLevel" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "Flags" /t REG_DWORD /d 67 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "1200" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "1400" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "2001" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "2004" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "1001" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "1004" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "1201" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "1206" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "1207" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "1208" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "1209" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "120A" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "120B" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "120C" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "1402" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "1405" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "1406" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "1407" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "1408" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "1409" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "140A" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "140C" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "1601" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "1604" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "1605" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "1606" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "1607" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "1608" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "1609" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "160A" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "160B" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "1802" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "1803" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "1804" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "1809" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "1812" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "1A00" /t REG_DWORD /d 131072 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "1A02" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "1A03" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "1A04" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "1A05" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "1A06" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "1A10" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "1C00" /t REG_DWORD /d 65536 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "2000" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "2005" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "2007" /t REG_DWORD /d 65536 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "2100" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "2101" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "2102" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "2103" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "2104" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "2105" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "2106" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "2107" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "2108" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "2200" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "2201" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "2300" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "2301" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "2302" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "2400" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "2401" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "2402" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "2600" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "2700" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "2701" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "2702" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "2703" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "2704" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "2708" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "2709" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "270B" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "270C" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "270D" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "140D" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /f /v "1806" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /ve /t REG_SZ /d "" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "DisplayName" /t REG_SZ /d "Internet" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "PMDisplayName" /t REG_SZ /d "Internet [Protected Mode]" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "Description" /t REG_SZ /d "该区域中包含所有未放在其他区域中的网站" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "Icon" /t REG_SZ /d "inetcpl.cpl#001313" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "LowIcon" /t REG_SZ /d "inetcpl.cpl#005425" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "CurrentLevel" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "Flags" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "1200" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "1400" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "2001" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "2004" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "2400" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "2401" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "2402" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "2007" /t REG_DWORD /d 65536 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "2201" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "1405" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "1201" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "2000" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "120B" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "1004" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "1001" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "2702" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "1209" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "1208" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "270C" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "120A" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "1402" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "1409" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "1407" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "2103" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "2105" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "270B" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "1606" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "2101" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "1806" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "160A" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "1607" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "2100" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "2301" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "1809" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "1601" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "1406" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "1802" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "1609" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "1608" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "1206" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "120C" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "2102" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "2300" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "2104" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "2709" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "2708" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "1804" /t REG_DWORD /d 1 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "1A04" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "2600" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "1803" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "1604" /t REG_DWORD /d 0 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /f /v "1A00" /t REG_DWORD /d 131072 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\4" /f /ve /t REG_SZ /d "" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\4" /f /v "DisplayName" /t REG_SZ /d "Restricted sites" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\4" /f /v "PMDisplayName" /t REG_SZ /d "Restricted sites [Protected Mode]" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\4" /f /v "Description" /t REG_SZ /d "This zone contains Web sites that could potentially damage your computer or data." 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\4" /f /v "Icon" /t REG_SZ /d "inetcpl.cpl#00004481" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\4" /f /v "LowIcon" /t REG_SZ /d "inetcpl.cpl#005426" 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\4" /f /v "CurrentLevel" /t REG_DWORD /d 73728 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\4" /f /v "Flags" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\4" /f /v "1200" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\4" /f /v "1400" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\4" /f /v "2001" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\4" /f /v "2004" /t REG_DWORD /d 3 1>nul' cmd /c 'reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\4" /f /v "1C00" /t REG_DWORD /d 0 1>nul' } $msgBoxInput = [System.Windows.MessageBox]::Show('设置完成', 'IE设置 - [ INFO ]') } ) $Form.Controls.Add($SetIEButton) # 创建catia设置按钮按钮 $SetCatiaButton = New-Object System.Windows.Forms.Button $SetCatiaButton.Location = New-Object System.Drawing.Point(180,220) $SetCatiaButton.Size = New-Object System.Drawing.Size(140,30) $SetCatiaButton.Font = New-Object System.Drawing.Font( "幼圆",11,[System.Drawing.FontStyle]::Regular ) $SetCatiaButton.Text = "catia设置" $SetCatiaButton.Add_Click({ try{# 通过注册表判断是否安装了软件 Get-ItemProperty -Path "HKLM:\SOFTWARE\Dassault Systemes\B27\0" -ErrorAction Stop # 通过注册表获取安装路径 # Get-ItemProperty -Path Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Dassault Systemes\B27\0 -ErrorAction Stop $registryPath = "HKLM:\SOFTWARE\Dassault Systemes\B27\0" $keyValue = Get-ItemProperty -Path $registryPath -Name DEST_FOLDER $catiaIphlpapiPath = $keyValue.DEST_FOLDER + "\win_b64\code\bin" $catiaInstalltionPath = $keyValue.DEST_FOLDER # 父目录表达如下 # Split-Path $catiaInstalltionPath # 关闭进程 if(Get-Process -Name CATSysDemon -Ea SilentlyContinue){ Stop-Process -Name CATSysDemon -Force } if(Get-Process -Name CNEXT -Ea SilentlyContinue){ Stop-Process -Name CNEXT -Force } # 添加环境变量 [Environment]::SetEnvironmentVariable('DSY_DISABLE_WININET' , 'TRUE' , 'Machine ') # 引入本地文件 $localFloderPatha = ".\lib\catia\DassaultSystemes\" $localLicensePath = ".\lib\catia\Licenses\" $localIphlpapiPath = ".\lib\catia\iphlpapi.dll" $cureentUser = $env:USERNAME $remotoFloderPathTmp1 = "C:\Users\" $remotoFloderPathTmp2 = $cureentUser $remotoFloderPathTmp3 = "\AppData\Roaming\DassaultSystemes\" $remotoFloderPathTmp4 = "\AppData\Roaming\DassaultSystemes\CATSettings\" # 配置文件路径 $remotoFloderPath1 = $remotoFloderPathTmp1 + $remotoFloderPathTmp2 + $remotoFloderPathTmp3 $remotoFloderPath2 = $remotoFloderPathTmp1 + $remotoFloderPathTmp2 + $remotoFloderPathTmp4 # 判断是否存在设置文件,有就清空设置 $TestPath = Test-Path $remotoFloderPath1 if(Test-Path $remotoFloderPath1) { Remove-Item -LiteralPath $remotoFloderPath1 -Force -Recurse } # 复制文件 Copy-Item $localFloderPatha -Destination $remotoFloderPath1 -Force -Recurse Copy-Item $localIphlpapiPath -Destination $catiaIphlpapiPath -Force -Recurse Copy-Item $localLicensePath -Destination "C:\ProgramData\DassaultSystemes" -Force -Recurse $msgBoxInput = [System.Windows.MessageBox]::Show('设置完成', 'catia设置 - [ INFO ]') } catch{ $ErrorTmp = $($_) $msgBoxInput = [System.Windows.MessageBox]::Show("$ErrorTmp" , 'catia设置 - [ INFO ]') } }) $Form.Controls.Add($SetCatiaButton) #设置永久IE模式 $permanentIeModeButton = New-Object System.Windows.Forms.Button $permanentIeModeButton.Location = New-Object System.Drawing.Point(20,260) $permanentIeModeButton.Size = New-Object System.Drawing.Size(260,30) $permanentIeModeButton.Font = New-Object System.Drawing.Font( "幼圆",11,[System.Drawing.FontStyle]::Regular ) $permanentIeModeButton.Text = "OA/数据发放系统永久IE" $permanentIeModeButton.Add_Click({ if(Get-Process -Name msedge -Ea SilentlyContinue){ Stop-Process -Name msedge -Force } $localFloderPath = ".\lib\EDGE企业站点配置" Copy-Item $localFloderPath -Destination "C:/" -Force -Recurse attrib +h +r "C:\EDGE企业站点配置" Start-Job -ScriptBlock{ cmd /c 'reg add "HKLM\Software\Policies\Microsoft\Edge" /f /v "InternetExplorerIntegrationLocalSiteListExpirationDays" /t REG_DWORD /d 90 >nul' cmd /c 'reg add "HKLM\Software\Policies\Microsoft\Edge" /f /v "InternetExplorerIntegrationLevel" /t REG_DWORD /d 1 >nul' cmd /c 'reg add "HKLM\Software\Policies\Microsoft\Edge" /f /v "EnterpriseModeSiteListManagerAllowed" /t REG_DWORD /d 1 >nul' cmd /c 'reg add "HKLM\Software\Policies\Microsoft\Edge" /f /v "InternetExplorerIntegrationSiteList" /t REG_SZ /d "file:///C:/EDGE企业站点配置/Edge企业站点.xml" >nul' } start msedge cmp.changan.com $msgBoxInput = [System.Windows.MessageBox]::Show(' 设置完成,等待65秒后生效 若要立即生效,点击是复制链接Edge浏览器打开edge://compat/enterprise点击强制更新 是:复制网址到粘贴板 否:关闭本窗口', 'IE模式设置 - [ INFO ]','YesNo') switch ($msgBoxInput) { 'Yes' { Set-Clipboard -Value "edge://compat/enterprise" } } }) $Form.Controls.Add($permanentIeModeButton) #设置永久IE模式解释按钮[?] $permanentIeModeinfoButton = New-Object System.Windows.Forms.Button $permanentIeModeinfoButton.Location = New-Object System.Drawing.Point(290,260) $permanentIeModeinfoButton.Size = New-Object System.Drawing.Size(30,30) $permanentIeModeinfoButton.Font = New-Object System.Drawing.Font( "幼圆",11,[System.Drawing.FontStyle]::Regular ) $permanentIeModeinfoButton.Text = "?" $Form.Controls.Add($permanentIeModeinfoButton) $permanentIeModeinfoButton.Add_Click({ $msgBoxInput = [System.Windows.MessageBox]::Show('设置cmp协同办公网站和数据发放系统永久IE模式打开 若要立即生效,打开edge://compat/enterprise点击强制更新', ' - [ INFO ]') }) #手动添加网站输入框 $addWebIeModeTextBox = New-Object System.Windows.Forms.TextBox $addWebIeModeTextBox.Location = New-Object System.Drawing.Point(20,300) $addWebIeModeTextBox.Multiline = $true $addWebIeModeTextBox.Size = New-Object System.Drawing.Size(300,30) $addWebIeModeTextBox.BackColor = '#93d5dc' $addWebIeModeTextBox.Font = New-Object System.Drawing.Font("Comic Sans MS",12) #$SetNameTextBox.BackColor = [System.Drawing.Color]::FromName("Transparent") $Form.Controls.Add($addWebIeModeTextBox) $addWebIeModeTextBox.Text = "cmp.changan.com" $addWebIeMode = $addWebIeModeTextBox.Text # 创建添加IE模式站点按钮 $addWebIeModeButton = New-Object System.Windows.Forms.Button $addWebIeModeButton.Location = New-Object System.Drawing.Point(20,340) $addWebIeModeButton.Size = New-Object System.Drawing.Size(260,30) $addWebIeModeButton.Font = New-Object System.Drawing.Font( "幼圆",11,[System.Drawing.FontStyle]::Regular ) $addWebIeModeButton.Text = "手动添加永久IE模式站点" $addWebIeModeButton.Add_Click({ $q = "C:\EDGE企业站点配置\Edge企业站点.xml" if(Test-Path $q){ try{ $a = $addWebIeModeTextBox.Text $b = "`n `n Default`n IE11`n `n" $stream = [IO.file]::OpenWrite($q) $stream.SetLength($stream.Length - 15) $stream.close() $stream.Dispose() Add-Content $q $b -ErrorAction Stop $msgBoxInput = [System.Windows.MessageBox]::Show('添加完成', '添加IE模式站点 - [ INFO ]') } catch{ $ErrorTmp = $($_) $msgBoxInput = [System.Windows.MessageBox]::Show("$ErrorTmp" , '添加IE模式站点 - [ INFO ]') } } else{ $msgBoxInput = [System.Windows.MessageBox]::Show("还没有设置永久IE模式" , '添加IE模式站点 - [ INFO ]') } }) $Form.Controls.Add($addWebIeModeButton) #设置永久IE模式解释按钮[?] $addWebIeModeinfoButton = New-Object System.Windows.Forms.Button $addWebIeModeinfoButton.Location = New-Object System.Drawing.Point(290,340) $addWebIeModeinfoButton.Size = New-Object System.Drawing.Size(30,30) $addWebIeModeinfoButton.Font = New-Object System.Drawing.Font( "幼圆",11,[System.Drawing.FontStyle]::Regular ) $addWebIeModeinfoButton.Text = "?" $Form.Controls.Add($addWebIeModeinfoButton) $addWebIeModeinfoButton.Add_Click({ $msgBoxInput = [System.Windows.MessageBox]::Show(' 在上面输入框内输入要添加的网站,例如radp.changan.com然后点击手动添加按钮,浏览器后等待65秒或者手动强制刷新', '怎么添加IE模式站点') }) #修复office提示您的组织策略阻止我们为您完成此操作,有关详细信息,请联系技术支持 $RepairOfficeButton = New-Object System.Windows.Forms.Button $RepairOfficeButton.Location = New-Object System.Drawing.Point(20,380) $RepairOfficeButton.Size = New-Object System.Drawing.Size(260,30) $RepairOfficeButton.Font = New-Object System.Drawing.Font( "幼圆",11,[System.Drawing.FontStyle]::Regular ) $RepairOfficeButton.Text = "office打不开超链接(文件)" $Form.Controls.Add($RepairOfficeButton) $RepairOfficeButton.Add_Click({ cmd /c 'reg add "HKCR\.html" /f /ve /t REG_SZ /d "htmlfile" 1>nul' cmd /c 'reg add "HKCR\.html" /f /v "String (Default)" /t REG_SZ /d "htmlfile" 1>nul' $RepairOfficeButton = [System.Windows.MessageBox]::Show('已修改注册表', '修改Office注册表值htmlfile - [ INFO ]') }) #[?]您的组织策略阻止我们为您完成此操作,有关详细信息,请联系技术支持 $RepairOfficeInfoButton = New-Object System.Windows.Forms.Button $RepairOfficeInfoButton.Location = New-Object System.Drawing.Point(290,380) $RepairOfficeInfoButton.Size = New-Object System.Drawing.Size(30,30) $RepairOfficeInfoButton.Font = New-Object System.Drawing.Font( "幼圆",11,[System.Drawing.FontStyle]::Regular ) $RepairOfficeInfoButton.Text = "?" $Form.Controls.Add($RepairOfficeInfoButton) $RepairOfficeInfoButton.Add_Click({ $RepairOfficeInfoButton = [System.Windows.MessageBox]::Show(' Office点击超链接弹出如下提升 您的组织策略阻止我们为您完成此操作,有关详细信息,请联系技术支持 一般是安装了360浏览器或者其他软件导致超链接被修改 点击修复按钮即可恢复默认设置', ' - [ INFO ]') }) #自动重新加域 $reAddDomainButton = New-Object System.Windows.Forms.Button $reAddDomainButton.Location = New-Object System.Drawing.Point(20,420) $reAddDomainButton.Size = New-Object System.Drawing.Size(260,30) $reAddDomainButton.Font = New-Object System.Drawing.Font( "幼圆",11,[System.Drawing.FontStyle]::Regular ) $reAddDomainButton.Text = "没有信任关系重新加域" $Form.Controls.Add($reAddDomainButton) $reAddDomainButton.Add_Click({ start .\lib\reAddDomain\reAddDomain.exe }) #[?]重新加域 $reAddDomainInfoButton = New-Object System.Windows.Forms.Button $reAddDomainInfoButton.Location = New-Object System.Drawing.Point(290,420) $reAddDomainInfoButton.Size = New-Object System.Drawing.Size(30,30) $reAddDomainInfoButton.Font = New-Object System.Drawing.Font( "幼圆",11,[System.Drawing.FontStyle]::Regular ) $reAddDomainInfoButton.Text = "?" $Form.Controls.Add($reAddDomainInfoButton) $reAddDomainInfoButton.Add_Click({ $reAddDomainInfoButton = [System.Windows.MessageBox]::Show(' 1. 点击 [没有信任关系重新加域] 按钮 2. 在左上角弹出窗口点击确定 3. 等待程序完成设置,完成后会弹窗提示 4. 点击弹出框是按钮,重启电脑 !!!Warning !!! 操作后短时间内PDC又出现没有信任关系,点击 [PDC测试] 按钮查看所有PDC服务器是否连接通畅。若有请求超时服务器掉域属于正常现象,等待一两天后再尝试重新加域' , '重新加域 - [ INFO ]') }) # 端口检测工具 $portCheckerButton = New-Object System.Windows.Forms.Button $portCheckerButton.Location = New-Object System.Drawing.Point(20,460) $portCheckerButton.Size = New-Object System.Drawing.Size(140,30) $portCheckerButton.Font = New-Object System.Drawing.Font( "幼圆",11,[System.Drawing.FontStyle]::Regular ) $portCheckerButton.Text = "端口检测工具" $Form.Controls.Add($portCheckerButton) $portCheckerButton.Add_Click({ start .\lib\postjson_windows\ouapi.exe }) # 创建ping次数输入框 $pingPDCTextBox = New-Object System.Windows.Forms.TextBox $pingPDCTextBox.Location = New-Object System.Drawing.Point(250,500) $pingPDCTextBox.Multiline = $true $pingPDCTextBox.Size = New-Object System.Drawing.Size(30,30) $pingPDCTextBox.BackColor = '#93d5dc' $pingPDCTextBox.Font = New-Object System.Drawing.Font("Comic Sans MS",12) #$SetNameTextBox.BackColor = [System.Drawing.Color]::FromName("Transparent") $Form.Controls.Add($pingPDCTextBox) $pingPDCTextBox.Text = "1" $pingPDC = $pingPDCTextBox.Text # 创建ip检测按钮 $pingPDCButton = New-Object System.Windows.Forms.Button $pingPDCButton.Location = New-Object System.Drawing.Point(20,500) $pingPDCButton.Size = New-Object System.Drawing.Size(220,30) $pingPDCButton.Font = New-Object System.Drawing.Font( "幼圆",11,[System.Drawing.FontStyle]::Regular ) $pingPDCButton.Text = "PDC测试" $Form.Controls.Add($pingPDCButton) $pingPDCButton.Add_Click({ $ip = Resolve-DnsName -Name pdc.chana.com -DnsOnly $ipArray = $ip.IPAddress for (($i = 0); $i -lt $ipArray.Count; $i++) { $ouput = ping $ipArray[$i] -n $pingPDCTextBox.Text | Where-Object {$_ -match "回复" -or $_ -match "Reply" -or $_ -match "请求超时" -or $_ -match "Request timed out" -or $_ -match "无法访问目标主机" -or $_ -match "Destination host unreachable"} $tmp1 = $ipArray[$i] +": " + "`n " + $ouput $tmp = $tmp + "`n" + $tmp1 } $msgBoxInput = [System.Windows.MessageBox]::Show($tmp,"ping结果") }) #设置ping解释按钮[?] $pingPDCinfoButton = New-Object System.Windows.Forms.Button $pingPDCinfoButton.Location = New-Object System.Drawing.Point(290,500) $pingPDCinfoButton.Size = New-Object System.Drawing.Size(30,30) $pingPDCinfoButton.Font = New-Object System.Drawing.Font( "幼圆",11,[System.Drawing.FontStyle]::Regular ) $pingPDCinfoButton.Text = "?" $Form.Controls.Add($pingPDCinfoButton) $pingPDCinfoButton.Add_Click({ $msgBoxInput = [System.Windows.MessageBox]::Show(' 点击 [PDC测试]会自动从DNS解析PDC所有IP地址并ping测试 右侧输入框可自定义测试次数,默认测试1次', 'PDC连接测试 - [ INFO ]') }) # 如果将窗体显示为最顶层窗体,则为 true;否则为 false。 默认值为 false $form.Topmost = $false # 初始化表单,以便可以看到它 $Form.ShowDialog()