Get-ChildItem -Path C:\temp
Get-ChildItem -Path C:\temp -Recurse
Get-ChildItem "c:\windows" > c:\temp\outputfile.txt
Set-Location -Path C:\Temp
Move-Item
Rename-Item
Rename-Item c:\temp\outputfile.txt c:\temp\MyDir.txt
Remove-Item
Remove-Item c:\temp\win*
Copy-Item
Copy-Item c:\temp\windowsdir.txt c:\temp\laboutput
Get-Content
Get-Content c:\temp\mydir.txt
New-Item
New-Item -itemtype directory c:\temp\Laboutput

Send output to a file

> file.txt

Append output to a file

>> file.txt

Quick creation of csv or txt files

  • Open powershell
  • Type in notepad c:\test.csv
  • Powershell prompts to create it
  • Notepad is opened and you can create your file and save