Showing archive results for May 2013

May 14, 2013
Post comments count0
Post likes count0

PowerTip: Use PowerShell to Show Screensaver Info for Logged-on User

Doctor Scripto

Summary: Use Windows PowerShell to show screensaver info for a user who is logged on.  How can I easily use Windows PowerShell to show screensaver information for the currently logged-on interactive user?  Use WMI to query the Win32_Desktop class, and filter on the logged-on user’s name: Get-Wmiobject win32_desktop | where name -mat...

Scripting Guy!Windows PowerShellPowerTip
May 14, 2013
Post comments count0
Post likes count0

I Found this PowerShell Function—Now What Do I Do? Part 3

Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about combining functions into a single function file, and using them in scripts. Microsoft Scripting Guy, Ed Wilson, is here. This morning is sort of mellow. It seems as if the clouds are touching the ground, and all sound is suppressed by a thick cloth batten. After seemingly weeks of rain, it is...

Scripting Guy!Windows PowerShellscripting techniques
May 13, 2013
Post comments count0
Post likes count0

PowerTip: Use Set-Variable to Create a ReadOnly PowerShell Variable

Doctor Scripto

Summary: Use the Set-Variable cmdlet to create a ReadOnly Windows PowerShell variable.  How can I create a ReadOnly variable in Windows PowerShell?  Use the Set-Variable cmdlet to create a ReadOnly variable, and specify ReadOnly for the Option parameter, and you can spe...

Scripting Guy!Windows PowerShellPowerTip
May 13, 2013
Post comments count0
Post likes count0

I Found this PowerShell Function—Now What Do I Do? Part 2

Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, continues his discussion about what to do with a Windows PowerShell function. Microsoft Scripting Guy, Ed Wilson, is here. Last week I did not get a chance to finish answering a question from JB about how to use a Windows PowerShell function. Note   This is the second part of a multipart series...

Scripting Guy!Windows PowerShellscripting techniques
May 12, 2013
Post comments count0
Post likes count0

PowerTip: Use PowerShell to List Top-Level WMI Namespaces

Doctor Scripto

Summary: Use Windows PowerShell to list top-level WMI namespaces.  How can I use Windows PowerShell to list the top-level WMI namespaces? Use the Get-WmiObject cmdlet or the Get-CImInstance cmdlet and query for __NameSpace: Windows PowerShell 2.0 syntax: Get-WmiObject __NameSpace | select name   Windows PowerShell 3.0 syntax: Get-Cim...

Scripting Guy!Windows PowerShellPowerTip