Hallo, I am Powershell beginner. I need your valuable help with this. I need to be at the startup of the computer.
Restarting OpenVPN ->
So far I have this
$SysInfo = New-Object -ComObject "ADSystemInfo"
Its check for domain connecting.
A computer is "in" the domain whether it's talking to a domain controller or not. It might be better to ping a known IP address, like that of an internal DNS server, to see if you're connected to the private network.
You must be logged in to reply to this topic.