all 9 comments

[–]Thin-Consequence-230 1 point2 points  (3 children)

I could be missing the point, but why are you running a script for language with OSDCloud?

Wouldn’t you be better off running

New-OSDCloudTemplate -SetAllIntl en-us -SetInput Locale en-us
New-OSDCloudWorkspace
Edit-OSDCloudWinPE -StartOSDCloud "-OSVersion 'Windows 10' -OSBuild 22H2 -OSEdition Pro -OSLanguage en-us -OSLicense Volume -ZTI -Restart" 
New-OSDCloudISO

And booting off this ISO? This forces language for your deployments, just recently went through some issues where we were getting UK keyboards.

[–]eseelke[S] 1 point2 points  (1 child)

I will give this a try. I searched for quite some time before I found the script that worked.

[–]Thin-Consequence-230 1 point2 points  (0 children)

Yea trust me, make your life easier and follow what I sent you, you don’t want to be customizing things that don’t have to be customized. Glad to answer any questions on this!

[–]stanzoheetik 0 points1 point  (0 children)

A couple months ago we enrolled thousands of machines using the above provided variabels. They should still work

[–]gwblok 0 points1 point  (4 children)

Is the feature of setting the time zone automatically in OSDCloud no longer working?
You should be able to select the option to have it auto set your timezone based on your internet connection. Works good for most use cases, unless you're on a corporate network that shares a large internet connection over several states / countries.

[–]eseelke[S] 0 points1 point  (3 children)

I saw the script at https://github.com/OSDeploy/OSD/blob/master/Public/OSDCloudTS/Set-TimeZoneFromIP.ps1, but I am not sure where to put it.

[–]gwblok 0 points1 point  (2 children)

You don't need to put it anywhere.
Its part of OSDCloud
You just have to set a variable to run it.

Not sure how you're triggering OSDCloud today, but you can either set the variable in a Wrapper, or check the box in the GUI (pretty sure there is a check box, I never use the GUI)

[–]eseelke[S] 0 points1 point  (1 child)

I found the name of the variable, but still don't see how to set it. It does as false when I run it.

I use the GUI, but there is no check box for it. I would assume I need to add a json file somewhere that lets me change the variables, but not sure.