SPTimerJobState: Can't find Resource with Invoke
See original GitHub issueDetails of the scenario you tried and the problem that is occurring
$prop = @{
TypeName = 'some.Path.PdfExportWorkItemJob'
WebAppUrl = 'some Url'
Enabled = $true
Schedule = 'weekly at sat 7:00'
PsDscRunAsCredential = $SetupAccount
}
PS > $SetupAccount = Get-Credential
PS > Invoke-DscResource -Name SPTimerJobState -Method test -Property $prop -ModuleName SharePointDsc
throws
Invoke-DscResource : Resource SPTimerJobState was not found.
Verbose logs showing the problem
N/A
Suggested solution to the issue
N/A
The DSC configuration that is used to reproduce the issue (as detailed as possible)
N/A
The operating system the target node is running
OsName : Microsoft Windows Server 2016 Standard OsOperatingSystemSKU : StandardServerEdition OsArchitecture : 64-bit WindowsBuildLabEx : 14393.447.amd64fre.rs1_release_inmarket.161102-0100 OsLanguage : en-US OsMuiLanguages : {en-US}
Version and build of PowerShell the target node is running
Name Value
PSVersion 5.1.14393.206 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…} BuildVersion 10.0.14393.206 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1
Version of the DSC module that was used
Name Version Path
SharePointDSC 5.1.0 C:\Program Files\WindowsPowerShell\Modules\SharePointDSC\5.1.0\SharePointDSC.psd1 SharePointDSC 5.0.0 C:\Program Files\WindowsPowerShell\Modules\SharePointDSC\5.0.0\SharePointDSC.psd1 SharePointDSC 4.3.0 C:\Program Files\WindowsPowerShell\Modules\SharePointDSC\4.3.0\SharePointDSC.psd1
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (4 by maintainers)
Top GitHub Comments
Specify the ModuleVersion helped. thx a lot
Good to hear! Let us know when you have any other questions or ideas for improvements to SharePointDsc!