HFX Forum

Network Administration => Tips, Tricks, and How-To's => Topic started by: Uneek on March 13, 2002, 04:31:36 PM

Title: Command Line Administration in Windows
Post by: Uneek on March 13, 2002, 04:31:36 PM
My tip for the week...

When administering Windows remotely, there is also another way besides all those fancy GUI ways of the MS resource kit and MMC... when all else fails, or if you're into simplicity, and also to conserve bandwidth, (all that GUI crap takes a lot of resources), or over a slow connection, fail back to the good ol days of DOS and the command line!

When using Win2k with Netsvc.exe installed, it will allow you to start the telnet service on a remote Win box. Just fire up a Command Prompt and type netsvc telnet \
omputername /start
[/b] (computername being the target machine on your network). From there just telnet to the target workstation, log on and it's just like you're sitting in front of the box in a command shell. Browse directories, run scripts and batch files, check IP settings, use the net use command to schedule jobs, etc... you get the idea. When you're done, don't forget to turn off the telnet service on the remote workstation! netsvc telnet \
omputername /stop
[/b]
Title: Re:Command Line Administration in Windows
Post by: Uneek on March 13, 2002, 04:45:44 PM
Oh yeah.. one more thing... wanna see what else you can do with the netsvc.exe?  Just type netsvc /?[/b]
Title: Re:Command Line Administration in Windows
Post by: wilnix on March 15, 2002, 12:39:23 AM
For years now; net use, netstat, and nbtstat have been my favorite command line tools for NT and beyond...


Wilnix
Title: Re:Command Line Administration in Windows
Post by: Tazinator on March 18, 2002, 08:58:57 PM
Im quite fond of the remote shutdown utility that comes with the Resource kit and net send command myself ;)
Title: Re:Command Line Administration in Windows
Post by: Uneek on March 19, 2002, 01:51:05 PM
Muahahaha!!! I've had tons of fun using the remote shutdown utility as well as the 'at' utility...  ;D

There's nothing funnier than scheduling pinball to autostart repeatedly at 2 minute intervals on someones PC and let them try to figure out if their computer is possessed... hahaha
Title: Re:Command Line Administration in Windows
Post by: Metgod on March 30, 2002, 06:36:26 PM
hahahahaha
I haven't used 'at' in years....
didn't know it was available on Windows.
hahah.
I want this resource kit... even though only this machine will work. I'd love to
disassemble the code and look at it too..
is it on the windows cd or at microsoft.com ?
*too lazy to look at cd*
Title: Re:Command Line Administration in Windows
Post by: wilnix on April 03, 2002, 05:20:39 PM
It's on CD, but you could probably find it online as well. Also, check out Windows Services for Unix. I use those tools quite often.

Wilnix
Title: Re:Command Line Administration in Windows
Post by: Zerored on February 03, 2003, 01:19:41 PM
Hey, does anybody know of a partitioning re-sizing utility (not part magic) in windows 2000 that...well...allows you to repartition your partitions?
Title: Re:Command Line Administration in Windows
Post by: Tazinator on February 06, 2003, 12:15:43 PM
To the best of my knowledge the only thing out there is Partition Magic. Resizing active in-use partitions on a Windows machine is a risky thing to do because even Partition Magic screws up now and then.
Title: Re:Command Line Administration in Windows
Post by: wilnix on February 06, 2003, 01:33:50 PM
There are some other tools out there, but they are even less reliable then Partition Magic. If you have a need for a major change like that, you may want to consider backup, reinstall, restore...

Wilnix
Title: Re:Command Line Administration in Windows
Post by: Metgod on February 06, 2003, 11:51:42 PM
a good point there

playing with devices at a low level can be hazardous. Hazardous is loosely defined, because it could mean a crash or hang, or something more serious.

either way, you always want to be careful when playing with disks. I would say that that is the most important thing there is in a network.

Met

Title: Re:Command Line Administration in Windows
Post by: wilnix on July 06, 2003, 04:31:28 PM
smbdie is always fun too...no msg, no wait time...just BAM! all over...but only on boxes that arent keeping up with sec patches...

wilnix
Title: Re:Command Line Administration in Windows
Post by: Link3 on July 30, 2006, 08:50:16 AM
i ve heard that the unix tool "fdisk" is more reliable than partition magic.. is that true ?
Title: Re:Command Line Administration in Windows
Post by: Metgod on July 30, 2006, 05:38:45 PM
I'd say that largely depends on what you're looking for.

If I remember right, both fdisk (unix/linux and dos) only create and destroy partitions (and similar such things). Partition magic allows you to resize a partition without destroying it (since generally if you rewrite the partition table, data is destroyed).

At least that's how I remember it being... I'd love to hear if fdisk did something similar, but as far as I can tell, it does not (I"ve never used it for that anyway). Of course, there are such technologies as LVM which is quite a nice thing if you ask me. (google for it if you don't know what it is, don't have energy or time to explain).

*goes back to his slumber*
Title: Re:Command Line Administration in Windows
Post by: benthehutt on July 31, 2006, 10:12:04 AM
Yeah, metty's right, fdisk has less features, it can only create and delete and it wipes the whole thing.  Partition magic is gross though, I don't really like it just cause it's a gawdy GUI.  It can do a heckofalot more though.
Title: Re:Command Line Administration in Windows
Post by: GegoTheWizard on August 16, 2006, 10:07:21 AM
Nice Information guys
would any body just help me to download this resource kit or just give me a link for some tools
thanks in advance ;)
Title: Re:Command Line Administration in Windows
Post by: benthehutt on August 16, 2006, 10:43:26 AM
It depends on which OS you're running, microsoft has ones released for 98 (don't get this one), 2000, XP, and server 2003.  There are other ones too, for IIS and stuff, but try going to:

http://www.microsoft.com/windows/reskits/default.asp

and clicking on whichever one you want.  They're incredibly helpful and powerful.
Title: Re:Command Line Administration in Windows
Post by: Link3 on August 30, 2006, 11:31:14 AM
thank you guys.

LVM is pretty interesting, and the fact is that i had never heard of it.

maybe i will patch my kernel soon :)