Resource xWebsite was not found.

Tagged: 

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #38772
    Profile photo of Robb Schiefer
    Robb Schiefer
    Participant

    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
    Participant

    You have to specify moduleName as well as other meaningful properties of the xwebsite resource you are interested in.
    Example:
    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
    Participant

    That fixed my problem. Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.