PowerShell  TTUC (Tips, Tricks and Useful Command) #14 – Move Files and Folders

The entire content of the folder can be moved to different location or folder using the move-item cmdlet.

Syntax / command:

move-item “\Server01MyReports*.*”  “\Server02Reports_Backup” –Force

http://www.amazon.com/dp/1849687447/?tag=packtpubli-20
Categories: AzureMicrosoftServer

Related Posts

Microsoft

Collect Computer Information From Active Directory– PowerShell Script

This PowerShell script can be used to collect computer information from Active Directory.   I am searching only Windows XP and Windows 7 machines.  You can update these values  by modifying $OS1 and $OS2 variables. $OS1 Read more…

Microsoft

PowerShell – Tips, Tricks and Useful Commands

Tip #4 –   #4                       Tip #3 – Comparison Operators Published date – May12, 2013 -eq   -ne   -gt   -ge   -lt Read more…

Microsoft

PowerShell TTUC #13 – Scheduled Jobs

PowerShell Tips, Tricks and Useful Commands (TTUC) #13 – Scheduled Jobs PowerShell scripts can be run as a scheduled job using using Windows scheduler.  Create a batch file with the following syntax/commands:   Powershell.exe “c:scriptsmytestscript.ps1” Read more…