Powershell For FileSystem
For administrators it is important know commands related to file system.
Once administrator know about his day to day he need to work on it. Most of us have
started their career with playing around file system. Even if we’re working with server applications such as SQL or Exchange Server, as everything thing is built on files, we still need to interact with the file system.
We will cover here most of the common administrative tasks regarding the file system.
Let’s see lists the cmdlets that can be used to work with file system also we will see the example with diagrammatical explanation. Although names are self explanatory lets see description about it.
New-Item: With this command you can creates a new file or folder or item.
Clear-Item: With this command you can delete the contents inside the file item, without deleting the item.
Copy-Item: This copies an item from one path to another.
Move-Item: Moves an item from one location (Delete from older location) to another.
Invoke-Item: Performs the default action on the specified item.
Remove-Item: Deletes the specified file or folder or item.
Rename-Item: Renames an file or folder or item.
Set-Item: Changes the value of an item to the value specified in the command.
Get-ChildItem: cmdlet gets the items in one or more specified locations. If the item is a container, Get-ChildItem gets the items inside the container, known as child items.
Get-Item: Gets the item at the specified location.
Add-Content: One use of the Add-Content cmdlet is to append data to a text file.
Powershell Create File
Powershell Delete File
Powershell batch File and Scenarios like passing agruments
Powershell Content File
Powershell Copy File
Powershell Read File
Powershell Rename File
Powershell Write File
Powershell append File
Powershell list File
Powershell zip File
Powershell find File
Powershell include File
Powershell log File
Powershell Csv File
Powershell out-file File