• David Ly (12/16/2008)


    when i ran:

    ./diskusage.ps1 sydw1255|export-CSV -path ./diskusage.csv -noTypeInformat

    I get this error:

    An empty pipe element is not permitted.

    At F:\Working Folders\PowerShell\diskusage.ps1:4 char:2

    David,

    Try executing just ./diskusage.ps1 by itself and see if you get any output then add space pipe space export-csv -path ./diskusage.csv -noTypeInformat as shown in the article.

    Verify your execution policy in Powershell also by running get-executionpolicy. Set your policy to remotesigned by running set-executionpolicy remotesigned if it is not already.