Score:0

ADFS backup task scheduler as powershell as admin

de flag

I'm trying to create a scheduled task to backup my ADFS using the 'backup-adfs' PowerShell command. I've already created the script and ran it with an admin user (with 'run as administrator') and its working just fine,running it with the same admin user but without 'run as administrator' option and I will get access denied. My main problem is that when I'm running it from task scheduler and using 'high privileged' I keep getting code 0x1 for privilege error.

I search a bit online about people trying to figure out this issue who ran the task a 'SYSTEM' but for me it's not working.SYSTEM doesn't have privileged over ADFS so cannot run the backup-adfs command through PowerShell.

If anything is missing regarding any info please let me know Thanks in advance

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.