Link to home
Start Free TrialLog in
Avatar of Ethan Darwin
Ethan Darwin

asked on

Group Policy to execute BCDEDIT

I need to execute the following command on all workstations:
"C:\Windows\system32>bcdedit /set {default} USEPLATFORMCLOCK on"

Ref:
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html-single/Virtualization_Host_Configuration_and_Guest_Installation_Guide/#KVM_guest_timing_management-Using_the_Real_Time_Clock_with_Windows_2008_and_later_guests)

Can this be done via group policy?
Avatar of Ethan Darwin
Ethan Darwin

ASKER

Hi, got myself confused. (a) is solved.

I am unsure of where to start with (b)
Avatar of McKnife
(b)? What b?
Sorry, my post above was relevant to my original question before I edited it. It had two parts and the first I solved myself however the second remains as printed.
ASKER CERTIFIED SOLUTION
Avatar of McKnife
McKnife
Flag of Germany 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
I thought of that but wondered if that would result in it being run every time at startup.

Ideally i only want it run once.
Oh, it takes less than a second to execute.
If you don't want to"wait", go like this
If exist %windir%\admin\bcdedit goto end
Md %windir%\admin\bcdedit
bcdedit /set {default} USEPLATFORMCLOCK on
:end

Open in new window

Thanks, I was not as much concerned with waiting as I was with potential side effects of running the same command multiple times. If it makes no difference to run it daily then the startup batch script will be fine.