Packaging .NET Framework Classes into Windows PowerShell Functions

  Summary: Learn how to correctly package .NET Framework classes into reusable Windows PowerShell advanced functions in this step-by-step solution.   Hey, Scripting Guy! I have been exploring the Microsoft .NET Framework on MSDN and attempting to convert some examples I have found there into Windows PowerShell code. I will admit that it can be…

0

Use PowerShell to Combine Multiple Commands for Ease of Use

  Summary: Learn how to use Windows PowerShell 2.0 to combine multiple commands into new custom functions and simplify your scripting.   Hey, Scripting Guy! I do a lot of work from the Windows PowerShell command line. In fact, I write very few scripts, but I run lots of commands. I would like to create…

1

Automatically Create Custom PowerShell Functions

  Summary: Learn how to automatically create custom Windows PowerShell functions by using a free tool that writes your code for you.   Hey, Scripting Guy! I wish there was a good way to modify Windows PowerShell commands. I can modify the names of commands by creating an alias for the command. I wish I…

1

Use Splatting to Simplify Your PowerShell Scripts

Summary: Use the Windows PowerShell 2.0 splatting technique to simplify your scripts. This step-by-step article provides the details.   Hey, Scripting Guy! I hope this is not a dumb question; I am a little hesitant to even ask, but something has been bugging me for over a month. I was recently in a Live Meeting…

0

Create Exact Copies of Active Directory Security Groups in a New Forest

  Summary: Guest Blogger Oliver Lipkau shows us how to create exact copies of Active Directory security groups in a new forest.   Microsoft Scripting Guy Ed Wilson here. We have a guest blogger today: Oliver Lipkau. Here is Oliver’s scripting biography. I have been scripting for more than 10 years. I started with batch…

3

Learn How to Load and Use PowerShell Snap-ins

Summary: How do I use snap-ins with the Windows PowerShell 2.0 cmdlet, Add-Module? What are the benefits of using this method over Add-PSSnapin?   Microsoft Scripting Guy Ed Wilson here. I am on holiday and am speaking at SQL Saturday #49 today in Orlando, Florida. The really cool thing about this particular SQL Saturday is…

1

Tap into the PowerShell Community for Fun and Education

  Summary: The Windows PowerShell community offers many enjoyable learning opportunities. Guest blogger Tome Tanasovski explains how this works, and how to become involved.   Hey, Scripting Guy! How can I get involved in the Windows PowerShell community? — TE   Hello TE, Microsoft Scripting Guy Ed Wilson here. One of the best things about…

0

Use PowerShell and Active Directory Cmdlets to Update Users in Active Directory

Summary: Learn how to use Windows PowerShell and the Active Directory cmdlets to update user objects in Active Directory.   Hey, Scripting Guy! Watching you write a custom function to search Active Directory is about as much fun as watching paint dry. One reason we upgraded to Windows Server 2008 R2 was to gain access…

10

Use PowerShell to Search Active Directory Users’ Missing Values and Add Same

  Summary: Learn how to use Windows PowerShell to search Microsoft Active Directory for users that have missing values, and automatically add default values.   Hey, Scripting Guy! We have several network administrators where I work. Unfortunately, all of them have complete rights to Active Directory. This means that any one of the administrators can…

6

Use PowerShell to Translate a User’s SID to an Active Directory Account Name

  Summary: Microsoft Scripting Guy Ed Wilson shows how to use Windows PowerShell to translate a user’s SID to an Active Directory Domain Services account name.   Hey, Scripting Guy! It seems that whenever I search for Windows PowerShell scripts to translate a user name into a SID, all I can find is a script…

10