This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Custom Activity PowerShell

Hello,

i have the following issue. If a user changes his password on the pwm website and the user is currently logged on the system, the computer need to be locked so that the new password is recognized by our proxy and windows itself.

I try to create a custom activity with a powershell script that lock down the computer. I know how powershell works but i have no clue how to get a custom activity working. 

Thats an important step for me and i really need to know how it goes. I read the help file but i didn´t get it.

Here is what i am doing so far.

Create a custom activity inside the manage my passwords workflow.

Activity Name: lockpc

Powershell Script.

function PreLoad($workflow, $lockpc)
{
$xCmdString = {rundll32.exe user32.dll,LockWorkStation}

Invoke-Command $xCmdString

# #Add code to be executed before activity execution begins here
}

 

Nothing happens. The Text that i created on the user interface designer is displayed. But nothing more.

I hope that someone put me in the right direction.

Thanks

Frank

Parents
  • Yes i check the logs but did not found something that looks like a authentication issue. I activate the kerberos logs and saw some KDC_ERR_PREAUTH_FAILED
    But not in the time i try to start the powershell script. Also try to remove the pre auth for kerberos for the particular user. But it doesnt work.
    Under which user is the powershell script running?
    Under the same user as the service is running?
Reply
  • Yes i check the logs but did not found something that looks like a authentication issue. I activate the kerberos logs and saw some KDC_ERR_PREAUTH_FAILED
    But not in the time i try to start the powershell script. Also try to remove the pre auth for kerberos for the particular user. But it doesnt work.
    Under which user is the powershell script running?
    Under the same user as the service is running?
Children
No Data