Skip to content

Commit e667521

Browse files
authored
Update Win 10.ps1
1 parent 77b9874 commit e667521

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Win 10.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -837,10 +837,10 @@ Do
837837
Set-Content -Path "$DesktopFolder\desktop.ini" -Value $DesktopINI["Desktop"] -Encoding Unicode -Force
838838
(Get-Item -Path "$DesktopFolder\desktop.ini" -Force).Attributes = "Hidden", "System", "Archive"
839839
(Get-Item -Path "$DesktopFolder\desktop.ini" -Force).Refresh()
840-
# Save screenshots by pressing Win+PrtScr to the Desktop
841-
# Сохранить скриншот по Win+PrtScr на рабочем столе
842-
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{b7bede81-df94-4682-a7d8-57a52620b86f}" -Name RelativePath -PropertyType String -Value $DesktopFolder -Force
843840
}
841+
# Save screenshots by pressing Win+PrtScr to the Desktop
842+
# Сохранить скриншот по Win+PrtScr на рабочем столе
843+
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{b7bede81-df94-4682-a7d8-57a52620b86f}" -Name RelativePath -PropertyType String -Value $DesktopFolder -Force
844844
}
845845
elseif ([string]::IsNullOrEmpty($drive))
846846
{
@@ -958,7 +958,7 @@ Do
958958
Set-Content -Path "$DownloadsFolder\desktop.ini" -Value $DesktopINI["Downloads"] -Encoding Unicode -Force
959959
(Get-Item -Path "$DownloadsFolder\desktop.ini" -Force).Attributes = "Hidden", "System", "Archive"
960960
(Get-Item -Path "$DownloadsFolder\desktop.ini" -Force).Refresh()
961-
# Microsoft Edge
961+
# Microsoft Edge download folder
962962
$edge = (Get-AppxPackage "Microsoft.MicrosoftEdge").PackageFamilyName
963963
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
964964
}

0 commit comments

Comments
 (0)