Windows PowerShell is a scripting language built by Microsoft. PowerShell is available on all Windows Operating systems since XP. PowerShell provides access to the cmdlet command or single function tools, providing an easy method to automate administration of the operating system and applications. Simple tasks of copying, moving and deleting files are performed in Powershell. PowerShell programming is excellent for performing tasks repetitively across many computers.
Things You'll Need
- Windows XP or later
- PowerShell 1.0 or later
Click on the "Start" icon located on the Windows task bar. Then click "Programs," "Accessories" and "Windows PowerShell" to start the PowerShell program.
Wait for the window labeled " Windows PowerShell" to appear and a command prompt starting with "PS" to display.
Enter the text "Remove-Item c:\directoryname*" and press the "Enter" key. Replace the text "directoryname" with the directory in which your files are located.
Type "dir c:\directoryname" and press "Enter" to verify the files were successfully deleted in Step 3.
Type "exit" at the Powershell command prompt, and press "Enter" to exit PowerShell.
- Photo Credit Thinkstock Images/Comstock/Getty Images
How to Access Files Through the Command Line on a Remote Computer
When you are connected to a remote Windows computer through Remote Desktop, you gain access to a wide variety of its tools,...
How to Delete Contacts in PowerShell
The Windows PowerShell is used to execute text-based commands for Windows and Microsoft programs. The main PowerShell window looks like a DOS...
How to Write a Shell Script to Delete Files
Removing files using the command line is a simple task with the right arguments. However, if you have a lot of files...
How to Uninstall Windows Powershell in XP
Windows Powershell is a command line tool--much like the MS-DOS command prompt included in the Windows XP installation--designed to give developers and...