I'd like to restart a remote computer that belongs to a domain. I have an administrator account but I don't know how to use it from powershell.
I know that there is a restart-computerRestart-Computer cmdlet and that I can pass credential but if my domain is for instance "mydomain"mydomain, my username is "myuser"myuser and my password is "mypassword"mypassword what's the right syntax to use it?
I need to schedule the reboot so I can'tdon't have to type the password.
Thanks in advance.