ansitest/proxmox/proxmox-win10-vm-sync-time.sh
2024-03-02 12:15:00 -07:00

12 lines
229 B
Bash

#!/bin/bash
# arg1 = vmid
echo "$(date) - syncing time on Win VM $1"
set -x
qm guest exec $1 w32tm /resync
set +x
date
# REF: https://windowsloop.com/windows-time-sync-command/
# REF: https://pve.proxmox.com/pve-docs/qm.1.html