-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
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
ADKDSKey Resource does does not work #648
Labels
bug
The issue is a bug.
Comments
raandree
added a commit
to raandree/ActiveDirectoryDsc
that referenced
this issue
Apr 6, 2021
9 tasks
johlju
added
bug
The issue is a bug.
in progress
The issue is being actively worked on by someone.
labels
Apr 10, 2021
@raandree, can you post the output of |
@X-Guardian, the error is as mentioned earlier:
The configuration I use is: Configuration ADKDSKey_CreateKDSRootKey_Config
{
Import-DscResource -Module ActiveDirectoryDsc
Node localhost
{
ADKDSKey 'ExampleKDSRootKey'
{
Ensure = 'Present'
EffectiveTime = '01/01/2025 00:00'
# Date must be set to at time in the future
}
}
}
ADKDSKey_CreateKDSRootKey_Config -OutputPath C:\DSC
Start-DscConfiguration -Path C:\DSC -Wait -Verbose These are the keys:
Most importantly, the EffectiveTime property is a DateTime object already. Why would you need to run the Parse method on a DateTime object? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Details of the scenario you tried and the problem that is occurring
When trying to create a KDS key, the error "String was not recognized as a valid DateTime" is thrown on machines with culture en-us and de-de.
Verbose logs showing the problem
Suggested solution to the issue
Not throwing the conversion error.
The DSC configuration that is used to reproduce the issue (as detailed as possible)
The issue can be reproduced when running the integration tests for that resource.
The operating system the target node is running
Version and build of PowerShell the target node is running
WMF51
Version of the DSC module that was used
6.0.1
The text was updated successfully, but these errors were encountered: