Showing tag results for PowerTip

Sep 16, 2012
Post comments count0
Post likes count0

PowerTip: Easily Find the PowerShell 3.0 Preference Variables

Doctor Scripto

Summary:  Use the Get-Help cmdlet to find the Windows PowerShell 3.0 preference variables.  How can you easily find a listing of all the Windows PowerShell 3.0 preference variables?  Use the Get-Help cmdlet to display about_Preference_Variables Help. You do not need to type the entire command...

Scripting Guy!Windows PowerShellPowerTip
Sep 15, 2012
Post comments count0
Post likes count0

PowerTip: Quickly Find System Updates via PowerShell

Doctor Scripto

Summary: Use Windows PowerShell to identify updates applied to a computer system.  How can I find which updates are applied to my computer?   Use the Get-Hotfix cmdlet. To find updates, use the Description parameter and specify Update: Get-HotFix -Description Update To find a specific hotfix by ID number, use the&...

Scripting Guy!Windows PowerShellPowerTip
Sep 14, 2012
Post comments count0
Post likes count0

PowerTip: Where Did that PowerShell Cmdlet Come From?

Doctor Scripto

Summary: Determine the source of a particular Windows PowerShell cmdlet.  How can I tell if a Windows PowerShell cmdlet comes from one module or from another module?  Use the Get-Command cmdlet, and select the module property: Get-Command unblock-file | select name, module

Scripting Guy!Windows PowerShellPowerTip
Sep 13, 2012
Post comments count0
Post likes count0

PowerTip: Use PowerShell to Easily Read an XML Document

Doctor Scripto

Summary: Use the [xml] type accelerator to greatly simplify reading XML documents.  How can I easily read an XML file?  Use the [XML] type accelerator to convert results from Get-Content into an XML document, and then use dotted notation to access the nodes: [xml]$books = Get-Content C:\fso\Books.XML $books.catalog.book.title

Scripting Guy!Windows PowerShellPowerTip
Sep 12, 2012
Post comments count0
Post likes count0

PowerTip: Easily Find WMI Class Schema Information with PowerShell

Doctor Scripto

Summary: Use a one-line command to obtain WMI class schema (MOF) information.  How can I use Windows PowerShell to display the MOF of a WMI class?  Use the WMIClass type accelerator, and then call the static GetText method whilst supplying the word MOF:           &...

Scripting Guy!Windows PowerShellPowerTip