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

The term 'IsAttributeModified' is not recognized as the name of a cmdlet....

$
0
0

I am new to ActiveRoles and in the process of creating a script.

 

I created a edsva virtual attribute. The object class is "User" and the syntax is Boolean. Next I created a Web-command page and added a checkbox with the edsa virtual attribute as the property. And finally I created a policy to run the script and to define the scope.

 

When I place a checkmark at the box on the created page and select Save, I recieve the error.

 

I have stripped the script to a few lines, but the error remains.

 

Script:

=====

onPostModify($Request)

{

if ((IsAttributeModified "edsvaDNBWoaPasswordReset" $Request) -eq $false) { return }

    Add-Content d:\test.txt $Request

}

 

 

Error:

====

Log Name:      EDM Server

Source:        EDM

Date:          9/24/2013 12:18:26 PM

Event ID:      2000

Task Category: Policy

Level:         Error

Keywords:      Classic

User:          Domain\ServiceAccount

Computer:      ARS Server

Description:

Post-processing operation on object caused a policy violation.

Policy: Runs the script 'Test_Attribute_Rop'

Object: CN=Test1,OU=Users,OU=Divisions,DC=Domain,DC=nl

Details: The 'Script Execution' policy encountered an error when running the script 'Test_Attribute_Rop'. The term 'IsAttributeModified' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

 

 

What do I do wrong?

Thank you in advance!!

 

Röp


Viewing all articles
Browse latest Browse all 1277

Trending Articles