If you've ever wanted to remotely shutdown a Windows box from your Linux machine, there is a quick and easy command to use.
What You Need??
In order to actually use this command, you'll need to make sure that you have the samba-common package installed on your linux machine.
The Command!!
net rpc shutdown -I IPADDRESS -U USERNAME%PASSWORD
Things To Remember!!
1. Making sure to use a username that has administrative privileges on the Windows box.
2. If you omit the password section, you'll be prompted on the command line for the password.
which might be more secure if you are worried about somebody looking through your terminal history.
3.You can add the -f parameter to force a shutdown.
4.You can use the -r parameter intead of -i to reboot windows.
6.You can add -t 01 parameter for fast (01 seconds) shutdown or reboot.
What You Need??
In order to actually use this command, you'll need to make sure that you have the samba-common package installed on your linux machine.
The Command!!
net rpc shutdown -I IPADDRESS -U USERNAME%PASSWORD
Things To Remember!!
1. Making sure to use a username that has administrative privileges on the Windows box.
2. If you omit the password section, you'll be prompted on the command line for the password.
which might be more secure if you are worried about somebody looking through your terminal history.
3.You can add the -f parameter to force a shutdown.
4.You can use the -r parameter intead of -i to reboot windows.
6.You can add -t 01 parameter for fast (01 seconds) shutdown or reboot.
0 comments:
Post a Comment