Skip to main content

Hi all!
New to the scene. This seems like an incredible support group. I've just proposed Jamf - we'll see how that goes. Anyway:



The time server was manually set on systems in the environment I inherited. I have to correct it because the specific server the hosts were set to, is going to be decommissioned. I'd rather point it to the domain and it will find the NTP server just fine



I know to update the time server:



/usr/sbin/systemsetup -setnetworktimeserver domain.com
/user/sbin/systemsetup -setusingnetworktime on



Seems to set the NTP server correctly and it does adjust the time on a remote system - however, I've seen it doesn't check the box stating "Set date and time automatically"



Can I assume that it will remain despite the fact the GUI doesn't have the pretty checkmark?

@maximilian.heyne what are the popups that you are getting?


@DBrowning in Outlook for example i get "Do you want to update the local time zone". I set the policy to once per user per computer as the option is set after this, so the user only gets the pop up once.


Hello everybody,



does someone have a script which also works under Big Sur? The @DBrowning script no longer works properly. The System Integrity Protection blocks here. I get the following error message:



Script result: Network Time is already off.
Set TimeZone: Europe/Berlin
setNetworkTimeServer: time.apple.com
/System/Library/LaunchDaemons/com.apple.locationd.plist: Operation not permitted while System Integrity Protection is engaged
Unload failed: 150: Operation not permitted while System Integrity Protection is engaged
/System/Library/LaunchDaemons/com.apple.locationd.plist: service already loaded
Load failed: 37: Operation already in progress
setUsingNetworkTime: On
Time Zone: Europe/Berlin
Network Time Server: time.apple.com


I have a "macOS Time" manifest on GitHub that will let you set a time server using a configuration profile. You can add multiple time servers in the format time.apple.com.,pool.ntp.org. (each server ending with a period and separated by a comma).



You'll find the manifest here: https://github.com/Jamf-Custom-Profile-Schemas/jamf-manifests



And instructions here: https://github.com/Jamf-Custom-Profile-Schemas/jamf-manifests/wiki


I have a "macOS Time" manifest on GitHub that will let you set a time server using a configuration profile. You can add multiple time servers in the format time.apple.com.,pool.ntp.org. (each server ending with a period and separated by a comma).



You'll find the manifest here: https://github.com/Jamf-Custom-Profile-Schemas/jamf-manifests



And instructions here: https://github.com/Jamf-Custom-Profile-Schemas/jamf-manifests/wiki



Thanks for getting me started, but even after creating the profile and scoping to a machine (testing on 10.14), I can see the profile is applied, but the box for "set date and time automatically" is not checked. And of course, the time and time zone are therefore not corrected. Is this an attribute that needs to be added?