Skip to content

the attempt to write progress in the shell not working #2

Description

@mb96net

First of all...this is fantastic, thanks for sharing. My powershell window gets filled with the following errors when I run it though:

-PercentComplete : The term '-PercentComplete' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At C:\Scripts\Audit-S2D.ps1:699 char:24

  •                    -PercentComplete (($i/$VMHosts.Count)*100) `
    
  •                    ~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (-PercentComplete:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

-CurrentOperation : The term '-CurrentOperation' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At C:\Scripts\Audit-S2D.ps1:701 char:24

  •                    -CurrentOperation "Collecting $($VMHost.Name)  ...
    
  •                    ~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (-CurrentOperation:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions