farag2
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
3 deletions
-
Win 10.ps1
|
|
@ -1,4 +1,4 @@ |
|
|
|
# Службы диагностического отслеживания |
|
|
|
# Службы диагностического отслеживания |
|
|
|
$services = @( |
|
|
|
"CDPSvc", |
|
|
|
"DiagTrack", |
|
|
@ -284,7 +284,7 @@ cmd.exe /c assoc jpegfile\DefaultIcon=%SystemRoot%\System32\imageres.dll,-72 |
|
|
|
cmd.exe /c assoc pngfile\DefaultIcon=%SystemRoot%\System32\imageres.dll,-71 |
|
|
|
cmd.exe /c assoc TIFImage.Document\DefaultIcon=%SystemRoot%\System32\imageres.dll,-122 |
|
|
|
# Удалить OneDrive |
|
|
|
Stop-Process -Name OneDrive -ErrorAction SilentlyContinue |
|
|
|
Stop-Process -Name OneDrive -Force -ErrorAction SilentlyContinue |
|
|
|
Start-Sleep -s 3 |
|
|
|
Start-Process "$env:SystemRoot\SysWOW64\OneDriveSetup.exe" /uninstall -NoNewWindow -Wait |
|
|
|
Start-Sleep -s 3 |
|
|
@ -819,4 +819,4 @@ IF ($drive) |
|
|
|
New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{F42EE2D3-909F-4907-8871-4C22FC0BF756}" -Type ExpandString -Value "$drive\Документы" -Force |
|
|
|
} |
|
|
|
} |
|
|
|
Stop-Process -ProcessName explorer |
|
|
|
Stop-Process -ProcessName explorer |
|
|
|