Someone asked why during one of the Community Evaluation Program meetings and the answer was quite simple : “RoboCopy could easily take care of this task”. Here we go, I will show you how to simply use Robocopy in a System Center Orchestrator 2012 Runbook.
Today scenario will be a content copy of the folder C:SCOFolderSource (including files / sub-folders)
into another folder C:SCOFolderDestination.
- Mode : we choose Command execution.
- Details > Computer : I chose to run the command by the Orchestrator server, so right click in the Computer Field, choose Returned Data, check the box Show common Returned Data and select Runbook Server Name.
- Details > Command : Robocopy is built-in in Windows 2008, so we could call it directly. If you are running Windows Server 2003, you will have to download it and to specify the path in the command field.
All the details about the parameters could be found here : http://technet.microsoft.com/en-us/library/cc733145(WS.10).aspx
Of course this is a really simple activity, now you could re-use it in any of your existing Runbooks.
This Runbook is available here : DOWNLOAD
Microsoft System Center Orchestrator 2012 Resources :
Microsoft System Center Orchestrator 2012 beta is available as public beta at the Microsoft Download Center : http://www.microsoft.com/download/en/details.aspx?id=26503
Microsoft System Center Orchestrator 2012 Team Blog : http://blogs.technet.com/b/scorch/
TechNet Forums for System Center Cross Platform and Interoperability :http://social.technet.microsoft.com/Forums/en-US/category/scinterop