From e66752147b4d90a273865b8471b5016fa15d7ab6 Mon Sep 17 00:00:00 2001 From: farag2 Date: Mon, 14 Oct 2019 15:34:43 +0300 Subject: [PATCH] Update Win 10.ps1 --- Win 10.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Win 10.ps1 b/Win 10.ps1 index faa39791..685569fd 100644 --- a/Win 10.ps1 +++ b/Win 10.ps1 @@ -837,10 +837,10 @@ Do Set-Content -Path "$DesktopFolder\desktop.ini" -Value $DesktopINI["Desktop"] -Encoding Unicode -Force (Get-Item -Path "$DesktopFolder\desktop.ini" -Force).Attributes = "Hidden", "System", "Archive" (Get-Item -Path "$DesktopFolder\desktop.ini" -Force).Refresh() - # Save screenshots by pressing Win+PrtScr to the Desktop - # Сохранить скриншот по Win+PrtScr на рабочем столе - New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{b7bede81-df94-4682-a7d8-57a52620b86f}" -Name RelativePath -PropertyType String -Value $DesktopFolder -Force } + # Save screenshots by pressing Win+PrtScr to the Desktop + # Сохранить скриншот по Win+PrtScr на рабочем столе + New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{b7bede81-df94-4682-a7d8-57a52620b86f}" -Name RelativePath -PropertyType String -Value $DesktopFolder -Force } elseif ([string]::IsNullOrEmpty($drive)) { @@ -958,7 +958,7 @@ Do Set-Content -Path "$DownloadsFolder\desktop.ini" -Value $DesktopINI["Downloads"] -Encoding Unicode -Force (Get-Item -Path "$DownloadsFolder\desktop.ini" -Force).Attributes = "Hidden", "System", "Archive" (Get-Item -Path "$DownloadsFolder\desktop.ini" -Force).Refresh() - # Microsoft Edge + # Microsoft Edge download folder $edge = (Get-AppxPackage "Microsoft.MicrosoftEdge").PackageFamilyName New-ItemProperty -Path "HKCU:\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\$edge\MicrosoftEdge\Main" -Name "Default Download Directory" -PropertyType String -Value $DownloadsFolder -Force }