Link to home
Start Free TrialLog in
Avatar of Edward Crist
Edward CristFlag for United States of America

asked on

Win 10 w32time service disabled

Windows 10 student laptops. Windows Server 2019 AD.

One group of laptops, Dell 5440's, there are several laptops where the date/time is wrong.

The w32time service is disabled on these units.

Can I use a GPO/script of a kind to enable the w32time service??

Thanks!
Avatar of Alex
Alex
Flag of United Kingdom of Great Britain and Northern Ireland image

$Computers = Get-content "C:\Powershell\comps.txt"
ForEach ($computer in $computers) {
	& sc.exe \\$Computer W32Time config start=auto
}

Open in new window



That'll work for any computers in the text file.
Avatar of Edward Crist

ASKER

Cool...but at this point, I don't have a running list of problem units.

A non PS user, could I run that from the GPO script for all units in the OU??
You could try setting registry keys.
From: https://docs.microsoft.com/en-us/windows-server/networking/windows-time-service/windows-time-service-tools-and-settings
Some of the preset values that are configured in the System Administrative template file (System.adm) for the Group Policy object (GPO) settings are different from the corresponding default registry entries. If you plan to use a GPO to configure any Windows Time setting, be sure that you review Preset values for the Windows Time service Group Policy settings are different from the corresponding Windows Time service registry entries in Windows Server 2003. This issue applies to Windows Server 2008 R2 , Windows Server 2008 , Windows Server 2003 R2, and Windows Server 2003.

Many registry entries for the Windows Time service are the same as the Group Policy setting of the same name. The Group Policy settings correspond to the registry entries of the same name located in:

    HKLM\SYSTEM\CurrentControlSet\Services\W32Time\

There are several registry keys at this registry location. The Windows Time settings are stored in values across all of these keys:

    Parameters
    Config
    NtpClient
    NtpServer

Many of the values in the W32Time section of the registry are used internally by W32Time to store information. These values should not be manually changed at any time. Do not modify any of the settings in this section unless you are familiar with the setting and are certain that the new value will work as expected. The following registry entries are located under:

HKLM\SYSTEM\CurrentControlSet\Services\W32Time
The time service being disabled isn't a normal thing. So I'd suggest unless you know why they were disabled, before doing anything in bulk, try and set a few of them individually to make sure nothing else breaks.
Inside computer GPO security settings, you can enforce the service startup type.
ASKER CERTIFIED SOLUTION
Avatar of Edward Crist
Edward Crist
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial