Skip to main content
AtlasOS includes several PowerShell modules that provide reusable functions for system configuration. All modules are located in AtlasModules/Scripts/Modules/ and are automatically loaded by initPowerShell.ps1.

AllRegistryUsers Module

Location: Modules/AllRegistryUsers/AllRegistryUsers.psm1

Get-RegUserPaths

Retrieves registry paths for all user profiles on the system. Syntax:
Parameters:
  • -DontCheckEnv - Don’t check for ‘Volatile Environment’ key (includes built-in accounts)
  • -NoDefault - Exclude the default user profile
Returns: Array of PSPath objects pointing to user registry hives Example:
Notes:
  • Only returns proper user accounts with ‘Volatile Environment’ key
  • Filters out built-in accounts/SIDs unless -DontCheckEnv is specified

Scripts Module

Location: Modules/Scripts/Scripts.psm1 Provides system-level configuration functions.

Backup-AtlasServices

Backs up all Windows service startup types to a registry file. Syntax:
Output: Creates atlasServices.reg in AtlasModules/Other/ Example:

Update-ClientCBS

Removes advertisements from Windows Settings ‘Accounts’ page using ViVeTool. Syntax:
Requirements:
  • ViVeTool ZIP file must be present
  • Windows 11 (exits on Windows 10)
Example:

Disable-CoreIsolation

Disables Core Isolation (VBS/Virtualization Based Security). Syntax:

Disable-Devices

Disables unnecessary PnP devices and network adapter bindings. Syntax:
Devices Disabled:
  • AMD PSP and SMBus
  • Intel Management Engine and SMBus
  • High precision event timer
  • System speaker and timer
  • Legacy devices
  • Network components (ms_msclient, ms_server, ms_lldp, ms_lltdio, ms_rspndr)

Set-FileAssociations

Configures default file associations for web browsers. Syntax:
Parameters:
  • -Browser - Browser name (“Brave”, “LibreWolf”, “Firefox”, “Google Chrome”)
Example:

Disable-Mitigations

Disables all CPU security mitigations for improved performance. Syntax:

Optimize-PowerShellStartup

Optimizes PowerShell startup time using NGEN (Native Image Generator). Syntax:
Performance: Improves PowerShell startup time by up to 10x

Set-ProfilePictures

Configures Atlas default profile pictures for all users. Syntax:
Requirements: user.png must be present in current directory

Set-PowerSettings

Configures Windows power settings. Syntax:
Parameters:
  • -DisablePowerSaving - Disable power-saving features
  • -DisableHibernation - Disable hibernation
Example:

Shortcuts Module

Location: Modules/Shortcuts/Shortcuts.psm1

New-Shortcut

Creates Windows shortcuts (.lnk files). Syntax:
Parameters:
  • -Source - Path to target executable or file (required)
  • -Destination - Path for the shortcut file (required)
  • -WorkingDir - Working directory for the shortcut
  • -Arguments - Command-line arguments
  • -Icon - Path to icon file
  • -IfExist - Only create if destination already exists
Example:

Utils Module

Location: Modules/Utils/Utils.psm1 Provides utility functions for common tasks.

Write-Title

Writes a formatted title with underline. Syntax:
Example:

Read-Pause

Pauses execution and waits for user input. Syntax:
Parameters:
  • -Message - Custom message (default: “Press Enter to exit”)
  • -NewLine - Add blank line before prompt
Example:

Read-MessageBox

Displays a Windows message box dialog. Syntax:
Parameters:
  • -Title - Dialog title (required)
  • -Body - Dialog message (required)
  • -Icon - Icon type (Stop, Question, Warning, Info)
  • -Buttons - Button layout (Ok, OkCancel, AbortRetryIgnore, YesNoCancel, YesNo, RetryAndCancel)
  • -Timeout - Auto-close timeout in seconds
  • -NoTopmost - Don’t make dialog topmost window
Returns: String indicating which button was clicked (“Ok”, “Cancel”, “Yes”, “No”, etc.) Example:

Stop-ProcessesUnderRoots

Stops all processes running from specified root directories. Syntax:
Parameters:
  • -RootsLower - Array of lowercase directory paths
Example:

Stop-TasksUnderRoots

Stops all scheduled tasks that execute from specified root directories. Syntax:
Parameters:
  • -RootsLower - Array of lowercase directory paths
Example:

Other Modules

The following modules exist but contain implementation-specific functions not typically called directly:
  • Debloat - Functions for removing bloatware
  • Miscellaneous - Miscellaneous configuration functions
  • Performance - Performance optimization functions
  • Privacy - Privacy-related configuration
  • Qol - Quality of life improvements
  • Themes - Theme management functions
  • UserPaths - User path configuration

Module Loading

All modules are automatically loaded when initPowerShell.ps1 is executed:

See Also