Unable to run DSC resource in Production

Tagged: ,

This topic contains 2 replies, has 2 voices, and was last updated by Profile photo of Girish Girish 3 months, 3 weeks ago.

  • Author
    Posts
  • #59536
    Profile photo of Girish
    Girish
    Participant

    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

    Thanks

  • #59538
    Profile photo of Don Jones
    Don Jones
    Keymaster

    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
      Profile photo of Girish
      Girish
      Participant

      Hi

      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

      Thanks

You must be logged in to reply to this topic.