Share via

Why no secure credential object for Scheduled Tasks via PowerShell?

harvey263 11 Reputation points
2022-04-30T04:44:31.657+00:00

Why doesn't New-ScheduledTaskPrincipal or Register-ScheduledTask include a -Credential parameter? So it can be used with Get-Credential? Maybe I'm missing something inherent to scheduled tasks. But any method of specifying credentials is insecure. "SecureString" included because it's just decrypted in transit.

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.