Skip to content
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

Could Not Find Mandatory Parameter TimeZone #9

Open
richardjgreen opened this issue Apr 13, 2017 · 0 comments
Open

Could Not Find Mandatory Parameter TimeZone #9

richardjgreen opened this issue Apr 13, 2017 · 0 comments

Comments

@richardjgreen
Copy link

I've created a really simple DSC Configuration using this module to configure the time zone of a machine.
`Configuration SetRegionalSettings {

Param
(
    [Parameter(Mandatory = $true)]
    [ValidateNotNullorEmpty()]
    [String]$NewTimeZone
)

Import-DscResource -ModuleName rsInternationalSettings

rsTime SetTimeZone {
    TimeZone = $NewTimeZone
}

}

SetRegionalSettings -NewTimeZone "GMT Standard Time"`

When I run Start-DscConfiguration to enact the MOF file, I get the error Could Not Find Mandatory Parameter TimeZone. When I look inside the MOF file, TimeZone is set to NULL. As you can see from my example, I am clearly defining a value for TimeZone so I think there is a problem with the rsTime module not passing this value through.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant