Tag Info

Hot answers tagged


A little known one is getmac It shows the MAC address(es) of your network adapter(s).


In the command prompt type: C:\> start . It opens the current directory in the Windows Explorer.


A list I use a lot: nbtstat - List NetBIOS stats and information netstat - List TCP/IP stats and information ipconfig - List TCP/IP configuration for a system netsh - Network configuration for a system sc - manage services net - whole slew of commands to manage users and groups, shares, connections, etc. ping - makes sure a system is up on the network ...


Keeping the same private key on your root CA allows for all certificates to continue to validate successfully against the new root; all that's required of you is to trust the new root. The certificate signing relationship is based on a signature from the private key; keeping the same private key (and, implicitly, the same public key) while generating a new ...


shutdown.exe allow you to shutdown or reboot a machine. You can even reboot a remote machine with shutdown -m \\server -t 0 -r It even comes with a graphical user interface shutdown -i and you can abort a shutdown with shutdown -a


Robocopy is really useful. It mirrors directories. It is great for backups, restoring, and transferring large amounts of files. It only transfers files which have changed and can resume from where it left off. It comes standard in Windows Vista and later, but Windows XP users can get it as part of the Windows Server 2003 Resource Kit (free) or later.


(Not really a command per-se, but a way to get there.) For those of you that find yourself going to Start > Run > "cmd" a lot, you can cut down some steps. Say you want to get your IP address. You would normally go Start > Run > "cmd" [enter] then... ipconfig [enter] Now instead, go... Start > Run > "cmd /k ipconfig" This will run cmd and the command ...


The forgotten art: DOS String Manipulation! set mydate=%date:~10,4%_%date:~4,2%_%date:~7,2% echo %mydate% Output will be YYYY_MM_DD. Copy and paste this into a .bat file and be amazed! This is especially useful for creating backups, or any time/date series of directories and files. An example: @echo off :: Yes, this looks bad, but it works, it sets ...


tasklist.exe will list processes on local or a remote machine. tasklist.exe /S server It can display which Services the scvhost.exe processes are hosting with tasklist /SVC You can also do some filtering. This will display the processes on a remote machine that have used more than 15 minutes of CPU time tasklist /S server /FI "CPUTIME gt 00:15:00"


I would recommend using a mixture of Debian pre-seeding, where you give the installer a text file that answers all the questions it would ask, and Puppet. THe reason for using the preseeding, rather than FAI is that you don't have to set up an image first and deal with keeping it up to date. You will end up with an install very similar to what you would ...


control userpasswords2 Opens the classic User Accounts dialog:


I find that I use findstr a lot to find stuff in logs, error files, etc. A simple example: in the log file ex0905.log we find all lines that have 2009-05-05 in them: findstr "2009-05-05" ex0905.log


Programs and Features (Formerly known as "Add or Remove Programs") appwiz.cpl Opens


One thing to understand is that most times (and I say most with caution as sometimes, rarely, but sometimes the guys up top do have some tech background) upper management has no idea what you're doing. They're charged with "The Business". You're the grease monkey in the garage that tinkers with the cars that ultimately drive that business. When you take your ...


Sometimes I have to worry about too few free sessions for a Terminal Server connection to a server. quser displays information about user sessions on a terminal server. quser /SERVER:myserver Output C:\Documents and Settings\sysmanager01>quser /SERVER:serverx USERNAME SESSIONNAME ID STATE IDLE TIME LOGON TIME usr_hot1 ...


The main reason to have anti-virus running on linux servers is usually not to protect the server itself - but to protect the end users who use the services / files on the server. Think of the server as a potential virus carrier. In order to protect the server itself you should be looking at proper firewalling and server hardening procedures, and packages ...


I use qwinsta to see disconnected remote desktop sessions and logoff to end them. It works on Windows 2000, Windows XP, Windows Vista, Windows Server 2003 and probably Windows Server 2008 (never tried).


Commercial Products: Atlassian Jira (which ties in nicely with Confluence (the wiki)) - Surprisingly good for commercial software. Open Source: Edgewall Trac - (Wiki, Ticketing, and more) Drupal (+plugin) Best Practical RT - I've heard good things about this, but have never used it myself


Definitely get a whiteboard. You can use it to setup to do lists, draw up configurations to visualize the problem, and much more. It's also good for when you have a group discussing solutions to network problems.


systeminfo Displays a ton of information about the system at hand. The following are what it outputs on Vista: Host Name OS Name OS Version OS Manufacturer OS Configuration OS Build Type Registered Owner Registered Organization Product ID Original Install Date System Boot Time System Manufacturer System Model System Type Processor(s) BIOS Version ...


I'm surprised that there are so many jaded answers here. Here's my $0.02. First, relax. You're in your first more senior gig and have all sorts of new challenges. Second, buy and read Limoncelli's The Practice of System and Network Administration When you start, remember that you're an outsider looking in. That's cool because you're coming with no baggage ...


Very useful one I only found out about recently: winver.exe Gives you a dialog box with the version of Windows the machine is running, complete with Service Pack level and build number.


It sounds like you answer primarily to programmers, so my answers may not apply as directly as they would to a regular Microsoft Office-using Accountant, Marketing or HR rep. Solve problems - 99% of people want their computer problems solved so they can continue doing their job. Solving the problem means actually fixing the specific problem they asked ...


There is still no mention of WMIC.exe :) Find whatever you want from remote machine, local machine... multiple machines. Nicely filled out HTML page with all data related to OS WMIC OS get /all /format:htable Look at all the options available ALIAS - Access to the aliases available on the local system BASEBOARD - Base ...


Regular expressions are now possible in Puppet 0.25, so what you want would be possible: node /^(foo|bar)\.example\.com$/ { include blah }


In my view the less you rely on hosts file entries the better. It is far preferable to use automated systems like DNS. Your con is spot on - it reduces manageability. It also becomes error prone when things change. More than once I've known people to spent considerable time trying to debug what they thought was a DNS issue, only to discover that there was a ...


Chaining commands, in particular net stop and start to restart any service: net stop w3svc && net start w3svc (It is a silly example as iisreset will do that, but anyway ;)

Only top voted, non community-wiki answers of a minimum length are eligible