diff --git a/Reimage PC.ps1 b/Reimage PC.ps1 index 096e3bf..4277e95 100644 --- a/Reimage PC.ps1 +++ b/Reimage PC.ps1 @@ -11,15 +11,17 @@ Set-ItemProperty -Path "REGISTRY::HKEY_CURRENT_USER\Control Panel\Mouse" -Name M Set-ItemProperty -Path "REGISTRY::HKEY_CURRENT_USER\Control Panel\Mouse" -Name MouseThreshold2 -Value 0 #Set Default User Folders -New-Item -Path "C:\Users\$Username\My Files" -ItemType Directory -New-Item -Path "C:\Users\$Username\My Files\Documents" -ItemType Directory -New-Item -Path "C:\Users\$Username\My Files\Downloads" -ItemType Directory -New-Item -Path "C:\Users\$Username\My Files\Pictures" -ItemType Directory -New-Item -Path "C:\Users\$Username\My Files\Videos" -ItemType Directory -Set-ItemProperty -Path "REGISTRY::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "Personal" -Value "%USERPROFILE%\My Files\Documents" -Set-ItemProperty -Path "REGISTRY::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{374DE290-123F-4565-9164-39C4925E467B}" -Value "%USERPROFILE%\My Files\Downloads" -Set-ItemProperty -Path "REGISTRY::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "My Pictures" -Value "%USERPROFILE%\My Files\Pictures" -Set-ItemProperty -Path "REGISTRY::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "My Video" -Value "%USERPROFILE%\My Files\Videos" +$Path = "C:\Users\$Username\My Files" +$RegPath = "My Files" +New-Item -Path $Path -ItemType Directory +New-Item -Path "$Path\Documents" -ItemType Directory +New-Item -Path "$Path\Downloads" -ItemType Directory +New-Item -Path "$Path\Pictures" -ItemType Directory +New-Item -Path "$Path\Videos" -ItemType Directory +Set-ItemProperty -Path "REGISTRY::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "Personal" -Value "%USERPROFILE%\$RegPath\Documents" +Set-ItemProperty -Path "REGISTRY::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{374DE290-123F-4565-9164-39C4925E467B}" -Value "%USERPROFILE%\$RegPath\Downloads" +Set-ItemProperty -Path "REGISTRY::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "My Pictures" -Value "%USERPROFILE%\$RegPath\Pictures" +Set-ItemProperty -Path "REGISTRY::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "My Video" -Value "%USERPROFILE%\$RegPath\Videos" #Old Right Click Menu in Win 11 reg add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve