Resource xWebsite was not found.

Welcome Forums DSC (Desired State Configuration) Resource xWebsite was not found.

This topic contains 2 replies, has 2 voices, and was last updated by

 
Participant
2 years, 7 months ago.

  • Author
    Posts
  • #38772

    Participant
    Points: 21
    Rank: Member

    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

    Participant
    Points: 0
    Rank: Member

    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

    Participant
    Points: 21
    Rank: Member

    That fixed my problem. Thanks!

The topic ‘Resource xWebsite was not found.’ is closed to new replies.