Showing posts with label Scripting. Show all posts
Showing posts with label Scripting. Show all posts

Saturday, October 13, 2012

How to shutdown, or reboot, a remote Windows Machine


Need to shutdown a remote machine?  The fastest easiest way is to use the Shutdown command from a command prompt to open up the shutdown dialog. 

Use the /i switch to do so:
 
 
When you hit enter the Shutdown dialog will pop open.  Enter in one or more remote machines to shutdown or reboot, select the additional options, and then click ok:
 

 
It is also possible to run these same commands through a bat file or or command prompt without the need for the user interface.  Reference an earlier article I wrote about Shutting Down a Local Machine, or reference the Technet articles below.
 

 



How to shutdown local machine throuh a command prompt

Need to shutdown, or reboot, your pc from a command prompt?  Use the shutdown command!

To Reboot the Machine simply just use the /r switch:
   shutdoown /r

or to shutdown the machine use the /s switch:
   shutdown /s

This command works on all servers Windows 2000 and forward.  It also works for Windows 2000 pc's and newer.

Need more options?  Technet has a few articles that help you to logoff, restart, shutdown, hibernate, specify the reason for the restart or shutdown, etc.


Technet Links
http://technet.microsoft.com/en-us/library/bb491003.aspx
http://technet.microsoft.com/en-us/library/cc732503(v=WS.10).aspx



Friday, October 12, 2012

View Server or PC information for local or remote machine

Ever need to quickly get detailed information about your local Windows PC or Windows Server.  The systeminfo command to the rescue.  With this command you can retrieve local or remote system info in just seconds either manually or programmatically.

Here are the basics:
systeminfo /s [remote server name]
or
systeminfo

This info can be extremely helpful when needing to view or send detailed info to a tech support person.  I have also used it built into a slick tool that pulls down network pc/server details into central database application.

Below is a TechNet article with more details if you need them.

technet article for more details:
http://technet.microsoft.com/en-us/library/bb491007.aspx

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Blog created to serve as a collection of online notes as well as to provide more breadcrumbs for helpful topics that may be difficult to find.