Browse Source

Update Win 10.ps1

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

6
Win 10.ps1

@ -1,4 +1,4 @@
# Службы диагностического отслеживания # Службы диагностического отслеживания
$services = @( $services = @(
"CDPSvc", "CDPSvc",
"DiagTrack", "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 pngfile\DefaultIcon=%SystemRoot%\System32\imageres.dll,-71
cmd.exe /c assoc TIFImage.Document\DefaultIcon=%SystemRoot%\System32\imageres.dll,-122 cmd.exe /c assoc TIFImage.Document\DefaultIcon=%SystemRoot%\System32\imageres.dll,-122
# Удалить OneDrive # Удалить OneDrive
Stop-Process -Name OneDrive -ErrorAction SilentlyContinue Stop-Process -Name OneDrive -Force -ErrorAction SilentlyContinue
Start-Sleep -s 3 Start-Sleep -s 3
Start-Process "$env:SystemRoot\SysWOW64\OneDriveSetup.exe" /uninstall -NoNewWindow -Wait Start-Process "$env:SystemRoot\SysWOW64\OneDriveSetup.exe" /uninstall -NoNewWindow -Wait
Start-Sleep -s 3 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 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

Loading…
Cancel
Save