Forum Discussion
rdankhara123
Jul 26, 2023Copper Contributor
I want to change file ownership non-interactively by using Set-AIPFilelabel command
I am working on automating a solution where we change the ownership of the file encrypted by users who left the organization and assign ownership to the new user.
I am running the command set-aipfilelabel. Can you please help with how can I run these commands Non-Interactively? I am planning to use the SOAR solution. Please suggest if there is a better way to achieve this. It would be great if you can provide with sample script or point to a resource.
$permissions = New-AIPCustomPermissions -Users email address removed for privacy reasons -Permissions CoOwner
Set-AIPFileLabel '\\servername\folder\file.docx' -CustomPermissions $permissions -PreserveFileDetails
No RepliesBe the first to reply