Why no secure credential object for Scheduled Tasks via PowerShell?
harvey263
11
Reputation points
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
Sign in to answer