Powershell w32tm command error: Getting AD DC list for default domain...GetDcList failed with error code: 0x80070774 -
i trying run script return w32tm status of host, run this-
$serverlist = @(w32tm /monitor | where-object{$_.startswith(" ntp:") -and !$_.startswith(" ntp: error")})
to list of ntp sources , time offsets
when run domain account works fine, when run local system account error-
getting ad dc list default domain...getdclist failed error code: 0x80070774. exiting error 0x80070774
is there way can around this? don't want change user account script runs under other reasons
w32time /monitor gets information domain controller (pdc).
for same reason, needs domain admin credentials fetch it.
but if wish information locally, should use:
w32tm /query /configuration
hope can understand difference.
Comments
Post a Comment