From a14cbbcfb738cffb17b119b53ae59669f3dcc07f Mon Sep 17 00:00:00 2001 From: farag2 Date: Thu, 17 Jan 2019 09:18:52 +0300 Subject: [PATCH] Update Win 10.ps1 --- Win 10.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Win 10.ps1 b/Win 10.ps1 index 96016bf4..d3819d96 100644 --- a/Win 10.ps1 +++ b/Win 10.ps1 @@ -734,7 +734,7 @@ filter Get-FirstResolvedPath $regpath = 'Folder\Start.reg' | Get-FirstResolvedPath IF ($regpath) { - Remove-Item HKCU:\Software\Microsoft\Windows\CurrentVersion\CloudStore\Store\Cache\DefaultAccount -Recurse -Force + Remove-Item -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\CloudStore\Store\Cache\DefaultAccount -Recurse -Force Start-Process -FilePath reg.exe -ArgumentList 'import',"$regpath" } Else @@ -827,7 +827,7 @@ function KnownFolderPath $Downloads = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{374DE290-123F-4565-9164-39C4925E467B}" IF ($Downloads -ne "$drive\Загрузки") { - IF (!(Test-Pat -Path $drive\Загрузки)) + IF (!(Test-Path -Path $drive\Загрузки)) { New-Item -Path $drive\Загрузки -Type Directory -Force }