Sunday, November 26, 2017

Running Task Scheduler by Group

I have been en counting an error, setting up my python to run automatically by Windows Task Scheduler as i only have the domain credentials.

The Windows Task Scheduler keep pop up an error whenever i try to save the domain user's password for the task ( on selecting "Run whether user is logged on or not"" mode)

As an alternative, i set the scheduler to run using "group"

Pick Run only when user is logged on.
Click Change user or group (it says group right there :)
type in users and click Check Names and Click Ok
and you application will run interactively for all users in the group users.

Friday, January 20, 2017

Robocopy FTW

recently i having issues to copy files to remote location where the network is slow.

It keep fails midway. i found a pretty need solution provided by MS in every PC. Below are the syntax i wrote in the cmd

Robocopy "C:\UserFolder" "C:\FolderBackup" /e /Z /log+: logcopy.txt
first syntax is source address
second is destination
/e is for copy all contents including empty directories of SourceFolder to DestinationFolder:
/Z is to re-do/continue on error/network fails 
last one is log location.