From fde96e25544046e6cb1d10df1d0adce594948195 Mon Sep 17 00:00:00 2001 From: skycommand Date: Mon, 1 Jul 2019 20:39:27 +0430 Subject: [PATCH] Minor update to one example (#4507) --- .../New-Object.md | 41 +------------------ 1 file changed, 2 insertions(+), 39 deletions(-) diff --git a/reference/5.0/Microsoft.PowerShell.Utility/New-Object.md b/reference/5.0/Microsoft.PowerShell.Utility/New-Object.md index 9304482edd68..3153b7d19afc 100644 --- a/reference/5.0/Microsoft.PowerShell.Utility/New-Object.md +++ b/reference/5.0/Microsoft.PowerShell.Utility/New-Object.md @@ -91,86 +91,49 @@ PS C:\> $Objshell = New-Object -COMObject "Shell.Application" The second command pipes the $ObjShell variable to the **Get-Member** cmdlet, which displays the properties and methods of the COM object. Among the methods is the ToggleDesktop method. PS C:\> $objshell | Get-Member - TypeName: System.__ComObject#{866738b9-6cf2-4de8-8767-f794ebe74f4e} + TypeName: System.__ComObject#{286e6f1b-7113-4355-9562-96b7e9d64c54} Name MemberType Definition - ---- ---------- ---------- - AddToRecent Method void AddToRecent (Variant, string) - BrowseForFolder Method Folder BrowseForFolder (int, string, int, Variant) - CanStartStopService Method Variant CanStartStopService (string) - CascadeWindows Method void CascadeWindows () - ControlPanelItem Method void ControlPanelItem (string) - EjectPC Method void EjectPC () - Explore Method void Explore (Variant) - ExplorerPolicy Method Variant ExplorerPolicy (string) - FileRun Method void FileRun () - FindComputer Method void FindComputer () - FindFiles Method void FindFiles () - FindPrinter Method void FindPrinter (string, string, string) - GetSetting Method bool GetSetting (int) - GetSystemInformation Method Variant GetSystemInformation (string) - Help Method void Help () - IsRestricted Method int IsRestricted (string, string) - IsServiceRunning Method Variant IsServiceRunning (string) - MinimizeAll Method void MinimizeAll () - NameSpace Method Folder NameSpace (Variant) - Open Method void Open (Variant) - RefreshMenu Method void RefreshMenu () - +SearchCommand Method void SearchCommand () ServiceStart Method Variant ServiceStart (string, Variant) - ServiceStop Method Variant ServiceStop (string, Variant) - SetTime Method void SetTime () - ShellExecute Method void ShellExecute (string, Variant, Variant, Variant, Variant) - ShowBrowserBar Method Variant ShowBrowserBar (string, Variant) - ShutdownWindows Method void ShutdownWindows () - Suspend Method void Suspend () - TileHorizontally Method void TileHorizontally () - TileVertically Method void TileVertically () ToggleDesktop Method void ToggleDesktop () - TrayProperties Method void TrayProperties () - UndoMinimizeALL Method void UndoMinimizeALL () - Windows Method IDispatch Windows () - WindowsSecurity Method void WindowsSecurity () - WindowSwitcher Method void WindowSwitcher () - Application Property IDispatch Application () {get} - Parent Property IDispatch Parent () {get} The third command calls the **ToggleDesktop** method of the object to minimize the open windows on your desktop.