I have a bat file that just moves a file from a directory to a file share:
move C:\Hyperion\Exports\MDM_CPT_HFM.TXT \\21.111.67.101\shareddata\Hyperion\MDM\MDM_CPT_HFM_081820102111.txt
The destination location is secure and only certain users have access.
When I log onto the source server as a user that has access to the destination folder and execute the command line above the file moves successfully.
When I create a Ctrl-M task type JOB and put in the file name and path name and set the Owner as the user with access and the nodeid is the source server I get the following error in the sysout and the file does not move:
Access is denied.
Any suggestions?
Acces is Denied when trying to move a file with a bat
- HowardLyle
- Nouveau
- Posts: 26
- Joined: 05 Aug 2008 12:00
If it's posible, try running control-m agent services with the user that has access to the destination path.
Jobs on windows runs as "LOCAL SYSTEM" unless you set up "Logon as user":
Logon as user:
Flag that specifies which user account is used for the services to log
on to.
Selected – Jobs are submitted with the permissions and
environment variables of the specified user.
Not selected – Jobs are submitted with the permissions and
environment variables of the local system account. Default.
Check Control-m Agent Admin Guide for more info.
regards
martin
Jobs on windows runs as "LOCAL SYSTEM" unless you set up "Logon as user":
Logon as user:
Flag that specifies which user account is used for the services to log
on to.
Selected – Jobs are submitted with the permissions and
environment variables of the specified user.
Not selected – Jobs are submitted with the permissions and
environment variables of the local system account. Default.
Check Control-m Agent Admin Guide for more info.
regards
martin
- rich_arredondo
- Nouveau
- Posts: 16
- Joined: 04 Nov 2011 12:00
Account with permissions
Two possible solutions:
- Use an account with folder permissions to log in the Control-M Agent Service.
- Use the variable %%PRECMD with a net use command specifying the path and the login user you use to write on the folder with the proper permissions.
- Use an account with folder permissions to log in the Control-M Agent Service.
- Use the variable %%PRECMD with a net use command specifying the path and the login user you use to write on the folder with the proper permissions.