Showing archive results for August 2010

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
Aug 9, 2010
Post comments count0
Post likes count0

How Do I Use a Windows PowerShell Script Containing Functions?

ScriptingGuy1

  Summary: Using a script containing Windows PowerShell functions can be as simple as dot-sourcing the script.   Hey, Scripting Guy! I was looking in the Script Center Script Repository for Windows PowerShell scripts, and I found one that was really cool. Unfortunately, when I attempted to use it, it did not work. I know that scripts in...

Scripting Guy!Windows PowerShellscripting techniques