Skip to main content
deleted 12 characters in body; edited title
Source Link
Kev
  • 120.1k
  • 53
  • 308
  • 396

restart remote computer with domain credential Using PowerShell credentials without being prompted for a password

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.

restart remote computer with domain credential

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-computer cmdlet and that I can pass credential but if my domain is for instance "mydomain", my username is "myuser" and my password is "mypassword" what's the right syntax to use it?

I need to schedule the reboot so I can't type the password.

Thanks in advance.

Using PowerShell credentials without being prompted for a password

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-Computer cmdlet and that I can pass credential but if my domain is for instance mydomain, my username is myuser and my password is mypassword what's the right syntax to use it?

I need to schedule the reboot so I don't have to type the password.

edited tags
Link
Nicola Cossu
  • 56.7k
  • 15
  • 96
  • 99
Source Link
all eyez on me
  • 1.7k
  • 2
  • 11
  • 5

restart remote computer with domain credential

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-computer cmdlet and that I can pass credential but if my domain is for instance "mydomain", my username is "myuser" and my password is "mypassword" what's the right syntax to use it?

I need to schedule the reboot so I can't type the password.

Thanks in advance.