Hi All,
I have this PowerShell script that moves back up files from the local drive to remote storage on the same network. I need assistance adding admin credentials in the script for the remote drive and also schedule it via task scheduler so that it can run without user intervention. Any suggestions would be appreciated.
Thanks!
get-childitem -Path "D:\Backup" | where-object {$_.LastWriteTime -lt (get-date).AddDays(-30)} | move-item -destination "Z:\BAK"