Saturday, March 5, 2016

Powershell folder mirroring

#creating scheduled task to sync folder every one minute
schtasks /create /RU jockeygrp\baba /RP Ethic@@!!! /TN newtesttask /TR "robocopy d:\datasrc d:\datadest" /sc MINUTE /mo 01





#for delete this task


schtasks /delete /TN "newtesttask" /f



schtasks /create /RU jockeygrp\baba /RP Ethic@@!!! /TN newtesttask /TR "robocopy d:\datasrc d:\datadest /copyall /mir" /sc MINUTE /mo 01

No comments:

Post a Comment

Thanks for showing interest in tech-jockey.

Content of this blog has been moved to GITHUB

Looking at current trends and to make my content more reachable to people, I am moving all the content of my blog https://tech-jockey.blogsp...