Summary: Windows PowerShell MVP Richard Siddaway talks about nesting Windows PowerShell workflows. Microsoft Scripting Guy, Ed Wilson, is here. Today, we have the third in a series of guest blog posts written by Windows PowerShell MVP Richard Siddaway dealing with Windows PowerShell workflow. Note The first article, PowerShell Workflows: The Basics, introduced the basic concepts of…
Year: 2013
PowerTip: Find Records that Do Not Exist in DNS Cache
Summary: Use Windows PowerShell to find records that do not exist in the client DNS cache. How can I easily find records that do not exist in the DNS client cache on Windows 8 or Windows Server 2012 (or Microsoft Surface)? Use the –Status property of the Get-DNSClientCache function and specify NotExist, as shown here. Get-DnsClientCache -Status NotExist
Replace NSLookup with a Built-in Windows 8 PowerShell Function
Summary: Microsoft Scripting Guy, Ed Wilson, continues his discussion about using Windows PowerShell on Windows 8 to troubleshoot DNS issues. Microsoft Scripting Guy, Ed Wilson, is here. Yesterday, I talked about using some of the functions from the DNSClient module to troubleshoot networking issues. Specifically, I talked about looking at the configured DNS server and at…
PowerTip: Find Parameter-Specific Help Information
Summary: In Windows PowerShell 3.0, see how to find detailed Help information for a specific Windows PowerShell parameter. How do I find detailed Help information for a specific parameter of a Windows PowerShell cmdlet? Use the –Parameter parameter and specify the parameter name. An example of this is shown here. 17:11 C:\> help New-Partition -Parameter size -Size <UInt64> …
Use PowerShell to Troubleshoot Client DNS
Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to troubleshoot client DNS. Microsoft Scripting Guy, Ed Wilson, is here. It seems that when I travel invariably at some point on the trip I end up in a hotel that has DNS issues. In the past, that meant opening up the CMD prompt…
PowerTip: Use PowerShell 3.0 to Find Size of Volumes and Partitions
Summary: Use Windows PowerShell 3.0 on Windows 8 and Windows Server 2012 to find the size of disks, partitions, and volumes. How can I find disk space information for disks, partitions, and volumes on Windows 8 or Windows Server 2012? Use the Get-Disk, Get-Partition, and Get-Volume functions. Note This command requires Admin rights. An example is shown here: 15:23 C:\> Get-Disk |…
Weekend Scripter: Messing Around with Disks
Summary: Microsoft Scripting Guy, Ed Wilson, talks about using the Windows 8 storage module to create partitions and to format disks. Microsoft Scripting Guy, Ed Wilson, is here. Today, I thought I would spend a bit more time playing around with the Windows 8 and Windows Server 2012 cmdlets in the storage module. To find these cmdlets, use…
PowerTip: Quickly Show Folders and Subfolders in PowerShell 3.0
Summary: Use Windows PowerShell 3.0 to quickly show folders and subfolders. How can I use Windows PowerShell 3.0 to quickly show folders and subfolders? Use the Get-ChildItem cmdlet with the –Directory and the –Recurse switch. Select only parent and name. This command is shown here. Sort on the parent property. gci -Recurse -Directory | select parent, name | sort parent Note gci is an alias for Get-ChildItem, select is…
Weekend Scripter: Sorting Folders by Size
Summary: Microsoft Scripting Guy, Ed Wilson, uses Windows PowerShell 3.0 to sort folders by size. Microsoft Scripting Guy, Ed Wilson, is here. It is amazing how things continue to go in circles … I know I have written a script to sort folders by size many times in many different languages. I recently ran across a…
PowerTip: Easily Find the Location of Current User Profile
Summary: Easily find the location of the Windows PowerShell current user current host profile. How can I find the location of the current Windows PowerShell profile for your current host? Use the $profile automatic variable, as shown here: 13:25 C:\> $profile C:\Users\ed.IAMMRED\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1