ArchivePoints.exe via Powershell
I’m in the process of creating a powershell script to check OU users against users already configured for file share archiving but I’ve hit a stumbling block. I can query AD to get a list of users per OU and their home directories, dumping all of the details out to text files for logs and basing subsequent queries on.
When I try to query the Archive Points using archivepoints.exe I keep getting an error.
The simple form of the script would be :
$EVArg = "find"
$VolLine = "\\fopserver045v\ouone_users_r$"
Invoke-Item "$app $EVArg $VolLine"
But it errors with the following.
Invoke-Item : Cannot find path 'D:\Enterprise Vault\ArchivePoints.exe find \fopserver045v\ouone_users_r$' because it does not exist.
It looks like it’s cutting the first backslash off the UNC path, not sure if that’s the problem or just a side effect but either way I haven’t been able to successfully run it.
Has anyone tried to use Powershell to find archive points successfully ?
I can upload the script (it ain’t pretty but it does the job so far) if it might help.