Summary: Create a new file with Windows PowerShell.
How can I use Windows PowerShell to create a new text file that will be empty until I add content?
Use the New-Item cmdlet and specify a path, name, and type, for example:
New-Item c:\fso\AnEmptyFile.txt -ItemType file...
Summary: Learn how to use Windows PowerShell to verify the syntax of a path.
How can I use Windows PowerShell to verify that a path that accepts user input is using the correct syntax?
Use the –IsValid parameter of the Test-Path cmdlet, for example:
PS C:\> $a = "c:\myfolder\nonexistentfile.txt&...
Summary: Microsoft Scripting Guy, Ed Wilson, talks about different approaches to find documents with Windows PowerShell.
Microsoft Scripting Guy, Ed Wilson, is here. It is a lovely weekend down here in the deep south USA. I am sipping a nice cup of English Breakfast tea with lemon, lime, orange pith, and Hibiscus flower added. I...
Summary: Use Windows PowerShell to find virtual hard disks on your system.
I notice that my disk space appears to be disappearing at a rapid rate, and I suspect someone is creating virtual hard disks (VHDs) and forgetting about them. How can I use Windows PowerShell to find all the &...
Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to explore old Windows VHDs.
Hey, Scripting Guy! It is time for spring clean-up around our datacenter. I am not talking about chasing out dust bunnies, although that is part of it. What I am talking about is trying to determine what can be safely deleted ...