mirror of
https://github.com/Disassembler0/Win10-Initial-Setup-Script.git
synced 2026-04-23 03:00:50 -04:00
Reorder ShowControlPanelOnDesktop (no functional changes)
This commit is contained in:
@@ -125,8 +125,8 @@ HideRecentShortcuts # ShowRecentShortcuts
|
||||
SetExplorerThisPC # SetExplorerQuickAccess
|
||||
HideQuickAccess # ShowQuickAccess
|
||||
ShowThisPCOnDesktop # HideThisPCFromDesktop
|
||||
# ShowControlPanelOnDesktop # HideControlPanelFromDesktop
|
||||
# ShowUserFolderOnDesktop # HideUserFolderFromDesktop
|
||||
# ShowControlPanelOnDesktop # HideControlPanelFromDesktop
|
||||
HideDesktopFromThisPC # ShowDesktopInThisPC
|
||||
# HideDesktopFromExplorer # ShowDesktopInExplorer
|
||||
HideDocumentsFromThisPC # ShowDocumentsInThisPC
|
||||
|
||||
26
Win10.psm1
26
Win10.psm1
@@ -1912,6 +1912,19 @@ Function ShowControlPanelOnDesktop {
|
||||
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" -Name "{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}" -Type DWord -Value 0
|
||||
}
|
||||
|
||||
# Hide User Folder shortcut from desktop
|
||||
Function HideUserFolderFromDesktop {
|
||||
Write-Output "Hiding User Folder shortcut from desktop..."
|
||||
Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu" -Name "{59031a47-3f72-44a7-89c5-5595fe6b30ee}" -ErrorAction SilentlyContinue
|
||||
Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" -Name "{59031a47-3f72-44a7-89c5-5595fe6b30ee}" -ErrorAction SilentlyContinue
|
||||
}
|
||||
|
||||
# Hide Desktop icon from This PC - The icon remains in personal folders and open/save dialogs
|
||||
Function HideDesktopFromThisPC {
|
||||
Write-Output "Hiding Desktop icon from This PC..."
|
||||
Remove-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}" -Recurse -ErrorAction SilentlyContinue
|
||||
}
|
||||
|
||||
# Hide Control panel shortcut from desktop
|
||||
Function HideControlPanelFromDesktop {
|
||||
Write-Output "Hiding Control panel shortcut from desktop..."
|
||||
@@ -1932,19 +1945,6 @@ Function ShowUserFolderOnDesktop {
|
||||
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" -Name "{59031a47-3f72-44a7-89c5-5595fe6b30ee}" -Type DWord -Value 0
|
||||
}
|
||||
|
||||
# Hide User Folder shortcut from desktop
|
||||
Function HideUserFolderFromDesktop {
|
||||
Write-Output "Hiding User Folder shortcut from desktop..."
|
||||
Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu" -Name "{59031a47-3f72-44a7-89c5-5595fe6b30ee}" -ErrorAction SilentlyContinue
|
||||
Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" -Name "{59031a47-3f72-44a7-89c5-5595fe6b30ee}" -ErrorAction SilentlyContinue
|
||||
}
|
||||
|
||||
# Hide Desktop icon from This PC - The icon remains in personal folders and open/save dialogs
|
||||
Function HideDesktopFromThisPC {
|
||||
Write-Output "Hiding Desktop icon from This PC..."
|
||||
Remove-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}" -Recurse -ErrorAction SilentlyContinue
|
||||
}
|
||||
|
||||
# Show Desktop icon in This PC
|
||||
Function ShowDesktopInThisPC {
|
||||
Write-Output "Showing Desktop icon in This PC..."
|
||||
|
||||
Reference in New Issue
Block a user