Search notes:

Shell Automation Service

The Prog ID for Shell Automation Service is shell.application.

Methods

$sh = new-object -com shell.application
$sh | get-member -type method | foreach-object {$x = $_.definition -match '(\S+)\s+(\S+)\s+\(([^)]*)\)'; "$($matches[1])`t$($matches[2])`t$($matches[3])" }
Return type Name Arguments
void AddToRecent Variant, string Adds a file to the MRU (most recently used) list
Folder BrowseForFolder int, string, int, Variant Opens a dialog to let the user browse for a folder
Variant CanStartStopService string
void CascadeWindows
void ControlPanelItem string
void EjectPC
void Explore Variant Opens a given folder in the explorer
Variant ExplorerPolicy string
void FileRun Same as start Menu -> Run
void FindComputer
void FindFiles
void FindPrinter string, string, string
bool GetSetting int
Variant GetSystemInformation string Returns some system values such as processor leve, CPU speed, amount of installed physical memory etc.
void Help Same as Start Menu -> Help and Support
int IsRestricted string, string
Variant IsServiceRunning string
void MinimizeAll
Folder NameSpace Variant The value of the parameter is either a directory path or an entry of the System.Environment+SpecialFolder enum.
void Open Variant
void RefreshMenu
void SearchCommand
Variant ServiceStart string, Variant
Variant ServiceStop string, Variant
void SetTime
void ShellExecute string, Variant, Variant, Variant, Variant
Variant ShowBrowserBar string, Variant
void ShutdownWindows
void Suspend
void TileHorizontally
void TileVertically
void ToggleDesktop
void TrayProperties
void UndoMinimizeALL
IDispatch Windows
void WindowsSecurity Simulate ctrl+alt+delete. Can be used only when connected by a terminal session to Terminal Server.
void WindowSwitcher

See also

Accessing the recycle bin in PowerShell
Eject a USB drive in Windows
Don't confuse shell.application with wScript.shell (Windows Script host).

Index