mjm21
asked on
Script that would show the time on all Domain Controllers in active directory
Script that would show the time on all Domain Controllers in active directory
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Excellent! Tried the VBscript and worked like a charm.
this is powershell script..
Function Get-NTPSource{
Param(
[Parameter(ValueFromPipeli
[Alias('Name')]
[string[]]$Computername=$E
)
Process
{
foreach ($Computer in $Computername)
{
$ntps = w32tm /query /computer:$Computer /source
new-object psobject -property @{
Name = $Computer
NTPSource = $ntps
}
}
}
}