Title: Issues using ScheduledTask · Issue #7 · PowerShellOrg/StackExchangeResources · GitHub
Open Graph Title: Issues using ScheduledTask · Issue #7 · PowerShellOrg/StackExchangeResources
X Title: Issues using ScheduledTask · Issue #7 · PowerShellOrg/StackExchangeResources
Description: I'm trying to use DSC to create scheduled tasks. I run the code below and it appears successful and there are no issues in the event log, but a task is not created. Configuration Misc { param([PSCredential] $creds) Import-DscResource -Mo...
Open Graph Description: I'm trying to use DSC to create scheduled tasks. I run the code below and it appears successful and there are no issues in the event log, but a task is not created. Configuration Misc { param([PSCr...
X Description: I'm trying to use DSC to create scheduled tasks. I run the code below and it appears successful and there are no issues in the event log, but a task is not created. Configuration Misc { param([...
Opengraph URL: https://github.com/PowerShellOrg/StackExchangeResources/issues/7
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Issues using ScheduledTask ","articleBody":"I'm trying to use DSC to create scheduled tasks. I run the code below and it appears successful and there are no issues in the event log, but a task is not created.\n\n```\nConfiguration Misc\n{\n param([PSCredential] $creds)\n\n Import-DscResource -ModuleName StackExchangeResources\n\n Node localhost\n {\n\n ScheduledTask Test_Task\n {\n Ensure = \"Present\"\n Name = \"Proto2\"\n FilePath = \"D:\\DSCTest\\myapp.exe\" \n At = \"11:00\"\n Credential = $creds\n Daily = $true\n #sint32 Hours; sint32 Minutes; boolean Once; int32 DaysInterval; string DaysOfWeek[]; boolean Weekly; \n }\n\n }\n}\n\ncls\n\n\n$myCreds = New-Object System.Management.Automation.PSCredential(\"NT AUTHORITY\\NETWORK SERVICE\") \n\n#I've also tried supply my admin creds $myCreds = Get-Credential\n\nMisc($myCreds) -OutputPath \"C:\\Admin\\TestingStuff\\PS\\DSC1\\Misc\"\n\nStart-DscConfiguration -Path \"C:\\Admin\\TestingStuff\\PS\\DSC1\\Misc\" -Wait -Verbose -Force -Debug \n```\n\nResults:\nVERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = SendConfigurationApply,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' =\n root/Microsoft/Windows/DesiredStateConfiguration'.\nVERBOSE: An LCM method call arrived from computer USB-TGKCTEST with user sid S-1-5-21-2950772361-2964733660-914393307-1001.\nVERBOSE: [USB-TGKCTEST]: LCM: [ Start Set ]\nVERBOSE: [USB-TGKCTEST]: LCM: [ Start Resource ] [[ScheduledTask]Test_Task::[Misc]System.Management.Automation.PSCredential::[Misc]System.Management.Automation.PSCredential]\nVERBOSE: [USB-TGKCTEST]: LCM: [ Start Test ] [[ScheduledTask]Test_Task::[Misc]System.Management.Automation.PSCredential::[Misc]System.Management.Automation.PSCredential]\nVERBOSE: [USB-TGKCTEST]: [[ScheduledTask]Test_Task::[Misc]System.Management.Automation.PSCredential::[Misc]System.Management.Automation.PSCredential] \nUnable to find matching job.\nVERBOSE: [USB-TGKCTEST]: LCM: [ End Test ] [[ScheduledTask]Test_Task::[Misc]System.Management.Automation.PSCredential::[Misc]System.Management.Automation.PSCredential] \n in 0.5160 seconds.\nVERBOSE: [USB-TGKCTEST]: LCM: [ Start Set ] [[ScheduledTask]Test_Task::[Misc]System.Management.Automation.PSCredential::[Misc]System.Management.Automation.PSCredential]\nVERBOSE: [USB-TGKCTEST]: LCM: [ End Set ] [[ScheduledTask]Test_Task::[Misc]System.Management.Automation.PSCredential::[Misc]System.Management.Automation.PSCredential] \n in 0.9530 seconds.\nVERBOSE: [USB-TGKCTEST]: LCM: [ End Resource ] [[ScheduledTask]Test_Task::[Misc]System.Management.Automation.PSCredential::[Misc]System.Management.Automation.PSCredential]\nVERBOSE: [USB-TGKCTEST]: LCM: [ End Set ] in 1.8358 seconds.\nVERBOSE: Operation 'Invoke CimMethod' complete.\nVERBOSE: Time taken for configuration job to complete is 2.025 seconds\n","author":{"url":"https://github.com/kevinsea","@type":"Person","name":"kevinsea"},"datePublished":"2015-05-31T17:54:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/7/StackExchangeResources/issues/7"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0feb4020-e430-1e2b-acf5-3c1e73cc816a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E1C6:103280:19192:201EE:697BC54B |
| html-safe-nonce | 5060d6bccb702214e631ac78c33bb3153ff38eaa6982723edb12451c2844db2c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMUM2OjEwMzI4MDoxOTE5MjoyMDFFRTo2OTdCQzU0QiIsInZpc2l0b3JfaWQiOiIxMjIxOTAxMzYxMjA5OTE4Nzk1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d7270628227a413aebe6fb3f452089f4078ae095cb84636b50f3c4db3a8ce12e |
| hovercard-subject-tag | issue:83146750 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShellOrg/StackExchangeResources/7/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7990429becceac27e408987b8e6db872a74935555cac2cc2470ed63c89dbdb73/PowerShellOrg/StackExchangeResources/issues/7 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7990429becceac27e408987b8e6db872a74935555cac2cc2470ed63c89dbdb73/PowerShellOrg/StackExchangeResources/issues/7 |
| og:image:alt | I'm trying to use DSC to create scheduled tasks. I run the code below and it appears successful and there are no issues in the event log, but a task is not created. Configuration Misc { param([PSCr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kevinsea |
| hostname | github.com |
| expected-hostname | github.com |
| None | 300bc1c13c6b7e78c073c9264c722c624187bbdfc3b25a5b021396c805f56978 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShellOrg/StackExchangeResources git https://github.com/PowerShellOrg/StackExchangeResources.git |
| octolytics-dimension-user_id | 4895314 |
| octolytics-dimension-user_login | PowerShellOrg |
| octolytics-dimension-repository_id | 25050284 |
| octolytics-dimension-repository_nwo | PowerShellOrg/StackExchangeResources |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 25050284 |
| octolytics-dimension-repository_network_root_nwo | PowerShellOrg/StackExchangeResources |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f571aa04a5e12a930e3b781f4b1c4b4408e5ba61 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width