Showing archive results for 2010

Aug 15, 2010
Post comments count0
Post likes count0

Using PowerShell to Format a Report from XML Data

ScriptingGuy1

Summary: Use Windows PowerShell to create a formatted report from data stored in XML files.   Microsoft Scripting Guy Ed Wilson here. It is still dark outside, and the lights of the neighborhood are slowly beginning to come on. It is really humid this morning. I am sitting at the kitchen table with my laptop checking comments that were posted ...

Scripting Guy!Windows PowerShellscripting techniques
Aug 14, 2010
Post comments count3
Post likes count0

Using Group Policy to Deploy a Windows PowerShell Logon Script

ScriptingGuy1

Summary: The easiest way to deploy a Windows PowerShell script to users is to create a Group Policy logon script.   Microsoft Scripting Guy Ed Wilson here. Oh…my eyes feel like they are glued to my eyelids. I am not a night owl, unlike the female who inhabits the house in Charlotte, who seems to enjoy howling at the moon on a regular b...

Scripting Guy!Windows PowerShellWeekend Scripter
Aug 12, 2010
Post comments count0
Post likes count0

Pausing a Windows PowerShell Script to Receive Keyboard Input

ScriptingGuy1

  Summary: Pausing execution of a Windows PowerShell script to receive keyboard input can be as simple as using the Read-Host cmdlet. But other methods are available.   Hey, Scripting Guy! I would like to pause a Windows PowerShell script and wait for user input. When the user types a particular key on the keyboard, I would like the scrip...

Scripting Guy!Windows PowerShellscripting techniques
Aug 11, 2010
Post comments count0
Post likes count1

Masking Passwords in Windows PowerShell

ScriptingGuy1

  Summary: With Windows PowerShell cmdlets, it is easy to mask passwords used when scripting remote applications.   Hey, Scripting Guy! I need to be able to mask a password when running a Windows PowerShell script. I am attempting to convert my VBScript scripts to Windows PowerShell, but I have a problem. In VBScript I would use a COM ob...

Scripting Guy!Windows PowerShellscripting techniques
Aug 10, 2010
Post comments count1
Post likes count0

How to Reuse Windows PowerShell Functions in Scripts

ScriptingGuy1

Summary: When writing a Windows PowerShell script, code reuse can speed up the process. Ed Wilson discusses best practices for reusing code.   Hey, Scripting Guy! I often write Windows PowerShell scripts, and when I need to use a function that I wrote for a different script, I copy and paste the function into my new script. Is this the best...

Scripting Guy!Windows PowerShellscripting techniques