Run New-PSSession as Scheduled Task
An internal error occurred. PSInvalidOperationException + FullyQualifiedErrorId : CreateRemoteRunspaceFailed After literally 2 hours bashing my head why a scheduled task would not run as a service account. But worked fine with normal account. Granting the ‘Allow log on as batch job’, ‘Allow log on locally’, and even adding the account to the Local Administrators group […]
Continue Reading