Disable Save Desktop Configuration on Exit - Default behavior for XP is to save the desktop configuration on exiting the operating system.To prevent saving the desktop configuration, implement this registry edit.
[Cmdlet Binding(Default Parameterset Name='Run With Power Shell Context Menu')] param ( [parameter(Parameter Set Name='Call From Command Line')] [switch] $Call From Command Line, [parameter(Mandatory=$false, Parameter Set Name='Run With Power Shell Context Menu')] [parameter(Mandatory=$true, Parameter Set Name='Call From Command Line')] [string] $Computer Name, [parameter(Mandatory=$false, Parameter Set Name='Run With Power Shell Context Menu')] [parameter(Mandatory=$true, Parameter Set Name='Call From Command Line')] [UInt16] $Port ) function Assert-Administrative Privileges([bool] $Called From Run With Power Shell Menu) function Get-User Parameters() # $My Invocation. Visual Basic, Version=10.0.0.0, Culture=neutral, Public Key Token=b03f5f7f11d50a3a') | Out-Null if ($called From Run With Power Shell Menu) # ...Line is empty in the second script execution, when a new powershell session # is started for this script via Start-Process with the -File option. Starts With('if((Get-Execution Policy') Assert-Administrative Privileges $called From Run With Power Shell Menu # Necessary for Input Box [System. Rename Desktop System Icons - Windows XP gives you the ability to run a desktop devoid of system icons if that's your choice.If you prefer to have the icons present but get tired of the generic names XP assigns, use the following method to easily change to something more personal or interesting.Launch registry editor by typing [regedit.exe] in the [Run] dialog accessible via [Start].
Editing the registry is not a difficult process but it does require care.
Force New Internet Explorer Window for Launching Shortcuts - By default, when you click a web link in an internet aware program, and there is already an Internet Explorer window open, the web page appears in the open browser window instead of opening a new window.
This tweak prevents the new link from being displayed in the existing IE window by forcing an additional IE browser instance to open.
Enable/Disable Active Window Tracking to Mouse Movements - When the mouse is moved over an open window it automatically sets the focus to that particular window.
It does not bring the window to the foreground of the open windows.
In this way, you do not need to change anything in your powershell script. When the script is run as a non-administrator, the following error is given: The script 'Stack Overflow.ps1' cannot be run because it contains a "#requires" statement for running as Administrator.