I am getting an error that I don't understand after running the script Export-PublicFolderStatistics.ps1
Here is the output from this command.
[PS] C:\pfscripts>C:\PFScripts\Export-PublicFolderStatistics.ps1 "$Share\FolderSize.csv" "$Domain" C:\PFScripts\Export-PublicFolderStatistics.ps1 : Cannot bind argument to parameter 'PublicFolderServer' because it is a n empty string. At line:1 char:47 + C:\PFScripts\Export-PublicFolderStatistics.ps1 <<<< "$Share\FolderSize.csv" "$Domain" + CategoryInfo : InvalidData: (:) [Export-PublicFolderStatistics.ps1], ParameterBindingValidationExceptio n + FullyQualifiedErrorId : ParameterArgumentValidati EmptyStringNotAllowed,Export-PublicFolderStatistics.ps1
Did you set the variables $Share and $Domain to valid values? Meaning the FQDN is used on your server and you can access the share?
Yes, here are the variables that I set.
$Share = "\\enterprise7\UserShares\admin"
Domain = "enterprise.abswa.com"
I also tried
$Share = "\\enterprise7\UserShares\sbsadmin"
but there was no user or folder sbsadmin. I got the same error with this variable.
Bruce
I will contact you through email because I would like to see this. Check your mailbox
Small typo was the cause of this. The variable $Domain was written without the $