Resource xWebsite was not found.

This topic contains 2 replies, has 2 voices, and was last updated by  Robb Schiefer 2 years, 1 month ago.

  • Author
  • #38772

    Robb Schiefer

    I installed the xWebAdministration module to the modules folder. The xWeb* resources show in the Get-DSCResources list but when I attempt to use the xWebsite resource I receive the following error.

    `PS C:\Users\sam> Invoke-DscResource -Name xWebsite -Method Test -Property @{ Name="testingDSC" }
    Invoke-DscResource : Resource xWebsite was not found.`

    Any suggestions?

  • #38780

    Nitin Gupta

    You have to specify moduleName as well as other meaningful properties of the xwebsite resource you are interested in.
    Invoke-DscResource -Name xWebsite -Method Test -Property @{ Name="testingDSC";Ensure="Absent";PhysicalPath="C:\www\test"; } -ModuleName xWebAdministration

  • #38877

    Robb Schiefer

    That fixed my problem. Thanks!

You must be logged in to reply to this topic.