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

Need help with powershell script to select the smallest exchange DB for e-mail creation.

$
0
0

Need help with powershell script to select the smallest exchange DB for e-mail creation.

I am trying to add a script to my new user policy to select the smallest db to build the mail box.

I have the script selecting the correct db but it doesn't pass the value back to ARS for the mail box creation.

I have added event logging and can see the values being selected.

Then I get an error in the eventlogs, 

 

Details: The 'Script Execution' policy encountered an error when running the script 'test'.

At line: 85 char:34. Exception calling "SetEffectivePolicyInfo" with "3" argument(s): "Object reference not set to an instance of an object."



Here is line 85

85)  $Request.SetEffectivePolicyInfo($strAttrname, $Constants.EDS_EPI_UI_DISPLAY_NOTE, "The value is offered by administrative policy")

86)  $Request.SetEffectivePolicyInfo($strAttrname, $Constants.EDS_EPI_UI_GENERATED_VALUE, $arr)

}

}



Any assistance would be great!



I am also looking for a manual that explains how to get powershell script to work with ARS.

Like definitions to

$Constants.ADSTYPE_CASE_IGNORE_STRING

$Request.SetEffectivePolicyInfo

$Constants.EDS_EPI_UI_DISPLAY_NOTE

 $Constants.EDS_EPI_UI_GENERATED_VALUE




Viewing all articles
Browse latest Browse all 1277

Trending Articles