@ -13,7 +13,7 @@
. NOTES
Supported Windows 11 versions
Versions : 22H2 / 23H2 +
Builds : 22621 . 134 4 +
Builds : 22621 . 1413 +
Editions : Home / Pro / Enterprise
. LINK GitHub
@ -159,9 +159,9 @@ function Checks
}
{ $_ -ge 22621 }
{
if ( ( Get-ItemPropertyValue -Path " HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion " -Name UBR ) -lt 134 4 )
if ( ( Get-ItemPropertyValue -Path " HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion " -Name UBR ) -lt 1413 )
{
# Check whether the OS minor build version is 134 4 minimum
# Check whether the OS minor build version is 1413 minimum
# https://docs.microsoft.com/en-us/windows/release-health/windows11-release-information
$CurrentBuild = Get-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion " -Name CurrentBuild
$UBR = Get-ItemProperty -Path " HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion " -Name UBR
@ -246,7 +246,7 @@ function Checks
# Check whether the OS was infected by the Win 10 Tweaker's trojan
# https://win10tweaker.ru
if ( Test-Path -Path " HKCU:\Software\Win 10 Tweaker " )
if ( ( Test-Path -Path " HKCU:\Software\Win 10 Tweaker " ) -or ( Test-Path -Path " $ {env:ProgramFiles(x86)}\Win 10 Tweakеr " ) )
{
Write-Warning -Message $Localization . Win10TweakerWarning
Start-Process -FilePath " https://youtu.be/na93MS-1EkM "
@ -807,7 +807,7 @@ function DiagTrackService
" Disable "
{
# Connected User Experiences and Telemetry
# Disabling the "Connected User Experiences and Telemetry" service (DiagTrack) can cause you not being able to get Xbox achievements anymore
# Disabling the "Connected User Experiences and Telemetry" service (DiagTrack) can cause you not being able to get Xbox achievements anymore and affects Feedback Hub
Get-Service -Name DiagTrack | Stop-Service -Force
Get-Service -Name DiagTrack | Set-Service -StartupType Disabled
@ -6498,6 +6498,14 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
$Default
)
# There's a bug in Windows Terminal with double text in console
# https://github.com/microsoft/terminal/issues/14992
if ( $env:WT_SESSION )
{
Clear-Host
}
Write-Information -MessageData " " -InformationAction Continue
Write-Information -MessageData $Title -InformationAction Continue
# Extract the localized "Skip" string from shell32.dll
@ -6514,11 +6522,11 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
{
if ( $i -ne $y )
{
Write-Information -MessageData ( ' {0}. { 1} ' -f ( $i + 1 ) , $item ) -InformationAction Continue
Write-Information -MessageData ( ' {1} ' -f ( $i + 1 ) , $item ) -InformationAction Continue
}
else
{
Write-Information -MessageData ( '[ {0}. { 1} ]' -f ( $i + 1 ) , $item ) -InformationAction Continue
Write-Information -MessageData ( '[ {1} ]' -f ( $i + 1 ) , $item ) -InformationAction Continue
}
$i + +
}
@ -6556,14 +6564,6 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
while ( $k . Key -notin ( [ConsoleKey] :: Escape , [ConsoleKey] :: Enter ) )
}
# The localized user folders names
$DesktopLocalizedString = [WinAPI.GetStr] :: GetString ( 21769 )
$DocumentsLocalizedString = [WinAPI.GetStr] :: GetString ( 21770 )
$DownloadsLocalizedString = [WinAPI.GetStr] :: GetString ( 21798 )
$MusicLocalizedString = [WinAPI.GetStr] :: GetString ( 21790 )
$PicturesLocalizedString = [WinAPI.GetStr] :: GetString ( 21779 )
$VideosLocalizedString = [WinAPI.GetStr] :: GetString ( 21791 )
switch ( $PSCmdlet . ParameterSetName )
{
" Root "
@ -6583,14 +6583,14 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
# Desktop
Write-Information -MessageData " " -InformationAction Continue
Write-Verbose -Message ( $Localization . DriveSelect -f $DesktopLocalizedString ) -Verbose
Write-Verbose -Message ( $Localization . DriveSelect -f [WinAPI.GetStr] :: GetString ( 21769 ) ) -Verbose
$CurrentUserFolderLocation = Get-ItemPropertyValue -Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders " -Name Desktop
Write-Verbose -Message ( $Localization . CurrentUserFolderLocation -f $DesktopLocalizedString , $CurrentUserFolderLocation ) -Verbose
Write-Verbose -Message ( $Localization . CurrentUserFolderLocation -f [WinAPI.GetStr] :: GetString ( 21769 ) , $CurrentUserFolderLocation ) -Verbose
Write-Warning -Message $Localization . FilesWontBeMoved
$Title = " "
$Message = $Localization . UserFolderRequest -f $DesktopLocalizedString
$Message = $Localization . UserFolderRequest -f [WinAPI.GetStr] :: GetString ( 21769 )
# Extract the localized "&No" string from shell32.dll
$No = [WinAPI.GetStr] :: GetString ( 33232 )
# Extract the localized "&Yes" string from shell32.dll
@ -6605,7 +6605,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
{
if ( $DriveLetters . Count -gt 1 )
{
$SelectedDrive = ShowMenu -Title ( $Localization . DriveSelect -f $DesktopLocalizedString ) -Menu $DriveLetters -Default $Script:Default
$SelectedDrive = ShowMenu -Title ( $Localization . DriveSelect -f [WinAPI.GetStr] :: GetString ( 21769 ) ) -Menu $DriveLetters -Default $Script:Default
}
else
{
@ -6625,14 +6625,14 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
# Documents
Write-Information -MessageData " " -InformationAction Continue
Write-Verbose -Message ( $Localization . DriveSelect -f $DocumentsLocalizedString ) -Verbose
Write-Verbose -Message ( $Localization . DriveSelect -f [WinAPI.GetStr] :: GetString ( 21770 ) ) -Verbose
$CurrentUserFolderLocation = Get-ItemPropertyValue -Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders " -Name Personal
Write-Verbose -Message ( $Localization . CurrentUserFolderLocation -f $DocumentsLocalizedString , $CurrentUserFolderLocation ) -Verbose
Write-Verbose -Message ( $Localization . CurrentUserFolderLocation -f [WinAPI.GetStr] :: GetString ( 21770 ) , $CurrentUserFolderLocation ) -Verbose
Write-Warning -Message $Localization . FilesWontBeMoved
$Title = " "
$Message = $Localization . UserFolderRequest -f $DocumentsLocalizedString
$Message = $Localization . UserFolderRequest -f [WinAPI.GetStr] :: GetString ( 21770 )
# Extract the localized "&No" string from shell32.dll
$No = [WinAPI.GetStr] :: GetString ( 33232 )
# Extract the localized "&Yes" string from shell32.dll
@ -6647,7 +6647,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
{
if ( $DriveLetters . Count -gt 1 )
{
$SelectedDrive = ShowMenu -Title ( $Localization . DriveSelect -f $DesktopLocalizedString ) -Menu $DriveLetters -Default $Script:Default
$SelectedDrive = ShowMenu -Title ( $Localization . DriveSelect -f [WinAPI.GetStr] :: GetString ( 21770 ) ) -Menu $DriveLetters -Default $Script:Default
}
else
{
@ -6667,14 +6667,14 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
# Downloads
Write-Information -MessageData " " -InformationAction Continue
Write-Verbose -Message ( $Localization . DriveSelect -f $DownloadsLocalizedString ) -Verbose
Write-Verbose -Message ( $Localization . DriveSelect -f [WinAPI.GetStr] :: GetString ( 21798 ) ) -Verbose
$CurrentUserFolderLocation = Get-ItemPropertyValue -Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders " -Name " {374DE290-123F-4565-9164-39C4925E467B} "
Write-Verbose -Message ( $Localization . CurrentUserFolderLocation -f $DownloadsLocalizedString , $CurrentUserFolderLocation ) -Verbose
Write-Verbose -Message ( $Localization . CurrentUserFolderLocation -f [WinAPI.GetStr] :: GetString ( 21798 ) , $CurrentUserFolderLocation ) -Verbose
Write-Warning -Message $Localization . FilesWontBeMoved
$Title = " "
$Message = $Localization . UserFolderRequest -f $DownloadsLocalizedString
$Message = $Localization . UserFolderRequest -f [WinAPI.GetStr] :: GetString ( 21798 )
# Extract the localized "&No" string from shell32.dll
$No = [WinAPI.GetStr] :: GetString ( 33232 )
# Extract the localized "&Yes" string from shell32.dll
@ -6689,7 +6689,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
{
if ( $DriveLetters . Count -gt 1 )
{
$SelectedDrive = ShowMenu -Title ( $Localization . DriveSelect -f $DesktopLocalizedString ) -Menu $DriveLetters -Default $Script:Default
$SelectedDrive = ShowMenu -Title ( $Localization . DriveSelect -f [WinAPI.GetStr] :: GetString ( 21798 ) ) -Menu $DriveLetters -Default $Script:Default
}
else
{
@ -6709,14 +6709,14 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
# Music
Write-Information -MessageData " " -InformationAction Continue
Write-Verbose -Message ( $Localization . DriveSelect -f $MusicLocalizedString ) -Verbose
Write-Verbose -Message ( $Localization . DriveSelect -f [WinAPI.GetStr] :: GetString ( 21790 ) ) -Verbose
$CurrentUserFolderLocation = Get-ItemPropertyValue -Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders " -Name " My Music "
Write-Verbose -Message ( $Localization . CurrentUserFolderLocation -f $MusicLocalizedString , $CurrentUserFolderLocation ) -Verbose
Write-Verbose -Message ( $Localization . CurrentUserFolderLocation -f [WinAPI.GetStr] :: GetString ( 21790 ) , $CurrentUserFolderLocation ) -Verbose
Write-Warning -Message $Localization . FilesWontBeMoved
$Title = " "
$Message = $Localization . UserFolderRequest -f $MusicLocalizedString
$Message = $Localization . UserFolderRequest -f [WinAPI.GetStr] :: GetString ( 21790 )
# Extract the localized "&No" string from shell32.dll
$No = [WinAPI.GetStr] :: GetString ( 33232 )
# Extract the localized "&Yes" string from shell32.dll
@ -6731,7 +6731,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
{
if ( $DriveLetters . Count -gt 1 )
{
$SelectedDrive = ShowMenu -Title ( $Localization . DriveSelect -f $DesktopLocalizedString ) -Menu $DriveLetters -Default $Script:Default
$SelectedDrive = ShowMenu -Title ( $Localization . DriveSelect -f [WinAPI.GetStr] :: GetString ( 21790 ) ) -Menu $DriveLetters -Default $Script:Default
}
else
{
@ -6751,14 +6751,14 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
# Pictures
Write-Information -MessageData " " -InformationAction Continue
Write-Verbose -Message ( $Localization . DriveSelect -f $PicturesLocalizedString ) -Verbose
Write-Verbose -Message ( $Localization . DriveSelect -f [WinAPI.GetStr] :: GetString ( 21779 ) ) -Verbose
$CurrentUserFolderLocation = Get-ItemPropertyValue -Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders " -Name " My Pictures "
Write-Verbose -Message ( $Localization . CurrentUserFolderLocation -f $PicturesLocalizedString , $CurrentUserFolderLocation ) -Verbose
Write-Verbose -Message ( $Localization . CurrentUserFolderLocation -f [WinAPI.GetStr] :: GetString ( 21779 ) , $CurrentUserFolderLocation ) -Verbose
Write-Warning -Message $Localization . FilesWontBeMoved
$Title = " "
$Message = $Localization . UserFolderRequest -f $PicturesLocalizedString
$Message = $Localization . UserFolderRequest -f [WinAPI.GetStr] :: GetString ( 21779 )
# Extract the localized "&No" string from shell32.dll
$No = [WinAPI.GetStr] :: GetString ( 33232 )
# Extract the localized "&Yes" string from shell32.dll
@ -6773,7 +6773,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
{
if ( $DriveLetters . Count -gt 1 )
{
$SelectedDrive = ShowMenu -Title ( $Localization . DriveSelect -f $DesktopLocalizedString ) -Menu $DriveLetters -Default $Script:Default
$SelectedDrive = ShowMenu -Title ( $Localization . DriveSelect -f [WinAPI.GetStr] :: GetString ( 21779 ) ) -Menu $DriveLetters -Default $Script:Default
}
else
{
@ -6793,14 +6793,14 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
# Videos
Write-Information -MessageData " " -InformationAction Continue
Write-Verbose -Message ( $Localization . DriveSelect -f $VideosLocalizedString ) -Verbose
Write-Verbose -Message ( $Localization . DriveSelect -f [WinAPI.GetStr] :: GetString ( 21791 ) ) -Verbose
$CurrentUserFolderLocation = Get-ItemPropertyValue -Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders " -Name " My Video "
Write-Verbose -Message ( $Localization . CurrentUserFolderLocation -f $VideosLocalizedString , $CurrentUserFolderLocation ) -Verbose
Write-Verbose -Message ( $Localization . CurrentUserFolderLocation -f [WinAPI.GetStr] :: GetString ( 21791 ) , $CurrentUserFolderLocation ) -Verbose
Write-Warning -Message $Localization . FilesWontBeMoved
$Title = " "
$Message = $Localization . UserFolderRequest -f $VideosLocalizedString
$Message = $Localization . UserFolderRequest -f [WinAPI.GetStr] :: GetString ( 21791 )
# Extract the localized "&No" string from shell32.dll
$No = [WinAPI.GetStr] :: GetString ( 33232 )
# Extract the localized "&Yes" string from shell32.dll
@ -6815,7 +6815,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
{
if ( $DriveLetters . Count -gt 1 )
{
$SelectedDrive = ShowMenu -Title ( $Localization . DriveSelect -f $DesktopLocalizedString ) -Menu $DriveLetters -Default $Script:Default
$SelectedDrive = ShowMenu -Title ( $Localization . DriveSelect -f [WinAPI.GetStr] :: GetString ( 21791 ) ) -Menu $DriveLetters -Default $Script:Default
}
else
{
@ -6839,11 +6839,11 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData " " -InformationAction Continue
$CurrentUserFolderLocation = Get-ItemPropertyValue -Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders " -Name Desktop
Write-Verbose -Message ( $Localization . CurrentUserFolderLocation -f $DesktopLocalizedString , $CurrentUserFolderLocation ) -Verbose
Write-Verbose -Message ( $Localization . CurrentUserFolderLocation -f [WinAPI.GetStr] :: GetString ( 21769 ) , $CurrentUserFolderLocation ) -Verbose
Write-Warning -Message $Localization . FilesWontBeMoved
$Title = " "
$Message = $Localization . UserFolderSelect -f $DesktopLocalizedString
$Message = $Localization . UserFolderSelect -f [WinAPI.GetStr] :: GetString ( 21769 )
# Extract the localized "Browse" string from shell32.dll
$Browse = [WinAPI.GetStr] :: GetString ( 9015 )
# Extract the localized "&No" string from shell32.dll
@ -6880,11 +6880,11 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData " " -InformationAction Continue
$CurrentUserFolderLocation = Get-ItemPropertyValue -Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders " -Name Personal
Write-Verbose -Message ( $Localization . CurrentUserFolderLocation -f $DocumentsLocalizedString , $CurrentUserFolderLocation ) -Verbose
Write-Verbose -Message ( $Localization . CurrentUserFolderLocation -f [WinAPI.GetStr] :: GetString ( 21770 ) , $CurrentUserFolderLocation ) -Verbose
Write-Warning -Message $Localization . FilesWontBeMoved
$Title = " "
$Message = $Localization . UserFolderSelect -f $DocumentsLocalizedString
$Message = $Localization . UserFolderSelect -f [WinAPI.GetStr] :: GetString ( 21770 )
# Extract the localized "Browse" string from shell32.dll
$Browse = [WinAPI.GetStr] :: GetString ( 9015 )
# Extract the localized "&No" string from shell32.dll
@ -6921,11 +6921,11 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData " " -InformationAction Continue
$CurrentUserFolderLocation = Get-ItemPropertyValue -Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders " -Name " {374DE290-123F-4565-9164-39C4925E467B} "
Write-Verbose -Message ( $Localization . CurrentUserFolderLocation -f $DownloadsLocalizedString , $CurrentUserFolderLocation ) -Verbose
Write-Verbose -Message ( $Localization . CurrentUserFolderLocation -f [WinAPI.GetStr] :: GetString ( 21798 ) , $CurrentUserFolderLocation ) -Verbose
Write-Warning -Message $Localization . FilesWontBeMoved
$Title = " "
$Message = $Localization . UserFolderSelect -f $DownloadsLocalizedString
$Message = $Localization . UserFolderSelect -f [WinAPI.GetStr] :: GetString ( 21798 )
# Extract the localized "Browse" string from shell32.dll
$Browse = [WinAPI.GetStr] :: GetString ( 9015 )
# Extract the localized "&No" string from shell32.dll
@ -6962,11 +6962,11 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData " " -InformationAction Continue
$CurrentUserFolderLocation = Get-ItemPropertyValue -Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders " -Name " My Music "
Write-Verbose -Message ( $Localization . CurrentUserFolderLocation -f $MusicLocalizedString , $CurrentUserFolderLocation ) -Verbose
Write-Verbose -Message ( $Localization . CurrentUserFolderLocation -f [WinAPI.GetStr] :: GetString ( 21790 ) , $CurrentUserFolderLocation ) -Verbose
Write-Warning -Message $Localization . FilesWontBeMoved
$Title = " "
$Message = $Localization . UserFolderSelect -f $MusicLocalizedString
$Message = $Localization . UserFolderSelect -f [WinAPI.GetStr] :: GetString ( 21790 )
# Extract the localized "Browse" string from shell32.dll
$Browse = [WinAPI.GetStr] :: GetString ( 9015 )
# Extract the localized "&No" string from shell32.dll
@ -7003,11 +7003,11 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData " " -InformationAction Continue
$CurrentUserFolderLocation = Get-ItemPropertyValue -Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders " -Name " My Pictures "
Write-Verbose -Message ( $Localization . CurrentUserFolderLocation -f $PicturesLocalizedString , $CurrentUserFolderLocation ) -Verbose
Write-Verbose -Message ( $Localization . CurrentUserFolderLocation -f [WinAPI.GetStr] :: GetString ( 21779 ) , $CurrentUserFolderLocation ) -Verbose
Write-Warning -Message $Localization . FilesWontBeMoved
$Title = " "
$Message = $Localization . UserFolderSelect -f $PicturesLocalizedString
$Message = $Localization . UserFolderSelect -f [WinAPI.GetStr] :: GetString ( 21779 )
# Extract the localized "Browse" string from shell32.dll
$Browse = [WinAPI.GetStr] :: GetString ( 9015 )
# Extract the localized "&No" string from shell32.dll
@ -7044,11 +7044,11 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData " " -InformationAction Continue
$CurrentUserFolderLocation = Get-ItemPropertyValue -Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders " -Name " My Video "
Write-Verbose -Message ( $Localization . CurrentUserFolderLocation -f $VideosLocalizedString , $CurrentUserFolderLocation ) -Verbose
Write-Verbose -Message ( $Localization . CurrentUserFolderLocation -f [WinAPI.GetStr] :: GetString ( 21791 ) , $CurrentUserFolderLocation ) -Verbose
Write-Warning -Message $Localization . FilesWontBeMoved
$Title = " "
$Message = $Localization . UserFolderSelect -f $VideosLocalizedString
$Message = $Localization . UserFolderSelect -f [WinAPI.GetStr] :: GetString ( 21791 )
# Extract the localized "Browse" string from shell32.dll
$Browse = [WinAPI.GetStr] :: GetString ( 9015 )
# Extract the localized "&No" string from shell32.dll
@ -7087,11 +7087,11 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData " " -InformationAction Continue
$CurrentUserFolderLocation = Get-ItemPropertyValue -Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders " -Name Desktop
Write-Verbose -Message ( $Localization . CurrentUserFolderLocation -f $DesktopLocalizedString , $CurrentUserFolderLocation ) -Verbose
Write-Verbose -Message ( $Localization . CurrentUserFolderLocation -f [WinAPI.GetStr] :: GetString ( 21769 ) , $CurrentUserFolderLocation ) -Verbose
Write-Warning -Message $Localization . FilesWontBeMoved
$Title = " "
$Message = $Localization . UserDefaultFolder -f $DesktopLocalizedString
$Message = $Localization . UserDefaultFolder -f [WinAPI.GetStr] :: GetString ( 21769 )
# Extract the localized "&Yes" string from shell32.dll
$Yes = [WinAPI.GetStr] :: GetString ( 33224 )
# Extract the localized "&No" string from shell32.dll
@ -7116,11 +7116,11 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData " " -InformationAction Continue
$CurrentUserFolderLocation = Get-ItemPropertyValue -Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders " -Name Personal
Write-Verbose -Message ( $Localization . CurrentUserFolderLocation -f $DocumentsLocalizedString , $CurrentUserFolderLocation ) -Verbose
Write-Verbose -Message ( $Localization . CurrentUserFolderLocation -f [WinAPI.GetStr] :: GetString ( 21770 ) , $CurrentUserFolderLocation ) -Verbose
Write-Warning -Message $Localization . FilesWontBeMoved
$Title = " "
$Message = $Localization . UserDefaultFolder -f $DocumentsLocalizedString
$Message = $Localization . UserDefaultFolder -f [WinAPI.GetStr] :: GetString ( 21770 )
# Extract the localized "&Yes" string from shell32.dll
$Yes = [WinAPI.GetStr] :: GetString ( 33224 )
# Extract the localized "&No" string from shell32.dll
@ -7145,11 +7145,11 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData " " -InformationAction Continue
$CurrentUserFolderLocation = Get-ItemPropertyValue -Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders " -Name " {374DE290-123F-4565-9164-39C4925E467B} "
Write-Verbose -Message ( $Localization . CurrentUserFolderLocation -f $DownloadsLocalizedString , $CurrentUserFolderLocation ) -Verbose
Write-Verbose -Message ( $Localization . CurrentUserFolderLocation -f [WinAPI.GetStr] :: GetString ( 21798 ) , $CurrentUserFolderLocation ) -Verbose
Write-Warning -Message $Localization . FilesWontBeMoved
$Title = " "
$Message = $Localization . UserDefaultFolder -f $DownloadsLocalizedString
$Message = $Localization . UserDefaultFolder -f [WinAPI.GetStr] :: GetString ( 21798 )
# Extract the localized "&Yes" string from shell32.dll
$Yes = [WinAPI.GetStr] :: GetString ( 33224 )
# Extract the localized "&No" string from shell32.dll
@ -7174,11 +7174,11 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData " " -InformationAction Continue
$CurrentUserFolderLocation = Get-ItemPropertyValue -Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders " -Name " My Music "
Write-Verbose -Message ( $Localization . CurrentUserFolderLocation -f $MusicLocalizedString , $CurrentUserFolderLocation ) -Verbose
Write-Verbose -Message ( $Localization . CurrentUserFolderLocation -f [WinAPI.GetStr] :: GetString ( 21790 ) , $CurrentUserFolderLocation ) -Verbose
Write-Warning -Message $Localization . FilesWontBeMoved
$Title = " "
$Message = $Localization . UserDefaultFolder -f $MusicLocalizedString
$Message = $Localization . UserDefaultFolder -f [WinAPI.GetStr] :: GetString ( 21790 )
# Extract the localized "&Yes" string from shell32.dll
$Yes = [WinAPI.GetStr] :: GetString ( 33224 )
# Extract the localized "&No" string from shell32.dll
@ -7203,11 +7203,11 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData " " -InformationAction Continue
$CurrentUserFolderLocation = Get-ItemPropertyValue -Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders " -Name " My Pictures "
Write-Verbose -Message ( $Localization . CurrentUserFolderLocation -f $PicturesLocalizedString , $CurrentUserFolderLocation ) -Verbose
Write-Verbose -Message ( $Localization . CurrentUserFolderLocation -f [WinAPI.GetStr] :: GetString ( 21779 ) , $CurrentUserFolderLocation ) -Verbose
Write-Warning -Message $Localization . FilesWontBeMoved
$Title = " "
$Message = $Localization . UserDefaultFolder -f $PicturesLocalizedString
$Message = $Localization . UserDefaultFolder -f [WinAPI.GetStr] :: GetString ( 21779 )
# Extract the localized "&Yes" string from shell32.dll
$Yes = [WinAPI.GetStr] :: GetString ( 33224 )
# Extract the localized "&No" string from shell32.dll
@ -7232,11 +7232,11 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData " " -InformationAction Continue
$CurrentUserFolderLocation = Get-ItemPropertyValue -Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders " -Name " My Video "
Write-Verbose -Message ( $Localization . CurrentUserFolderLocation -f $VideosLocalizedString , $CurrentUserFolderLocation ) -Verbose
Write-Verbose -Message ( $Localization . CurrentUserFolderLocation -f [WinAPI.GetStr] :: GetString ( 21791 ) , $CurrentUserFolderLocation ) -Verbose
Write-Warning -Message $Localization . FilesWontBeMoved
$Title = " "
$Message = $Localization . UserDefaultFolder -f $VideosLocalizedString
$Message = $Localization . UserDefaultFolder -f [WinAPI.GetStr] :: GetString ( 21791 )
# Extract the localized "&Yes" string from shell32.dll
$Yes = [WinAPI.GetStr] :: GetString ( 33224 )
# Extract the localized "&No" string from shell32.dll
@ -9171,7 +9171,7 @@ function InstallDotNetRuntimes
Uri = " https://dotnetcli.azureedge.net/dotnet/Runtime/ $ LatestRelease/dotnet-runtime- $ LatestRelease-win-x86.exe "
OutFile = " $ DownloadsFolder\dotnet-runtime- $ LatestRelease-win-x86.exe "
UseBasicParsing = $true
Verbose = $true ###
Verbose = $true
}
Invoke-WebRequest @Parameters
@ -9930,6 +9930,9 @@ function UninstallUWPApps
# AV1 Video Extension
" Microsoft.AV1VideoExtension " ,
# Windows Subsystem for Linux
" MicrosoftCorporationII.WindowsSubsystemForLinux " ,
# HEVC Video Extensions from Device Manufacturer
" Microsoft.HEVCVideoExtension " ,