diff --git a/Win 10.ps1 b/Win 10.ps1 index 753ee062..86ee6b9d 100644 --- a/Win 10.ps1 +++ b/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 \ No newline at end of file +Stop-Process -ProcessName explorer