Hello,
I am attempting to use export-clixml to store adpermissions using:
get-adpermission -identity $adname |export-clixml C:\TEMP\$aduserid.xml
This successfully exports all adpermissions for an ad object to an xml file. I am doing this so I can close powershell and open it up at a later date and reimport the saved ad permissions for certain users.
To reimport the adpermissions I run the command:
import-clixml c:\TEMP\$aduserid.xml | add-adpermission -identity $adname
This returns the error:
add-adpermission : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the parameters that take pipeline input.Is there anything I can do that allows me to add ad permissions using previously exported xml files of the user's get-adpermission?
If not, is there another option that would allow me to save the adpermission of a user, come back at a later time, and set the adpermission using the saved permissions?
Thank you!
CarlMez