Загрузка данных


$f = if (Test-Path "$env:ProgramData\ssh\administrators_authorized_keys") { "$env:ProgramData\ssh\administrators_authorized_keys" } else { "$env:USERPROFILE\.ssh\authorized_keys" }
Copy-Item $f "$f.bak" -Force
(Get-Content $f) -replace 'from="192\.168\.\*"','from="192.168.0.0/16,100.64.0.0/10"' | Set-Content $f -Encoding ascii
Get-Content $f