Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to fix a printer that keeps losing its duplexer. Microsoft Scripting Guy, Ed Wilson, is here. One of the cool things about Windows PowerShell is that if I want to, I can generally use it to solve all of my issues. Sometimes the issue…
PowerTip: Mini-Scripting Games 2014 Question 1
Summary: Here is the Mini-Scripting Games 2014 first short-answer question. On your laptop running Windows 8.1, you opened the Windows PowerShell console and typed Get-Disk. You were greeted with an error message that says: “Get-Disk: Access to a CIM resource was not available to…
The Scripting Editor Tells All
Summary: Dia Reeves, aka the Scripting Editor, has some fun talking about working on the Hey, Scripting Guy! Blog. Microsoft Scripting Guy, Ed Wilson, is here. Today we have a guest blog post from my editor, Dia Reeves… Hello to all you Windows PowerShell scripters and fans of the Hey, Scripting Guy! Blog! I have…
Active Directory Week: Explore Group Membership with PowerShell
Summary: Learn about the nuances involved in reporting group memberships with Active Directory PowerShell. Microsoft Scripting Guy, Ed Wilson, is here. Today we continue our series about Active Directory PowerShell by Ashley McGlone. If you missed it, you may enjoy reading Get Started with Active Directory PowerShell first. Now, here's Ashley… Security priority In our…
Weekend Scripter: Why Should I Learn PowerShell?
Summary: Microsoft Scripting Guy, Ed Wilson, talks about why you should learn Windows PowerShell. Microsoft Scripting Guy, Ed Wilson, is here. The other day, I ran into an IT pro at the mall. He recognized me and started talking to me. It was like, dude, I was trapped. It turned out that he was cool,…
PowerTip: Determine What Character a String Starts With
Summary: Use Windows PowerShell to determine what character a string starts with. How can I use Windows PowerShell to show me if a string starts with a particular letter (this also needs to be case sensitive)? Use the StartsWith method from the String class, and supply the character to the method. It will return …
PowerTip: Use PowerShell 5 to Clear Recycle Bin
Summary: Learn how to clear the recycle bin by using Windows PowerShell 5.0 in Windows 10. How can I use Windows PowerShell to clear the recycle bin in my laptop running Windows 10? Use the Clear-RecycleBin cmdlet.
PowerTip: Duplicate File Structure with PowerShell
Summary: Use Copy-Item to duplicate content with Windows PowerShell. How can I use Windows PowerShell to duplicate content? Use Copy-Item—for example, to duplicate all files and folders from C:\Foo to D:\Foo, run: Copy-Item C:\Foo D:\Foo -recurse
PowerTip: Get the time and date as a string of numbers by using PowerShell
Summary: Use the –format option in Get-Date to change the output. I’d like to build some log files and have the date and time as part of the name. Is there a way to show the date and time in a format where it’s all numbers? Absolutely! Just use the –format option with Get-Date and…
How Can I Tell Which Scripts are Running on a Computer?
Hey, Scripting Guy! How can I tell which scripts are running on a computer?– NW Hey, NW. This is a question we’re always a little reluctant to answer, because there’s a 50-50 chance you’ll be disappointed with what you hear. If you are running Windows 2000 (or a previous version of Windows), the answer is…