I’ve been playing with DSC this week, building some classroom demos. The built-in resources work great, but I am having some issues with getting the DSC reskit x-resources to work.
I’ve downloaded the DSC resource kit contents and placed them into c:\program files\windowspowershell\modules folder. If I do a get-module - I can see them all in the right place (per the dsc book). However, when I invoke Get-DSCResource, some of the dsc resources are not seen.
If I use Get-Dscresource, I see this:
[dc1]: PS C:\Users\Administrator\Documents> Get-DscResource x*
ImplementedAs Name Module Properties
PowerShell xADDomain MSFT_xADDomain {DomainAdministratorCredential, DomainName,...
PowerShell xADDomainController MSFT_xADDomainController {DomainAdministratorCredential, DomainName,...
PowerShell xADDomainTrust MSFT_xADDomainTrust {SourceDomainName, TargetDomainAdministrato...
PowerShell xADUser MSFT_xADUser {DomainAdministratorCredential, DomainName,...
PowerShell xWaitForADDomain MSFT_xWaitForADDomain {DomainName, DomainUserCredential, DependsO...
PowerShell xWinEventLog MSFT_xWinEventLog {LogName, DependsOn, IsEnabled, LogMode...}
But if I do get-module, I see more, much more:
[dc1]: PS C:\Users\tfl\Documents> get-module x* -list
Directory: C:\Program Files\WindowsPowerShell\Modules
ModuleType Version Name ExportedCommands
Manifest 2.0 xActiveDirectory
Manifest 0.1.0 xAzure
Manifest 1.2 xComputerManagement
Manifest 1.0 xDatabase
Manifest 1.0 xDhcpServer
Manifest 1.0 xDnsServer
Manifest 2.0 xDscDiagnostics {Trace-xDscOperation, Get-xDscOperation, Update-xDscEventL...
Script 1.1 xDSCResourceDesigner {New-xDscResourceProperty, New-xDscResource, Update-xDscRe...
Manifest 1.1 xFailOverCluster
Manifest 2.1 xHyper-V
Manifest 0.2.16.1 xJea {Show-JeaPresentation, show-JeaWhitePaper, Show-JeaExamples}
Manifest 2.1 xNetworking
Script 2.0.0.0 xPSDesiredStateConfiguration {New-PSWSEndpoint, Set-AppSettingsInWebconfig}
Manifest 1.0 xRemoteDesktopSessionHost
Manifest 1.0 xSmbShare
Manifest 1.1.1 xSqlPs
Manifest 1.0 xSystemSecurity
Manifest 1.2 xWebAdministration
I am certainly missing something simple - I plead jetlag. Clues as to how to see the additional resources??