Question William Proctor · Sep 30, 2016

Automating External Freeze on server with restricted access

Good Morning and thanks in advance for all replies.  I have created a PowerShell script for backing up CACHE and all related files to be run on a nightly basis.  My script works as long as the Unknownuser has %all access which is not acceptable in our production environment.  I have tried every format I can thank of to get the script to use a specific id with no luck.  How can I get this command to run under a specific id? 

..\bin\cache -s. -U%SYS "##Class(Backup.General).ExternalFreeze() <d:\backup\login.scr" 

The file just has

userid`r`n
​password`r`n

`r. For a carriage return and a new line, use `r`n.

Comments

Eduard Lebedyuk · Sep 30, 2016

Why not schedule a task in Caché Task Manager?

0
William Proctor  Oct 3, 2016 to Eduard Lebedyuk

we have to have our backups encrypted and doing an online backup thru the task manager stores the backups unencrypted on disk.

0
Dmitry Maslennikov · Sep 30, 2016

Have you tried it in cmd.exe instead of PowerShell, or the same troubles there ?
Please show screenshots from page Securty, Services

0
William Proctor  Oct 5, 2016 to Dmitry Maslennikov

Sorry I was pull off to other task.  I do get the same results running it in a command window.  I have given the unknown user %all permissions and the job works but we cannot leave it that way.  I need it to run under a special id just for this.

0