Author Posts

May 9, 2016 at 7:38 am

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?

May 9, 2016 at 9:02 am

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

May 10, 2016 at 8:07 am

That fixed my problem. Thanks!