We've recently upgraded from LDMS 9.0SP3 to 9.5, and I am having an issue with a PowerShell Distribution Package.
This PowerShell script worked fine under 9.0SP3 and ran successfully on approximately 300 Windows 7 workstations. Today, however, it is not working properly.
LANDesk marks the scheduled tasks as "successful", but the script is not running successfully.
There seems to be an odd issue associated with the execution policy... If I set the package to run as the "current user's account" I'll see the PowerShell window pop up briefly, and the script will run correctly. if I set the package to run as the "localsystem account" I'll get a brief message in the taskbar that indicates a process is trying to get my attention, but it always disappears before I can do anything with it - and the script does not run correctly.
Additionally - I tried "set-executionpolicy bypass" to make sure that signing wasn't the issue (even though the script is signed)... And after trying to run the scheduled task my execution policy is set to "restricted". This is not something that I've got set anywhere in my script. The scheduled task appears to be changing it to restricted for some reason.
Again - this script used to work fine.