Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
2 ratings:
 5 out of 5     Rate this Document

Shutting Down a Remote Windows XP System

Primary Software: LabVIEW Development Systems>>LabVIEW Professional Development System
Primary Software Version: 7.1.1
Primary Software Fixed Version: N/A
Secondary Software: N/A
Hardware: PXI/CompactPCI>>Controllers

Problem:
I have a computer or PXI system running Windows XP.  How can I shut it down remotely?

Solution:
To shut down a remote Windows XP system manually, you can login to the machine using Windows XP's built-in Remote Desktop Connection software and press Ctrl + Alt + End to access the shutdown menu. For more information about setting up your remote system to be accessible via Remote Desktop Connection, refer to KnowledgeBase 2Y5FNQOK: How Can I Use XP Remote Desktop to Control My PXI System with a Laptop?

To programmatically shut down a Windows XP system using LabVIEW, you can execute the system shutdown command using the System Exec.vi. This procedure is demonstrated in the example program Programmatically Shutting Down Windows XP.

To programmatically shut down multiple remote Windows XP systems, you can use VI Server to run a VI on the remote machine that will shut it down. The attached vi, RemoteShutdown.vi, demonstrates this procedure.

To remotely shut down a machine running Windows XP:
  • Download Shutdown_Computer.vi from the example program Programmatically Shutting Down Windows XP and place it at a known location on your remote machine.
  • Select Tools » Options...  from the LabVIEW pull-down menu, select the VI-Server: Configuration category, and enable TCP/IP for VI Server.
  • While still in the Options dialog box, select the VI Server: TCP/IP Access category and give TCP/IP access to the local machine by adding its IP address to the Access List.
  • Now download and open RemoteShutdown.vi, attached below.  Enter the IP address of the remote machine and the location of Shutdown_Computer.vi into the controls on the front panel.
  • Run RemoteShutdown.vi and the remote machine will shut down.  The same procedure can be used to shut down multiple machines by calling Shutdown_Computer.vi on each machine.
NOTE: For more information about VI Server refer to KnowledgeBase DIRECT-3S8STK: How Do I Configure and Use the VI Server?


Related Links:
Example Program: Programmatically Shutting Down Windows XP
KnowledgeBase [2Y5FNQOK]: How Can I Use XP Remote Desktop to Control My PXI System with a Laptop?
KnowledgeBase [DIRECT-3S8STK]: How Do I Configure and Use the VI Server?

Attachments:



RemoteShutdown.vi


Report Date: 12/01/2004
Last Updated: 09/05/2007
Document ID: 3G0CI7PS

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit