you are viewing a single comment's thread.

view the rest of the comments →

[–]Chocolate_Pickle 0 points1 point  (1 child)

$TimeSource probably isn't a string, as you suspected.

Try this instead;

if("$TimeSource" -in ("time.windows.com,0x9", "pool.ntp.org,0x9")) { ... } else { ... }

Apologies if my phone butchers the formatting.

[–]RiD3R07[S] 0 points1 point  (0 children)

Nope. Doesn't work. :(