Unable to run DSC resource in Production

This topic contains 2 replies, has 2 voices, and was last updated by  Girish 1 year, 5 months ago.

  • Author
  • #59536


    Hi All

    We are using DSC to configure the sharepoint machines and we have various resources built. Currently we are facing an issues in production which we are not able to replicate in other server.

    The error is as belows

    The term 'Write-Verbose' is not recognized as the name of a cmdlet, function, script file, or operable program. Check t
    he spelling of the name, or if a path was included, verify that the path is correct and try again.
    + CategoryInfo : InvalidOperation: (:) [], CimException
    + FullyQualifiedErrorId : ProviderOperationExecutionFailure
    + PSComputerName

    We have multiple resources using write-verbose statement.The first resource does not have issue with the write-verbose statement but the second resources in the configuration errors out with the above message

    Kindly let us know hoe to troubleshoot the same


  • #59538

    Don Jones

    That's odd, given that verbosity is part of the core. I'd almost suspect a problem with PSMOdulePath environment variable. Can you check that? Is this one affected machine, or several affected?

    • #59622



      Write-verbose is part of the module "Microsoft.PowerShell.Utility" . we were thinking of replicated the issue in our environemnt
      can we delete this module from the machine and check if we get the same error


You must be logged in to reply to this topic.