Resource xWebsite was not found.


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

  • Author
  • #38772
    Profile photo of Robb Schiefer
    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
    Profile photo of Nitin Gupta
    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
    Profile photo of Robb Schiefer
    Robb Schiefer

    That fixed my problem. Thanks!

You must be logged in to reply to this topic.