Use Windows as a stateless OS on your devices
This is a tutorial article on automated optimization scripts for the Windows operating system, designed to complete multiple system configurations in one go using PowerShell and CMD commands. The core content covers system cleanup and environment optimization, including emptying the Recycle Bin, removing startup items, deleting 3D objects, and cleaning up desktop files to enhance tidiness. In terms of performance and experience, the script sets the power plan to Ultimate Performance mode, disables sleep on AC power, disables mouse acceleration to optimize control, and forces the use of the dark theme and the Chinese input method. Network and security settings involve setting the network type to Private to enable more features, configuring UAC to the default protection level, and optionally enabling Remote Desktop connections. Additionally, the script addresses the active probing issue in Windows 11, synchronizes to China Standard Time, displays file extensions, pins the code repository to Quick Access, and finally uses Winget to batch upgrade applications and install Windows system updates. This script is suitable for developers or advanced users who want to quickly configure a development environment tailored to their personal preferences. However, some operations, such as emptying the desktop and changing network properties, carry risks and should be executed with caution.