I need to correct a large number of PGP NetShare volumes. I would like to walk a directory tree with Powershell, pipe it through pgpnetshare.exe and make sure the Group Admin, Admin and user list are set properly. I will be doing this with the organization ADK. Currently I'm going through the folder structure by hand and re-encrypting as I go, but I would imagine that I can do this with Powershell (I just haven't used it before).
I've started by trying the following, where I can see the permissions set for a few folders:
$file = Get-ChilItem <base directory>
foreach ($file in $files) {pgpnetshare --list $file}
Any help/direction would be greatly appreciated.