We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I've wrote resource for scheduled task:
cScheduleTask {Name} #ResourceName { Ensure = "Present" TaskName = "TaskName" Credential = $credential Execute = "{execute}" TaskPath = "\" ScheduledAt = @([DateTime]"00:00:00") RepetitionIntervalTimeSpanString = @([TimeSpan]::FromMinutes(10).ToString()) RepetitionDurationTimeSpanString = @([TimeSpan]::MaxValue.ToString()) Disable = $false Hidden = $false WorkingDirectory = "{workingDirectory}" }
Resource can be created but when I try Get-DscConfiguration I get:
Get-DscConfiguration
Get-DscConfiguration : GetConfiguration did not succeed. At line:1 char:1 + Get-DscConfiguration -CimSession {name} -Verbose + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (MSFT_DSCLocalConfigurationManager:root/Microsoft/...gurationManager) [Get-DscConfiguration], CimException + FullyQualifiedErrorId : MI RESULT 1,Get-DscConfiguration + PSComputerName : {name}
I also get ERROR in ETW:
Message Unable to cast object of type 'System.String' to type 'System.Collections.IList'. Parameter name: value HResult -2147024809 StackTrack at Microsoft.Management.Infrastructure.Internal.Data.CimPropertyOfInstance.set_Value(Object value) at Microsoft.PowerShell.DesiredStateConfiguration.Internal.ResourceProviderAdapter.GetTargetResource(IntPtr resourceConfigurationInstanceHandle, IntPtr nonResourcePropetiesHandle, IntPtr metaConfigHandle, IntPtr regInstanceHandle, IStreamsHandler plugInStreamsHandler, IntPtr& outputInstanceHandle, IntPtr& errorInstanceHandle) at Microsoft.PowerShell.DesiredStateConfiguration.Internal.DscPluginManagedEntryWrapper.Get(IntPtr provContext, IntPtr instance, IntPtr nonResourcePropeties, IntPtr metaConfig, IntPtr regInstance, IntPtr outputInstance, IntPtr extendedError)
The text was updated successfully, but these errors were encountered:
It seems like bug. I will check it.
Sorry, something went wrong.
Issue relates to RepetitionIntervalTimeSpanString
RepetitionIntervalTimeSpanString
Fixed.
eefab3d
No branches or pull requests
I've wrote resource for scheduled task:
Resource can be created but when I try
Get-DscConfiguration
I get:I also get ERROR in ETW:
The text was updated successfully, but these errors were encountered: