IT Community - Software Programming, Web Development and Technical Support

Can anybody list out the Ten best Windows Server 2003 command-line functions?

This is a discussion on Can anybody list out the Ten best Windows Server 2003 command-line functions? within the Operating Systems forums, part of the Computer Hardware/Software and Networking category; Can anybody list out the Ten best Windows Server 2003 command-line functions?...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Computer Hardware/Software and Networking > Operating Systems

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-26-2007, 12:08 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Question Can anybody list out the Ten best Windows Server 2003 command-line functions?

Can anybody list out the Ten best Windows Server 2003 command-line functions?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-26-2007, 12:09 AM
oxygen oxygen is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 633
oxygen is on a distinguished road
Default Re: Can anybody list out the Ten best Windows Server 2003 command-line functions?

Hi.. I have listed the ten best ones ...

The Windows command line is a mainstay for systems administrators. Yet, with all of the work I've done looking at add-ons for Windows Server 2003, I've never reported on the most useful command-line functions that are built right into the system. These are useful in multiple contexts: when you need to do quick-and-dirty repair work, or when you want to write a batch script that might be called as a scheduled task or used as part of a larger job.

I've culled several of the most useful and not-always-well-understood commands from the Windows Server 2003 command line, and included links back to Microsoft's own documentation for each. In each case you can always pass the command-line switch to retrieve a list of all the available options for the command.

defrag.: Of course. Instead of slogging through snap-ins in the MMC interface, use defrag from the command line to get a defrag cycle going on one of your server's drives. The command-line defrag tool can be invoked from a batch file, a scheduled task or any number of other contexts, and you get all the same behavior from the command-line version as you do in the snap-in. The only thing missing is the file-by-file fragmentation report

driverquery : exports a handy (and detailed) list of all the available drivers currently installed in the system, along with whether they're kernel- or file-system drivers. The results can also be exported to a CSV for re-use in other applications, and you can poll remotely available systems for their driver manifests as well.

freedisk: checks to see if there's a requested amount of free space on a local or remote drive. There's two nice things about this command. First of all, it uses natural language, so you can, for instance, type freedisk /D d: 50MB to see if there's 50MB of space free on D:. Secondly, it can be used to target any network-available computer, not just the current one, so you can perform batch queries with it quite elegantly.

fsutil : is the equivalent of netsh for file system management. It lets you change behaviors for a given file system, manage the dirty bit on a volume, control hardlinks and reparse points, and tons of other things that you'd normally have to hack around in the Registry (or elsewhere) to get a handle on.

iisback.vbs : One of several IIS-controlling command-line scripts that are installed by default in Windows 2003, this lets you make spot backups of your entire IIS installation's settings, including sites, ports and virtual directories. (However, it won't back up the actual files served up by IIS -- that's your job). The same script can be used to restore a previous IIS installation backup. (Note: You can't use this to back up an IIS installation and move it to another computer; for that, you'll need a third-party product like IIS Export).

iisreset : can be used if IIS ever stops responding, or if you need to do a reset to clear out stale state information. IISRESET can also be used to force a reboot if IIS's services get stuck in an indeterminate state (which, mercifully, doesn't happen often anymore, but if it does, it's nice to have an escape hatch).

inuse : lets you replace locked operating system files on the next reboot. If you need to manually upgrade something the system's got locked for exclusive access and you can't use a third-party unlocker tool to get around it, use this. (Note: Sometimes a file that can't be replaced is not an exclusive lock issue but a usage and ownership issue.)

openfiles : lists all the files opened by network users, and lets you selectively disconnect them if need be. Note: You'll need to use the command to enable a global object list before you can track and disconnect files, and on a system with a lot of remotely opened files, this might slow things down a bit.

winpop : lets you configure and control the POP3 mail server that's now included by default in Windows 2003. It's a nice lightweight way to manage mail if you're not inclined to install Exchange. (Note: This command is not included in Windows 2003 Small Business Server, which doesn't bundle the POP3 component.)
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
a error to run my project contain the MagickNet.dll (Windows server 2003 + ii6.0) risefei ASP and ASP.NET Programming 1 03-27-2008 04:48 PM
Problem in Numeric value in Windows Server 2003 S.Vinothkumar Database Support 4 10-03-2007 02:23 AM
Windows 2003 server Domain Controler problem arjkhanna Server Management 14 08-17-2007 12:12 PM
problem with migrating web server windows 2000 to windows 2003 kingmaker ASP and ASP.NET Programming 1 07-20-2007 03:39 AM
What are the required components of Windows Server 2003 for installing Exchange 2003? karunagaran Server Management 0 07-16-2007 11:21 PM


All times are GMT -7. The time now is 10:04 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0