Anyone out there know an answer to this? I have been discussing this with LANDesk, with no results. I thought perhaps someone out there had run into the same issue and resolved it somehow.
When I reference a powershell script that sets maintenance mode on our SCOM server, I fail to connect to the RMS. Here's the fun part. Only when I call the script from a workflow. I changed the service to run under svc_landesk account rather than system and verified that scripts are running under that account. If I open a command prompt using those credentials, I can successfully execute the script in question. However, it always fails when executed from the workflow. I have many scripts that run successfully, but this one fails. I would appreciate any guidance.
After time I discovered:
When I reference a couple PowerCLI cmdlets they do not run, again only from within a workflow. These cmdlets are:
Make-Directory (When referencing a datastore) The same script run from a powershell prompt will run just fine.
Make-Directory (When referencing a datastore)
The same script run from a powershell prompt will run just fine.
Anyone have any ideas?
Twmilt, I don't have an answer for you because you already tried what I was going to recommend, which was to check the permissions of the LAN Desk Service Management Account. It sounds like you already did this and confirmed that the account you are using does have the permissions outside of LD workflow. I ran into a similar problem with VBScripts and EXEs, they were failing because the system account associated with LAN Desk Service Management Account did not have the necessary permissions. Unfortunately, I have not done much work with Powershell Cmdlets, I use mainly VBScripts and .Net Console apps as EXEs. If you find the answer let me know I would be interested in hearing the solution.
Thanks. Yes I have verified that the account credentials being used have proper permissions.
I'll keep this discussion updated so if I find a solution it will be here.
I'll investigate that. For the functions I'm doing (integrating with SCOM and VMWare) it's been so easy to use powershell, I honestly haven't looked. I'm suspecting that for the VMWare stuff there is not. Unsure about SCOM...