新聞中心
powershell,Get-MpPlatform -Language English | Select-Object -Property PlatformDescription, AntimalwareSdkVersion, AntimalwareSdkName, UpdateUrl, UpdateHashcode, UpdateSize, UpdateDate,`,3. 找到您的平臺(tái)描述,然后在 Microsoft 安全情報(bào)更新頁面上下載適用于您的平臺(tái)的離線更新文件 。,4. 將下載的離線更新文件復(fù)制到包含 Windows Defender 的文件夾中。,5. 在 PowerShell 中輸入以下命令并按 Enter 鍵:,`powershell,Start-Process -FilePath "C:Program Files (x86)Microsoft SecurityMpEngineMpCmdRun.exe" -ArgumentList "/scan" -Wait,“什么是PowerShell?
PowerShell是微軟公司推出的一種強(qiáng)大的命令行腳本環(huán)境,它基于.NET Framework,可以運(yùn)行在Windows操作系統(tǒng)上,PowerShell具有豐富的功能,可以幫助用戶更高效地管理計(jì)算機(jī)資源,提高工作效率,PowerShell也支持多種編程語言,如C、VBScript等,使得開發(fā)者可以在PowerShell環(huán)境中編寫腳本程序,實(shí)現(xiàn)自動(dòng)化操作。

如何安裝PowerShell?
1、訪問微軟官方網(wǎng)站下載PowerShell安裝包:https://docs.microsoft.com/zh-cn/powershell/scripting/install/installing-powershell?view=powershell-7
2、根據(jù)您的操作系統(tǒng)選擇相應(yīng)的安裝包,點(diǎn)擊下載。
3、下載完成后,雙擊安裝包開始安裝。
4、按照提示完成安裝過程。
5、安裝完成后,打開“開始”菜單,找到“Windows PowerShell”文件夾,右鍵單擊“Windows PowerShell”,選擇“以管理員身份運(yùn)行”。
如何使用PowerShell更新Windows Defender?
1、打開“Windows PowerShell”,輸入以下命令,查看當(dāng)前Windows Defender的狀態(tài):
Get-MpPreference -Name Real-Time Protection
2、如果Real-Time Protection處于“Enabled”狀態(tài),可以通過以下命令關(guān)閉實(shí)時(shí)保護(hù):
Set-MpPreference -Name Real-Time Protection -Enabled $false
3、關(guān)閉實(shí)時(shí)保護(hù)后,可以通過以下命令重新啟用實(shí)時(shí)保護(hù):
Set-MpPreference -Name Real-Time Protection -Enabled $true
4、再次輸入以下命令查看Windows Defender的狀態(tài),確認(rèn)實(shí)時(shí)保護(hù)已恢復(fù)正常:
Get-MpPreference -Name Real-Time Protection
常見問題與解答
1、如何查看Windows Defender的版本信息?
答:在PowerShell中輸入以下命令即可查看Windows Defender的版本信息:
Get-MpSoftware -DisplayName "Windows Defender" | Select-Object Version, RevisionNumber
2、如何手動(dòng)更新Windows Defender?
答:在PowerShell中輸入以下命令即可手動(dòng)更新Windows Defender:
Start-Service -Name MpsSvc -ErrorAction Stop; Start-Service -Name MsMpSvc -ErrorAction Stop; Start-Service -Name AntiSpyware -ErrorAction Stop; Start-Service -Name AntiVirusService -ErrorAction Stop; Start-Service -Name WindowsDefenderAntiSpywareService -ErrorAction Stop; Start-Service -Name WindowsDefenderApplicationMonitoringService -ErrorAction Stop; Start-Service -Name WindowsDefenderLiveGuardService -ErrorAction Stop; Start-Service -Name WindowsDefenderPumpHeartbeatService -ErrorAction Stop; Start-Service -Name WindowsDefenderRemoteAccessProtectionAgentService -ErrorAction Stop; Start-Service -Name WindowsDefenderScanningService -ErrorAction Stop; Start-Service -Name WindowsDefenderUpgradeService -ErrorAction Stop; Start-Service -Name WdfsSvc -ErrorAction Stop; Wait-Seconds 600; Start-Service -Name WdfsSvc; Wait-Seconds 600; Start-Service -Name WmiAuditingService -ErrorAction Stop; Wait-Seconds 900; Start-Service -Name WmiAuditingService; Wait-Seconds 900; Start-Service -Name AntimalwareServiceEx -ErrorAction Stop; Wait-Seconds 600; Start-Service -Name AntimalwareServiceEx; Wait-Seconds 600; Start-Service -Name AntimalwareServiceExCore -ErrorAction Stop; Wait-Seconds 600; Start-Service -Name AntimalwareServiceExCore; Wait-Seconds 600; Start-Service -Name AntimalwareServiceExHostAgent -ErrorAction Stop; Wait-Seconds 600; Start-Service -Name AntimalwareServiceExHostAgent; Wait-Seconds 600; Start-Service -Name AntimalwareServiceExServerAgent -ErrorAction Stop; Wait-Seconds 600; Start-Service -Name AntimalwareServiceExServerAgent; Wait-Seconds 600; Start
文章題目:怎么使用PowerShell更新WindowsDefender
文章來源:http://m.fisionsoft.com.cn/article/cooegde.html


咨詢
建站咨詢
