Use Select-String Cmdlet in PowerShell to View Contents of Log File
Summary: Use the Windows PowerShell cmdlet, Select-String, to view the contents of a log file. Hey, Scripting Guy! I have a log file that I created by dumping process information from Get-Process. It...
View ArticlePowerTip: Use PowerShell and Graphical Tool to View Files
Summary: Use Windows PowerShell and a graphical tool to view large files. How can I use Windows PowerShell to easily see what files in a folder are the largest so I can clean up my file system? Use...
View ArticleAnalyzing PowerShell Script Files
Summary: Learn how to analyze Windows PowerShell script files.Microsoft Scripting Guy, Ed Wilson, is here. This morning I am sitting around sipping a cup of English Breakfast tea. I added some...
View ArticlePowerTip: Use PowerShell to Assess Memory Requirements
Summary: Use Windows PowerShell to assess memory requirements. How can I use Windows PowerShell to figure out the minimum, maximum, and average working set requirements for processes on my...
View ArticleWhat's Up with the Crazy PowerShell Formatting?
Summary: Microsoft Scripting Guy, Ed Wilson, talks about calculating properties in output. Hey, Scripting Guy! Dude, I’ve got a question. I read your Hey, Scripting Guy! Blog every day. In fact, most...
View ArticlePowerTip: Find Current Working Directory in PowerShell
Summary: Easily find your current working directory in Windows PowerShell. I saved a file to my current working directory while I was working in the Windows PowerShell console, but I am not...
View ArticleWeekend Scripter: Why Does PowerShell Hide Stuff?
Summary: Microsoft Scripting Guy, Ed Wilson, talks about how Windows PowerShell decides what to display.Microsoft Scripting Guy, Ed Wilson, is here. This morning I received an email from a friend with...
View ArticlePowerTip: Find all Format*xml Files Referencing WMI Class
Summary: Find all Format*xml files that contain references to specific WMI class. I am trying to find why a particular WMI class returns a subset of properties. I suspect output is controlled by an...
View ArticleWeekend Scripter: Sorting PowerShell Hash Tables
Summary: Microsoft Scripting Guy, Ed Wilson, talks about sorting hash tables.Microsoft Scripting Guy, Ed Wilson, is here. Today is part of the Scripting Wife’s birthday weekend, and so we are heading...
View ArticlePowerTip: Display Keys from Hash Table
Summary: Learn how to display keys from a hash table. How can I display only the keys in a Windows PowerShell hash table? Store the hash table in a variable, and then use the Keys property, for...
View ArticlePowerShell and Active Directory Recycle Bin
Summary: Guest blogger, Alan Kaplan, talks about using Windows PowerShell with the Active Directory Recycle Bin.Microsoft Scripting Guy, Ed Wilson, is here. Today we have a guest blog post written by...
View ArticlePowerTip: Find Syntax for Related PowerShell Cmdlets
Summary: Easily find the syntax for related Windows PowerShell cmdlets. How can I easily find the syntax for related Windows PowerShell cmdlets with the least effort? Use the Get-Command cmdlet, select...
View ArticleUse PowerShell to Create Ordered Dictionary
Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to create an ordered dictionary.Microsoft Scripting Guy, Ed Wilson, is here. One of the really cool things that was...
View ArticlePowerTip: Retrieving Specific Items from Hash Table
Summary: Retrieve specific items from a Windows PowerShell hash table. How can I use Windows PowerShell t retrieve specific values associated with specific keys in a hash table? Suppose you have a hash...
View ArticleUse PowerShell to Create Local User Accounts
Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to create local user accounts.Microsoft Scripting Guy, Ed Wilson, is here. As much as we might like to ignore it, or...
View ArticlePowerTip: Use PowerShell to Create Hash Table to Hold Lowercase Letters
Summary: Use Windows PowerShell to create a hash table that holds all ASCII lowercase letters. How can I use Windows PowerShell to create a hash table that holds all lowercase ASCII letters? Create an...
View ArticleUse PowerShell to Create Local Groups
Summary: Microsoft Scripting Guy, Ed Wilson, talks about creating local groups.Microsoft Scripting Guy, Ed Wilson, is here. Creating a local group works exactly the same way as creating a local user...
View ArticlePowerTip: Use PowerShell to Reverse Array
Summary: Easily use Windows PowerShell to reverse an array. How can I use Windows PowerShell to reverse an array? Pipe the array to the Sort-Object cmdlet and use the –Descending switch, for example:$a...
View ArticleAdding Local Users to Local Groups
Summary: Learn how to use Windows PowerShell to add local users to local groups.Microsoft Scripting Guy, Ed Wilson, is here. Creating local user objects and local group objects is fine, but to be...
View ArticlePowerTip: Change Color of PowerShell Errors
Summary: Learn how to change the color of Windows PowerShell errors. How can I change the color of Windows PowerShell errors in the Windows PowerShell console? Use $host.PrivateData and supply a new...
View Article