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

Clearing Script-Path attribute - copy user command

Hi, will this work on ARS 7.2 or syntax is different? Also PowerShell equivalent for this would be nice (in context with ARS 7.2 too of course).

Sub onPostCreate(Request)

'if action was not COPY command exit
If (CInt(Request.Parameter("Type")) <> EDST_REQ_COPY) Then Exit Sub

'if action was COPY command

'clear Script-Path AD attribute
DirObj.PutEx ADS_PROPERTY_CLEAR, "Script-Path", Empty
'save changes in Active Directory
DirObj.SetInfo

End Sub

Thanks in advance.