The Ins and Outs of Using DSQuery with Windows PowerShell
Summary: Microsoft Scripting Guy, Ed Wilson, talks about using DSQuery to return results for use in Windows PowerShell. Hey, Scripting Guy! I like using the DSQuery tool to search Active Directory...
View ArticlePowerTip: Formatting Numeric Output Using PowerShell
Summary: Learn how to format numeric output in Windows PowerShell by using format specifiers and numeric constants. How can I print the amount of free space on a fixed disk in MB with two decimal...
View ArticleUse PowerShell to Query AD DS for Servers and then Find Hotfixes
Summary: Microsoft Scripting Guy, Ed Wilson, talks about querying the AD DS module via PowerShell and using the results to find hotfixes. Hey, Scripting Guy! We have a server running Windows Server...
View ArticlePowerTip: The Finer Points of Finessing an Array
Summary: Learn how to replace items in an array and how to sort an array. I need to replace the “2” with “12” in the $array variable shown here: $array = "1","2","3","4" How can I do this?...
View ArticleUse PowerShell to Query AD DS and Not Use LDAP Dialect
Summary: Learn how to use the Filter parameter and the Windows PowerShell Expression Language on the Active Directory module cmdlets. Hey, Scripting Guy! I do not know why you like ADSI so much. The...
View ArticlePowerTip: Adding a Default Exit to a PowerShell Switch
Summary: Learn how to add a default exit condition to a Windows PowerShell switch statement to control execution of commands. I have the following switch statement, and I want to prevent the line...
View ArticleUse PowerShell 3.0 to Easily Download 60 Spanned Files
Summary: Windows PowerShell MVP, Marco Shaw, talks about using a Windows PowerShell 3.0 cmdlet to download 60 virtual machine files from the Microsoft download site. Microsoft Scripting Guy, Ed Wilson,...
View ArticlePowerTip: Working with Alternate Credentials with WMI
Summary: Learn four ways to supply alternate credentials with WMI and Windows PowerShell. How can I supply alternate credentials for a remote WMI call when I am using the Get-WmiObject cmdlet? a. Use...
View ArticleWeekend Scripter: RC Milestone for the PowerShell Script Explorer
Summary: Announcing the Windows PowerShell Script Explorer RC milestone. Download it today! Microsoft Scripting Guy, Ed Wilson, is here. Today I have a major announcement to make: Microsoft Script...
View ArticlePowerTip: Use PowerShell to Simplify Working with Random Numbers
Summary: Learn about using Windows PowerShell to generate random numbers. How can I generate a random number? a. Use the Get-Random cmdlet. b. Use the System.Random .NET Framework class, and call...
View ArticleWeekend Scripter: Starting a PowerShell Saturday
Summary: The Scripting Wife talks about starting a Windows PowerShell Saturday event where you live, what’s involved, and how to get help. Microsoft Scripting Guy, Ed Wilson, is here. Today we have a...
View ArticlePowerTip: Create a Transcript of Commands in PowerShell
Summary: Learn how to create a transcript of all commands and associated output from within Windows PowerShell. How can I create an audit file of all commands typed during a Windows PowerShell session?...
View ArticleMy Five Favorite PowerShell 3.0 Tips and Tricks
Summary: Microsoft Scripting Guy, Ed Wilson, shares his top five Windows PowerShell 3.0 tips and tricks. Microsoft Scripting Guy, Ed Wilson, is here. Today marks a red letter day. No, we have not yet...
View ArticlePowerTip: Using Credentials in PowerShell
Summary: Learn how to find Windows PowerShell cmdlets and providers that support credentials. How can I find which Windows PowerShell cmdlets support the credential parameter? Use the Get-Command...
View ArticleUse PowerShell to Check the License Status of Windows 8
Summary: Use Windows PowerShell and WMI to determine the number of days remaining on an evaluation copy of Windows 8. Microsoft Scripting Guy, Ed Wilson, is here. One of the cool features in Windows 8...
View ArticlePowerTip: Create a Record of Your PowerShell Commands
Summary: Use Start-Transcript to create a record of Windows PowerShell commands. How can I create an audit file of all commands that I typed during a Windows PowerShell session? Use the...
View ArticleUse PowerShell to Identify Port Connections in Windows 8
Summary: Microsoft Scripting Guy, Ed Wilson, shows how to use Windows PowerShell to identify port connections in Windows 8. Microsoft Scripting Guy, Ed Wilson, is here. There are only twenty-three...
View ArticlePowerTip: Measure the Time for a Command to Complete
Summary: Learn how to measure the time for a Windows PowerShell command to complete. How can I see how many seconds it takes to retrieve objects from the application log? (Measure-Command {...
View ArticleUse PowerShell 3.0 to Clear the Client DNS Cache on Workstations
Summary: Microsoft Scripting Guy, Ed Wilson, shows how to use Windows PowerShell 3.0 to clear the client DNS cache on workstations. Microsoft Scripting Guy, Ed Wilson, is here. One of the things I love...
View ArticlePowerTip: Find and Import Modules
Summary: Learn how to find and import Windows PowerShell modules. I want to get a list of all the modules that are installed with Windows PowerShell on my machine. How can you do this? Inside a...
View Article