#powershell #skype4b Scheduled Task Does Not Work

You tested your #skype4b script from the PowerShell command line and are satisfied that everything works as expected. Next, you create a regular Windows scheduled task to run the script at a specific time of a day. However, you are surprised that no results are returned from simple cmdlets like Get-CsUser. You even wrap similar code in Invoke-Command and purposely target remote hosts with -ComputerName with no success.

Ultimately…

… you found that the option “Do not store password. The task will only have access to local resources” must be unchecked for scheduled tasks to properly work on remote machines.

Leave a Reply