Quantcast
Channel: Hey, Scripting Guy! Blog
Browsing all 3333 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

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 Article


Image may be NSFW.
Clik here to view.

PowerTip: 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 Article


Image may be NSFW.
Clik here to view.

Use 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 Article

Image may be NSFW.
Clik here to view.

PowerTip: 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 Article

Image may be NSFW.
Clik here to view.

Use 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 Article


Image may be NSFW.
Clik here to view.

PowerTip: 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 Article

Image may be NSFW.
Clik here to view.

Use 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 Article

Image may be NSFW.
Clik here to view.

PowerTip: 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 Article


Image may be NSFW.
Clik here to view.

Weekend 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 Article


Image may be NSFW.
Clik here to view.

PowerTip: 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 Article

Image may be NSFW.
Clik here to view.

Weekend 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 Article

Image may be NSFW.
Clik here to view.

PowerTip: 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 Article

Image may be NSFW.
Clik here to view.

My 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 Article


Image may be NSFW.
Clik here to view.

PowerTip: 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 Article

Image may be NSFW.
Clik here to view.

Use 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 Article


Image may be NSFW.
Clik here to view.

PowerTip: 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 Article

Image may be NSFW.
Clik here to view.

Use 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 Article


Image may be NSFW.
Clik here to view.

PowerTip: 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 Article

Image may be NSFW.
Clik here to view.

Use 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 Article

Image may be NSFW.
Clik here to view.

PowerTip: 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
Browsing all 3333 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>