December 16, 2018, 01:57:23 PM

Author Topic: Command Line Administration in Windows  (Read 26548 times)

0 Members and 1 Guest are viewing this topic.

Offline Uneek

  • Administrator
  • Seasoned Poster
  • *****
  • Posts: 306
  • Country:
  • Gender: Male
    • HFX International Org.
Command Line Administration in Windows
« 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]
« Last Edit: March 13, 2002, 04:32:50 PM by Uneek »
*** Sleep: A completely inadequate substitute for caffeine. ***
01010010010101000100011001001101

Offline Uneek

  • Administrator
  • Seasoned Poster
  • *****
  • Posts: 306
  • Country:
  • Gender: Male
    • HFX International Org.
Re:Command Line Administration in Windows
« Reply #1 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]
*** Sleep: A completely inadequate substitute for caffeine. ***
01010010010101000100011001001101

Offline wilnix

  • mv user /dev/null
  • Administrator
  • Forum Hero
  • *****
  • Posts: 690
  • Country:
  • Gender: Male
  • You're not the fastest packet in the subnet...
    • Wilnix - The NetAdmin's Resource
Re:Command Line Administration in Windows
« Reply #2 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
alt email address: wilnix@hackphreak.org

Offline Tazinator

  • BOFH
  • Administrator
  • Forum Hero
  • *****
  • Posts: 524
  • Country: us
  • Kermit 0wnz j00!
    • https://keybase.io/portabletaz
Re:Command Line Administration in Windows
« Reply #3 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 ;)
"A well known hacker is a good hacker, an unknown hacker is a great hacker..."

I don't care what your parents told you, you aren't special.

Offline Uneek

  • Administrator
  • Seasoned Poster
  • *****
  • Posts: 306
  • Country:
  • Gender: Male
    • HFX International Org.
Re:Command Line Administration in Windows
« Reply #4 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
*** Sleep: A completely inadequate substitute for caffeine. ***
01010010010101000100011001001101

Offline Metgod

  • the deranged hacker
  • Administrator
  • Forum Hero
  • *****
  • Posts: 1116
  • Country:
  • Gender: Male
Re:Command Line Administration in Windows
« Reply #5 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*
"My Terminal is my Soul"

Offline wilnix

  • mv user /dev/null
  • Administrator
  • Forum Hero
  • *****
  • Posts: 690
  • Country:
  • Gender: Male
  • You're not the fastest packet in the subnet...
    • Wilnix - The NetAdmin's Resource
Re:Command Line Administration in Windows
« Reply #6 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
alt email address: wilnix@hackphreak.org

Zerored

  • Guest
Re:Command Line Administration in Windows
« Reply #7 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?

Offline Tazinator

  • BOFH
  • Administrator
  • Forum Hero
  • *****
  • Posts: 524
  • Country: us
  • Kermit 0wnz j00!
    • https://keybase.io/portabletaz
Re:Command Line Administration in Windows
« Reply #8 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.
"A well known hacker is a good hacker, an unknown hacker is a great hacker..."

I don't care what your parents told you, you aren't special.

Offline wilnix

  • mv user /dev/null
  • Administrator
  • Forum Hero
  • *****
  • Posts: 690
  • Country:
  • Gender: Male
  • You're not the fastest packet in the subnet...
    • Wilnix - The NetAdmin's Resource
Re:Command Line Administration in Windows
« Reply #9 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
alt email address: wilnix@hackphreak.org

Offline Metgod

  • the deranged hacker
  • Administrator
  • Forum Hero
  • *****
  • Posts: 1116
  • Country:
  • Gender: Male
Re:Command Line Administration in Windows
« Reply #10 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

"My Terminal is my Soul"

Offline wilnix

  • mv user /dev/null
  • Administrator
  • Forum Hero
  • *****
  • Posts: 690
  • Country:
  • Gender: Male
  • You're not the fastest packet in the subnet...
    • Wilnix - The NetAdmin's Resource
Re:Command Line Administration in Windows
« Reply #11 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
alt email address: wilnix@hackphreak.org

Link3

  • Guest
Re:Command Line Administration in Windows
« Reply #12 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 ?

Offline Metgod

  • the deranged hacker
  • Administrator
  • Forum Hero
  • *****
  • Posts: 1116
  • Country:
  • Gender: Male
Re:Command Line Administration in Windows
« Reply #13 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*
"My Terminal is my Soul"

Offline benthehutt

  • Global Moderator
  • Seasoned Poster
  • *****
  • Posts: 368
  • Country:
  • "Drugs? You'd better not be!" - my mom
    • Echelon9
Re:Command Line Administration in Windows
« Reply #14 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.
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.