NilsC
Mar 24 2005, 05:09 AM
This is a copy of a tutorial I created for astahost.com. I'm copying it here as a courtesy to trap17 members.  QUOTE How to shutdown a XP Pro computer when you are connected using RDC (Remote Desktop Connection) using a batch file or RPC (Remote Procedure Command) This is useful if you can't get to the computer but have remote access to the computer via a network or the internet. First To show you what you will see at a command prompt (command.com) when you type: "shutdown /?" Without the " " on each end.  CODE c:\>shutdown /? Usage: SHUTDOWN [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c "c omment"] [-d up:xx:yy]
No args Display this message (same as -?) -i Display GUI interface, must be the first option -l Log off (cannot be used with -m option) -s Shutdown the computer -r Shutdown and restart the computer -a Abort a system shutdown -m \\computername Remote computer to shutdown/restart/abort -t xx Set timeout for shutdown to xx seconds -c "comment" Shutdown comment (maximum of 127 characters) -f Forces running applications to close without warning -d [u][p]:xx:yy The reason code for the shutdown u is the user code p is a planned shutdown code xx is the major reason code (positive integer less than 256) yy is the minor reason code (positive integer less than 65536) This is an undocumented feature in XP so I have not found any writeup about it on M$ and everything used here is from other sources. Do not use "cmd" to start the command interpreter (cmd.exe), but type "command" for (command.com. Now you can shutdown the computer by typing "shutdown -s" or to restart the computer type "shutdown -r" To create a batch file for this you can use notepad, and save the file as .bat in c:\ (root directory) Here are the 3 most used batch files for shutdown: 1 save as down.bat CODE shutdown -s 2 save as restart.bat CODE shutdown -r 3 save as forcedown.bat CODE shutdown -f 4 save as logoff.bat CODE shutdown -l 5 save as rpcdown.bat (replace computername with the name of your computer  ) CODE shutdown -s -m \\computername and this last one is fun in an enviroment using RPC  So that's a piece of cake, the other options are self explanatory and if you need any help creating the batch file, ask and someone will help  Nils This is from astahost tutorial I made http://www.astahost.com/index.php?showtopic=3715&Nils
Reply
Recent Queries:--
restart computer batch file - 0.44 hr back. (1)
-
how to write a javascript shutdown file - 3.76 hr back. (2)
-
making shutdown batch file - 4.80 hr back. (1)
-
javascript log off shut down - 21.83 hr back. (1)
-
system restart code using javascript - 28.70 hr back. (1)
-
display message at logoff xp - 33.04 hr back. (1)
-
batch file reboot computer - 39.32 hr back. (1)
-
using the remote desktop client from the command prompt batch - 41.89 hr back. (1)
-
logoff windows user from php webpage - 42.69 hr back. (1)
-
logoff windows user using php and shutdown - 42.72 hr back. (1)
-
batch "shut down" xp - 45.07 hr back. (1)
-
batch file to restart computer - 46.12 hr back. (1)
Similar Topics
Keywords : shut, restart, log, xp, batch, file, undocumented, feature, xp
- Debug Exe Files
How to debug an exe file. (4)
Make A Moderately-secure Password System Using Javascript
using file redirection to hide the password. (4) JavaScript is very handy at making forms, allowing for much more customization and easier ways to
send data. So making Login forms using JavaScript may seem to many to be a very feasable idea.
However, JavaScript is very bad at protecting Passwords, as since the passwords are not encypted and
the whole JavaScript code is in the page, a person could just view the Page Source and find out
everything. Even if you use an external JavaScript, it would still be poor as the file name for the
external JavaScript would still be revealed. But I have an answer! There is a rela....
Install An Aef Forum Onto The Trap17
From a zip file (11) Installing an AEF Forum on the Trap17 Server Preparation for Installing the AEF Forum
The following items are required for the installation of the packaage onto your site: 1. - a copy
of the AEF Forum zip package from http://anelectron.com/download.php 2. - a MySql Database 3. - a
Database User 4. - a password for the Database User 5. - Privileges allowed for the Database User
The details for ensuring that you have all of these items are as follows: 1. - a copy of the AEF
Forum zip package from http://anelectron.com/download.php . Simply browse to t....
How To Make A Simple File Based Shoutbox Using Php And Html
(8) A simple tut to make a simple shoutbox. Let me jump right in. First of all you need the standard
equipment for PHP, an IDE like XAMPP and an editor like PHP EDITOR 2OO7. Were going to make a
simple guestbook using three files, webpage.php, shout.php and shout.txt. Webpage.php can be
changed to whatver you want, it will be the page on which the guestbok is shown, you could even use
this code and add it to another php page n your site. Shout.php is the proccessing page and
shout.txt is where the shouts are stored. Firstly we need to make the visual design of the box.....
Flat-file Cms
tutorial inspired by jlhaslip (4) Ok, for this tutorial i am only going to show you how to add updates to your site simply by storing
the information into a text file, and then displaying it with predefined formatting... OK lets get
down to business... Lets start out by making a PHP file and call it mycms.php put this code at
the top of the page. What this will do is allow us to edit the selected update when it comes time
and show and hide the add an update field and validate the form.. <script
language="javascript"> function ShowHide(id1, id2) { if (id1 != '') expMenu(id1)....
*nix File Permissions - An Overview
(6) I was originally going to post this in a reply, but felt it would deviate from the topic.
Here's a brief overview of the three numbers in a permission "code": -The first number is for
the owner of the file. If you set a file at 600, the owner will have read and write access and
everyone else is locked out. -The second number is for the users group (users are placed into groups
to get special rights sometimes). Generally you will not give write access to a user's group.
-The third number is for the rest of the world, including web users. Setting any value that wi....
Starting Or Stopping Apache And Mysql Server Via Batch File
(0) Hi guys, this is a litte tutorial about how we start and stop the Apache and MySQL in Windows NT
(2000, XP, 2003) via a batch file script. As we know in Windows NT based system Apache and MySQL
installed as Windows Services. So we can stop and start it using NET command. For more information
about DOS command, type HELP at command prompt. I assuming that your MySQL service name is "mysql"
and your Apache (Apache 2.0.x) service name is "apache2". If you want to chek it click Start > Run >
services.msc > OK. Windows IS NOT Case Sensitive. Let's get started!. 1. ....
How To Fix Codecs And Movie File Problems
...a short but very useful tutorial (0) How to Fix Codecs and Movie File Problems For all of you who are having trouble with
codecs, either not being able to play a movie you've downloaded or not having any
sound/picture, this guide should help you. The Easy Quick-Fix Method For the lazy people
amoung you who want the simplest possible solution, may I present Video LAN Player (VLC) ,
it's a good video/audio player and comes with all the codecs you will need and has many
features making it my player of choice. The (New) Other Method The Combined Community Codec
Pack (C....
The Many Ways To Bypas File Hosting Annoyances
(5) I've done a lot of research on this subject because it is much more common for people to upload
files using file hosting services such as megaupload and rapidshare. They continue to try to push on
their premium accounts on to the daily users who don't really want to put up any money for
downloading which should be free.So i've compiled a few techniques I've used to bypass the
limits of free downloading accounts and leave you feeling just as content with yourself as if you
had a premium account. Download Managers: Now with the prominent use of file hosts ....
Unencrypted But Invisible File Storage
It can have a password, it can be unlocked. (0) This method works, but unfortunately compression software can open the file without the password.
Also, you can try creating a new user account. When it asks "Make files and folders private?" click
Yes, make private. Name the new user account anything using NO spaces/uppercase letters, but not
something like "privatefiles" or something like that. Try accessing the files in C:\Documents
and Settings\ >. You cannot open the folder. Now to ensure that user is always hidden in My
Computer, click Start > Run. 1. Type in command.com . This should bring up a blac....
Using A Secure File Transfer Client
A discussion of FTP, FTPS, SCP, and SFTP (0) Using a Secure File Transfer Client Almost everyone who creates a web site is faced with
the problem of getting their files from their local computer to their web server. There are a few
different protocols (methods) through which to accomplish this, and some have definite advantages
over others. Here are the major ones, listed loosely in order of increasing security. Note: All
of the programs recommended in this tutorial are for Windows only. Command line alternatives are
accessible via the terminal for both Linux and OS X. FTP First a note on using ....
How To: Make A Simple Php Site
Making one file show up on all pages using php (21) I have looked all over the site and could not find anything that was like this simple, or just like
this at all.. For some people i know that you are using a basic HTML site...and having a big menu
if you want to add somthing you have to go into every one of the pages and add or remove or edit
what you want to do, but with somthing verry simple all you would have to do is edit one file, and
all of the pages that have the PHP script on them would suddenly change to what that one file is.
So to start off if you are planning on using this little tirck, the page that you a....
Transfer File Of Any Size Using Winsock Control
Winsock Help (5) This tutorial shows how to transfer file of any size using winsock control. - Open VB; - Select
standard exe; - Press Ctrl + t to show the add component window; - Select winsock control and
microsoft common dialog; - Add one winsock control in the project; - Name it winsock1; - If you want
to add chat then add another winsock and name it winsock2; - Insert another winsock object if you
want to add chat also; - Add a microsoft common dialog box; - Name it cd; - We will use this
winsock1 object to transfer the file and winsock2 for chat; ------------- The basic idea : ....
Networking Tutorial: File And Printer Sharing
A basic computer networking tutorial (0) Network Setup: Newbie Install Click start, then right click computer Ensure that the full
computer name is memorable and that each machine is on the same workgroup. After you've done
this, you are ready to configure advanced features, such as file and printer sharing. Adding a
Printer Locally Firstly, you need to configure your printer (on the machine which is
directly connected to the printer) for printer sharing. Click start, control panel,
printers/scanners, then right click on your local printer and click 'properties'. Browse to
the shari....
How To: Change Your Website's Index File
a simple trick using .htaccess (18) How To: Change Your Website's Index File a simple trick using the .htaccess file A simple
tutorial which only involves editing one little file. Useful for those of us who have mime-typed
extensions or who are creating lots of test design files and want an easy way to make the design
they like best their default file. Create a file called .htaccess in the /public_html/ folder if
you don't have it. I think one should be there already when you get your site so if it isn't
you should create it anyway! In the file write the following: CODE Di....
Looking for shut, restart, log, xp, batch, file, undocumented, feature, xp
|
|
Searching Video's for shut, restart, log, xp, batch, file, undocumented, feature, xp
|
advertisement
|
|