Ask a question

User

Error on first step migrating public folders

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
 


asked08/10/2021 18:10
78 views
Add Comment
Mariette Knap

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?

User

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

 


replied 08/10/2021 18:59
Mariette Knap

I will contact you through email because I would like to see this. Check your mailbox


replied 08/10/2021 19:02
Last Activity 08/10/2021 19:24

1 Answer(s)

  • Mariette Knap
    Add Comment
Add an Answer