How to enable or disable this options with the terminal?


rafaelsouzams

Member
Local time
6:36 AM
Posts
17
OS
Windows 11
Hello, I have learned a lot in this forum about ways to create post-installation scripts to automate my personal configurations, something that I have used a lot since I constantly need to create new work environments.

Despite this, in the entire forum, I have not found commands to activate or deactivate some very specific options! I would like help to solve them! I am sending prints below of what they are

1 -
1728667551200.png

2-
1728667571526.png

3-
1728667586956.png

4-1728667602912.png

5-
1728667621826.png


6-
1728667633567.png
 
Windows Build/Version
26100.2033

My Computer My Computer

At a glance

Windows 11Core i9 1090064gbRTX 4070TI
OS
Windows 11
Computer type
PC/Desktop
Manufacturer/Model
Asus
CPU
Core i9 10900
Motherboard
Asus Z490-H Gaming
Memory
64gb
Graphics Card(s)
RTX 4070TI
Hard Drives
Samsung Evo 970 1Tb
It goes something like this

# Adjusts visual effects for appearance
### Settings>System>About>Advanced system settings>Performance : Settings
Import-Module D:\Documents\WindowsPowerShell\Modules\VisualEffects\VisualEffects.psm1
SetVisualEffects "Performance"

Powershell:
<#
 .Synopsis
  Modify Windows 11 Visual Effects?

 .Description
  Adjusting visual effects
  Settings>System>About>Advanced system settings>Performance : Settings
  Although by default the operating system uses the UserPreferencesMask parameter located in the HKEY_CURRENT_USER\Control Panel/Desktop node,
  if the parameter with the same name is found in the HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Control Panel\Desktop node,
  then the last one will be used as the desktop.
  This is very convenient for experimentation, to return to the default settings, simply remove the UserPreferencesMask parameter.
  the UserPreferencesMask parameter from the HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Control Panel\Desktop.

 .Parameter
  Adjusting

 .Example
  SetVisualEffects "Performance"
#>

Function SetVisualEffects {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory = $False)]
        [string] $Adjusting = "Performance"
    
    )

Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "DragFullWindows" -Type String -Value 1
Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "MenuShowDelay" -Type String -Value 400

If ( $Adjusting -eq "Performance") {
    
    Write-Host "Adjusting visual effects for performance..."
    Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "DragFullWindows" -Type String -Value 1
    #
    # Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "MenuShowDelay" -Type String -Value 0
    #This disables the following 8 settings:
    #Animate controls and elements inside windows
    #Fade or slide menus into view
    #Fade or slide ToolTips into view
    #Fade out menu items after clicking
    #Show shadows under mouse pointer
    #Show shadows under windows
    #Slide open combo boxes
    #Smooth-scroll list boxes
   $Value = ([byte[]](0x90,0x12,0x03,0x80,0x10,0x00,0x00,0x00))
   #$Value = ([byte[]](0x9E,0x12,0x03,0x80,0x10,0x00,0x00,0x00))
    Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "UserPreferencesMask" -Type Binary -Value $Value
    Set-ItemProperty -Path "HKCU:\Control Panel\Desktop\WindowMetrics" -Name "MinAnimate" -Type String -Value 0
    Set-ItemProperty -Path "HKCU:\Control Panel\Keyboard" -Name "KeyboardDelay" -Type DWord -Value 0
    Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ListviewAlphaSelect" -Type DWord -Value 0
    Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ListviewShadow" -Type DWord -Value 0
    Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "TaskbarAnimations" -Type DWord -Value 0
    Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects" -Name "VisualFXSetting" -Type DWord -Value 3
    Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\DWM" -Name "EnableAeroPeek" -Type DWord -Value 0
    # Disable window anim. min/max
    Set-ItemProperty -Path "HKCU:\Control Panel\Desktop\WindowMetrics" -Name "MinAnimate" -Type String -Value "0"
}
else
# Adjusts visual effects for appearance
 {
    Write-Host "Adjusting visual effects for appearance..."
    $Value = ([byte[]](0x9E,0x1E,0x07,0x80,0x12,0x00,0x00,0x00))
    Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "UserPreferencesMask" -Type Binary -Value $Value
    Set-ItemProperty -Path "HKCU:\Control Panel\Desktop\WindowMetrics" -Name "MinAnimate" -Type String -Value 1
    Set-ItemProperty -Path "HKCU:\Control Panel\Keyboard" -Name "KeyboardDelay" -Type DWord -Value 1
    Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ListviewAlphaSelect" -Type DWord -Value 1
    Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ListviewShadow" -Type DWord -Value 1
    Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "TaskbarAnimations" -Type DWord -Value 1
    Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects" -Name "VisualFXSetting" -Type DWord -Value 3
    Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\DWM" -Name "EnableAeroPeek" -Type DWord -Value 1
}

# ??? Disable Display Mode Change Animation
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\Dwm" -Name "ForceDisableModeChangeAnimation" -Type DWord -Value 0x01

}
 

My Computer My Computer

At a glance

Microsoft Windows 11 HomeIntel Core i5-13490F2 x 16 Patriot Memory (PDP Systems) PSD516G56...GIGABYTE GeForce RTX 4070 WINDFORCE OC 12G (G...
OS
Microsoft Windows 11 Home
Computer type
PC/Desktop
Manufacturer/Model
MSI MS-7D98
CPU
Intel Core i5-13490F
Motherboard
MSI B760 GAMING PLUS WIFI
Memory
2 x 16 Patriot Memory (PDP Systems) PSD516G560081 6400MT (32-37-37-74); 1.35V)
Graphics Card(s)
GIGABYTE GeForce RTX 4070 WINDFORCE OC 12G (GV-N4070WF3OC-12GD)
Sound Card
Bluetooth Аудио
Monitor(s) Displays
INNOCN 15K1F
Screen Resolution
1920 x 1080
Hard Drives
WD_BLACK SN770 250GB
KINGSTON SNV2S1000G (ELFK0S.6)
PSU
Thermaltake Toughpower GF3 1000W
Case
CG560 - DeepCool
Cooling
ID-COOLING SE-224-XTS / 2 x 140Mm Fan - rear and top; 3 x 120Mm - front
Keyboard
Corsair K70 RGB TKL
Mouse
Corsair KATAR PRO XT
Internet Speed
100 Mbps
Browser
Firefox
Antivirus
Microsoft Defender Antivirus
Other Info
https://www.userbenchmark.com/UserRun/66553205

Latest Support Threads

Back
Top Bottom