Quantcast
Channel: Software Communities : Popular Discussions - ActiveRoles
Viewing all articles
Browse latest Browse all 1277

Passing variables to Powershell

$
0
0

I am new to active roles but i am comfortible with power shell. I have a policy for new user creations that calls a powershell script. However i do not know how to pass the powershell script the values from the new hire window. Specifically i would like to modify the properties of the user account that is being created and to do this i obviously need to be able to reference the user account that i am creating from the Active Roles Admin page. Does anyone know how to accomplish this?

 

I see references examples that use " $Name =  GetValue $DirObj "DisplayName"" however that does not seem to work.

 

Below is an example of something i tried for testing.

 

 

$Name =  GetValue $DirObj "DisplayName"

Set-casmailbox -identity "$name" -imapenabled $false

Set-casmailbox -identity "$name" -popenabled $false


Viewing all articles
Browse latest Browse all 1277

Trending Articles