File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 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 {
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 }
You can’t perform that action at this time.
0 commit comments