Browse Source

Update Win 10.ps1

pull/3/head
farag2 5 years ago
committed by GitHub
parent
commit
bdbd9fc0a6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      Win 10.ps1

7
Win 10.ps1

@ -555,10 +555,11 @@ New-ItemProperty -Path "Registry::HKEY_USERS\.DEFAULT\Control Panel\Keyboard" -N
$drives = Get-Disk | Where-Object {$_.IsBoot -eq $false}
IF ($drives)
{
$drives = ($drives | Get-Partition | Get-Volume | Where-Object {$null -ne $_.DriveLetter}).DriveLetter + ':'
Foreach ($drive In $drives)
$drives = ($drives | Get-Partition | Get-Volume | Where-Object {$null -ne $_.DriveLetter}).DriveLetter | ForEach-Object {Join-Path ($_ + ":") $Path -Resolve}
Foreach ($drive in $drives)
{
Set-MpPreference -ExclusionPath $drive\Программы\Прочее -Force
$folder = "Программы\Прочее"
Add-MpPreference -ExclusionPath (Join-Path -Path $drive -ChildPath $folder) -Force
}
}
# Включить Защиты сети в Защитнике Windows

Loading…
Cancel
Save