question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SPTimerJobState: Can't find Resource with Invoke

See original GitHub issue

Details 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:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Mettconcommented, Feb 9, 2022

Specify the ModuleVersion helped. thx a lot

0reactions
ykuijscommented, Feb 9, 2022

Good to hear! Let us know when you have any other questions or ideas for improvements to SharePointDsc!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get-SPTimerJob (sharepoint-server)
The Get-SPTimerJob cmdlet reads a specified timer job, timer jobs of a specified type, or timer jobs defined for a specified scope.
Read more >
c# PowerShell Sharepoint invoke timerjob
I am trying to invoke a SPTimerJob to run on demand. What I'm trying to do, is to call Word Automation Services to...
Read more >
SPConfigWizard | launch Get-SPProduct -local to refresh ...
When Patchin the farm with SPConfigWizard, one of my server is giving "Missing Required" int the Manage Patch Status.
Read more >
Get-SPTimerJob cmdlet Incorrectly lists SharePoint timer ...
I'm trying to modify a specific timer job "Disk quota warning" for one of my SharePoint 2010 web applications via powershell. But I...
Read more >
SharePoint 2016 Site Collection Web Analytics Reports ...
Trying to execute the following code: $tj = Get-SPTimerJob -Type Microsoft.Office.Server.Search.Analytics.AnalyticsJobDefinition $sa = $tj.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found