Bloomberg Linux Microsoft News Operating System OS Video Win 7 Win7 Windows Windows 7 Windows7

Microsoft Windows 7 OS Takes Off

High hopes for Microsoft’s latest operating system platform, Windows 7. Components communities keep their fingers crossed. (The Trade)

This Bloomberg video brought to you by News Distribution Network.

Bloomberg Linux Microsoft News Operating System OS Video Win 7 Win7 Windows Windows 7 Windows7

Microsoft Windows 7 OS Faces Piracy

Microsoft feels strongly about piracy, especially in China, and faces this problem head on. (The Trade)

This Bloomberg video brought to you by News Distribution Network.

Bloomberg Linux Microsoft News Operating System OS Video Win 7 Win7 Windows Windows 7 Windows7

Windows 7 Global Launch

Windows 7, Microsoft’s newest operating system goes on sale around the world. (Bloomberg News)

This Bloomberg video brought to you by News Distribution Network.

Bloomberg Linux Microsoft News Operating System OS Video Win 7 Win7 Windows Windows 7 Windows7

Microsoft Launches Retail Store

Microsoft takes a new financial risk by getting into retail despite the economy. (The Trade)

This Bloomberg video brought to you by News Distribution Network.

CLI Command Line Linux Time Timezone Win 7 Win7 Windows Windows 7 Windows7

Windows 7 (and Windows 2008) Command Line Utility to Change Time Zone

Here is a great hidden command line utility which is available starting in Windows 7, “tzutil.exe,” which can be used to view or change the computer’s Time Zone. To use this command:

1. Open the Command Prompt.
2. Enter any of following commands:

tzutil /g (To view current time zone)
tzutil /l (To get a list of all available time zones)
tzutil /s time_zone_ID (To change time zone)

time_zone_ID is the new time zone you want to set. Fox example, if you want to set the time zone to “Eastern Standard Time”, then the command would be:

tzutil /s “Eastern Standard Time”

See also Set Time Zone From Command Line in Windows 2003, XP and 2000

CLI Command Line Time Win 7 Win7 Windows Windows 7 Windows7

Windows 7 Command Line Utility for Timezone Management – tzutil.exe

tzutil.exe” is a command line utility introduced in Windows Vista (also in Windows 7 and Windows 2008) which can be used to change Time Zone or to view the current time zone information. To use this command (from a command prompt as administrator):

tzutil /g – To view current time zone
tzutil /l – To get a list of all available time zones
tzutil /s <time_zone_ID> – To change time zone

time_zone_ID is the new time zone which you want to set. For example, if you want to set the time zone to Eastern, Central, Mountain or Pacific Daylight Time, you would use any of the following:

tzutil /s "Eastern Daylight Time"
tzutil /s "Central Daylight Time"
tzutil /s "Mountain Daylight Time"
tzutil /s "Pacific Daylight Time"

Windows change timezone command.

Bootable Flash Drive Install Linux USB Win 7 Win7 Windows Windows 7 Windows Vista Windows7

Creating Bootable Vista / Windows 7 USB Flash Drive

This will walk through the steps to create a bootable USB flash drive. These instructions assume that you are running Windows Vista or Windows 7.


  • USB Flash Drive
  • Microsoft OS Disk (Vista / Windows 7)
  • A computer running Vista / Windows 7

Step 1: Format the Drive
Warning: This will erase everything on your USB drive.

  1. Open a command prompt as administrator (Right click on Start > All Programs > Accessories > Command Prompt and select “Run as administrator” – you must do this or it may not work, displaying the message: “Could not map drive partitions to the associated volume device objects”
  2. Find the drive number of your USB Drive by typing the following into the Command Prompt window:
    – diskpart
    – list disk
    The number of your USB drive will listed. You’ll need this for the next step. I’ll assume that the USB flash drive is disk 1.
  3. Format the drive by typing the next instructions into the same window. Replace the number “1” with the number of your disk below.
    – select disk 1
    – clean
    – create partition primary
    – select partition 1
    – active
    – format fs=NTFS
    – assign
    – exit
    When that is done you’ll have a formatted USB flash drive ready to be made bootable.

Step 2: Make the Drive Bootable
Next we’ll use the bootsect utility that comes on the Vista or Windows 7 disk to make the flash drive bootable. In the same command window that you were using in Step 1:

  1. Insert your Windows Vista / 7 DVD into your drive.
  2. Change directory to the DVD’s boot directory where bootsect lives:
    – d:
    – cd d:boot
  3. Use bootsect to set the USB as a bootable NTFS drive prepared for a Vista/7 image. I’m assuming that your USB flash drive has been labeled disk G: by the computer:
    – bootsect /nt60 g:

Step 3: Set your BIOS to boot from USB
This is where you’re on your own since every computer is different. Most BIOS’s allow you to hit a key at boot and select a boot option.

CLI Command Line Linux Reboot Restart Scheduled Tasks Win 7 Win7 Windows Windows 7 Windows Vista Windows7 XP

Schedule Windows reboot (restart) from command line with schtasks

Schedule one-time reboot:

schtasks /create /tn “Reboot” /tr “shutdown /r /t 1” /sc once /st 01:00:00 /sd 08/18/2009 /ru “System”

Create scheduled task to run twice daily:

schtasks /create /tn “TTF” /tr “C:TempTttf.bat” /sc daily /st 06:00:00 /sd 08/25/2009 /ri 720 /du 720 /ru “System”

Create scheduled task to run every weekday, M-F:

schtasks /create /tn “Reboot” /tr “shutdown /r /t 1” /sc WEEKLY /d “MON, TUE, WED, THU, FRI” /st 01:00:00 /sd 08/18/2009 /ru “System”

To update an existing scheduled task run the same command as above with any desired modifications. You will be prompted with, “WARNING: The task name “Reboot” already exists. Do you want to replace it (Y/N)?”

Upon successful creation the OS will report, “SUCCESS: The scheduled task “Reboot” has successfully been created.”

You can also update an existing scheduled task from the Windows command line:

schtasks /change /tn “Reboot” /st 04:00:00 /sd 12/11/2009

Schtasks supports the following options
SCHTASKS /Change [/S system [/U username [/P [password]]]] /TN taskname
     { [/RU runasuser] [/RP runaspassword] [/TR taskrun] [/ST starttime]
       [/RI interval] [ {/ET endtime | /DU duration} [/K] ]
       [/SD startdate] [/ED enddate] [/ENABLE | /DISABLE] [/IT] [/Z] }

    Changes the program to run, or user account and password used
    by a scheduled task.

Parameter List:
    /S       system      Specifies the remote system to connect to.

    /U       username    Specifies the user context under which schtasks.exe
                         should execute.

    /P       [password]  Specifies the password for the given user context.
                         Prompts for input if omitted.

    /TN      taskname    Specifies which scheduled task to change.

    /RU      username    Changes the user name (user context) under which the
                         scheduled task has to run. For the system account,
                         valid values are “”, “NT AUTHORITYSYSTEM” or “SYSTEM”.
                         For v2 tasks, “NT AUTHORITYLOCALSERVICE” and
                         “NT AUTHORITYNETWORKSERVICE” are also available as well
                         as the well known SIDs for all three.
    /RP      password    Specifies a new password for the existing user
                         context or the password for a new user account.
                         This password is ignored for the system account.

    /TR      taskrun     Specifies the new program that the
                         scheduled task will run.

    /ST      starttime   Specifies the start time to run the task. The time
                         format is HH:mm (24 hour time) for example, 14:30
                         for 2:30 PM.

    /RI      interval    Specifies the repetition interval in
                         minutes. Valid range: 1 – 599940 minutes.

    /ET      endtime     Specifies the end time to run the task. The time
                         format is HH:mm (24 hour time) for example, 14:50
                         for 2:50 PM.

    /DU      duration    Specifies the duration to run the task. The time
                         format is HH:mm. This is not applicable with /ET.

    /K                   Terminates the task at the endtime or duration time.

    /SD      startdate   Specifies the first date on which the task runs.
                         The format is mm/dd/yyyy.

    /ED      enddate     Specifies the last date when the task should run.
                         The format is mm/dd/yyyy.

    /IT                  Enables the task to run interactively only if the
                         /RU user is currently logged on at the time the job
                         runs. This task runs only if the user is logged in.

    /RL      level       Sets the Run Level for the job. Valid values are
                         LIMITED and HIGHEST. The default is to not change it.

    /ENABLE              Enables the scheduled task.

    /DISABLE             Disables the scheduled task.

    /Z                   Marks the task for deletion after its final run.

    /DELAY   delaytime   Specifies the wait time to delay the running of the
                         task after the trigger is fired.  The time format is
                         mmmm:ss.  This option is only valid for schedule types
                         ONSTART, ONLOGON, ONEVENT.

    /?                   Displays this help message.

Schtasks Examples:
    SCHTASKS /Change /RP password /TN "Backup and Restore"
    SCHTASKS /Change /TR restore.exe /TN "Start Restore"
    SCHTASKS /Change /S system /U user /P password /RU newuser /TN "Start Backup" /IT

Linux MSConfig Win 7 Win7 Windows Windows 7 Windows Vista Windows7

Set up your laptop for work: Turn off the crap

When it comes to setting up your work laptop, I suggest that you should only care about speed and efficiency. This means that your computer should be (a) booting up quickly, and (b) running smoothly (without crashes).

The key to a quick startup is minimising the number of programs that run automatically when you bootup Windows. Click the Start button, then Run, and type msconfig. Click on the Startup tab and deselect all of the programs that you do not want to run automatically. For more detailed advice, I refer you to the excellent Make XP Boot Faster from Wikihow.

In order to keep your computer running smoothly you should turn off all of the useless services that run by default in Windows XP. I recommend that you read A Guide To Turning Off Useless XP Services by JasonN and make the necessary changes. If in the future MARCS students begin using Windows Vista *shudder* then I recommend you find a similar guide for turning off all of the useless crap in Vista.

CLI Command Line Grep Linux Win 7 Win7 Windows Windows 2000 Windows 7 Windows Vista Windows7

Windows Command Line Tricks

Here are a few Windows command line tricks that might make your life easier.

Save A List of Files to a Text File by Extension

dir *.ext /s /b > files.txt

This command line will create a file called files.txt. When you open this file, there will be a complete list of all the files in that directory and all subdirectories with the .ext extension. You can then open up this text file in any text editor and work this the information.By changing the ext part, you can select different files. For example, if you wanted to list all of the PDF documents, you would type:

dir *.pdf /s /b > files.txt

Get Your IP Address Information

ipconfig /all

This will retrieve a pile of information about your network connection and IP information. From this command, you can get:

* Host Name
* Primary DNS Suffix
* Node Type
* IP Routing Enabled
* WINS Proxy Enabled
* DNS Suffix Search List
* Connection-specific DNS Suffix
* Network Adapter Description
* Physical (MAC) Address
* DHCP Enabled
* IP Address
* Subnet Mask
* Default Gateway
* DNS Servers

Get Installed Driver Information


It can be very useful when troubleshooting to know what drivers are installed on a system. This command will give you a complete listing of the drivers and when they were installed.

Find Files Opened By Network Users

openfiles /query

If you are running a system and you want to know who has files open on your computer, this command will provide you a list of those users and the files that they have open.

Note: If you get an error saying The system global flag ‘maintain objects list’ needs to be enabled to see local opened files, you can fix this issue by typing openfiles /local on. You will have to reboot the system but it will resolve the issue.

Monitor Port Activity

netstat -a 30

This will show you all of the TCP/IP ports that are being used on your system and what they are connecting to (or being connected from). It will continue to monitor these ports and refresh the information every 30 seconds. You can change the refresh rate by changing the number at the end of the command.

Recover Information From A Corrupt File

recover filename.ext

If you have a disk with damaged sectors, you can attempt to recover as much information as possible from the damaged file. Data that is not damaged can be retrieved but data in damaged sectors will be lost.

Defragment Remote Computer

rexec remotePC defrag C: /F

This command used the rexec command to force a defragment of the C: drive on the computer named remotePC. You can use whatever you want to for the command (I just used defrag C: /F as an example). This is very useful for remote maintenance.

Retrieve Detailed System Information


With this command, you can retrieve the following information:

* Host Name
* OS Name
* OS Version
* OS Manufacturer
* OS Configuration
* OS Build Type
* Registered Owner
* Registered Organization
* Product ID
* Original Install Date
* System Up Time
* System Manufacturer
* System Model
* System type
* Processor(s)
* BIOS Version
* Windows Directory
* System Directory
* Boot Device
* System Locale
* Input Locale
* Time Zone
* Total Physical Memory
* Available Physical Memory
* Virtual Memory Max Size
* Virtual Memory Available
* Virtual Memory In Use
* Page File Location(s)
* Domain
* Logon Server
* Hotfix(s)
* NetWork Card(s)

Schedule Defrag to Defragment C: Daily

schtasks /create /tn “Defrag C” /tr “defrag c: /f” /sc daily /st 02:00:00 /ru “System”

This will set your computer to automatically perform a complete defrag of the C: drive each day at 11:00:00 PM (23:00:00). It does this by creating a scheduled task called Defrag C. It will run this command under the computer’s system account.

Map A Drive Letter to a Folder

subst W: C:windows

Sometimes, your directory structure can get pretty deep and complicated. You can simplify this a bit by mapping a drive letter to commonly used folders. In the example that I have given, this will create a drive letter W: and map it to the C:windows directory. Then, whenever you go into My Computer, you will see a W: drive and when you browse to it, it will automatically take you to the contents of the C:windows folder.

You can do this with any unused drive letter and any folder that exists on your system.

List All Tasks Running On The Computer


It’s always good to know what is running on your system. This is the command line version of the processes tab in Taks Manager.

Kill A Program

taskkill /im programname.exe /f

If, when using the tasklist command, you discover that there is something running you just want killed. This is the way to do it! Just note the program name and use it in place of programname.exe.

Reboot a Remote Computer

shutdown -r -f -m \remotePC -c “System will be rebooted in 30 seconds”

Sometimes, you just need to reboot a system. This will do it remotely and give the user a 30 second warning.

Schedule computer reboot

schtasks /create /tn “Reboot” /tr “shutdown /r /t 1” /sc once /st 01:00:00 /sd 08/18/2009 /ru “System”

cmd /c – Carries out the command specified by string and then terminates
&& – concatenates commands together

This way you can create a shortcut for short scripts without creating batch files.
e.g. a shortcut for stopping and starting the print spooler.

%windir%System32cmd.exe /c “net.exe stop Spooler && net start Spooler”

No sleep command in Windows 2000/XP (AFAIK) unless you have the Resource Kit, and then you have to move extra files around with your scripts.
Simply use the ping command to wait predefined times. In this example it’s 10 seconds.

ping -n 10 > NUL 2>&1

Windows answer to grep. Not as powerful but still useful.

e.g. In conjunction with systeminfo above to find out the Virtual Memory on the PC.

systeminfo find “Virtual Memory”