Find Windows serial number

by admin on January 29, 2012

Windows OS serial number can be found by running the below command. wmic os get serialnumber Example: c:\>wmic os get serialnumber SerialNumber 09203-891-5001202-52183 c:\>

{ 0 comments }

Windows 7 on my computer is 32 bit or 64 bit?

by admin on January 29, 2012

How do I find out if my Windows 7 is 32-bit or 64-bit? There are multiple ways to find whether Windows 7 running on your computer is of 32-bit or of 64-bit. Using WMIC You can get to know the OS architecture by running the below simple command from windows command prompt. wmic os get [...]

{ 2 comments }

Backup / delete event log files

by admin on December 31, 2011

We can delete or backup event log files from command line using wmic commands. The wmic sub command for managing event log files is nteventlog. Below are the methods available with ‘wmic nteventlog‘ command. BackupEventlog ClearEventlog Backup event log files We can run the below command to backup a event log file. wmic nteventlog where [...]

{ 0 comments }

Hibernate windows from command line

by admin on December 30, 2011

We can hibernate a Windows computer from command prompt using shutdown command. Shutdown command has various switches for different operations like shutdown, reboot, hibernate, log off etc. The command for hibernating windows computer is given below. shutdown /h This works on all Windows versions – XP, Vista, Windows 7, Server 2003 and Server 2008. This [...]

{ 0 comments }

More command

by admin on December 30, 2011

If you are reading a big text file in windows command prompt, then more command will be useful to print the content of the file one page at a time.  Here one page means the data that can be fitted into the command window. ‘More’ command on windows is similar to the more command on [...]

{ 0 comments }

Cacls command examples

by admin on December 28, 2011

Cacls command can be used to display or modify access control list(ACLs) of files. Below you can find few examples of cacls command for various scenarios. Find the access permissions of a file We can run the below command to print the access permissions of a file. cacls filename Example: c:\>cacls data.txt c:\data.txt NT AUTHORITY\SYSTEM:F [...]

{ 0 comments }

Ver command

by admin on December 27, 2011

Ver command prints the version of the Windows OS running on the computer. This command does not have any options/switches. Below you can see the command’s output for different versions of Windows OS. On Windows 7 it just prints the build number: c:\>ver Microsoft Windows [Version 6.1.7601] On Windows XP: Microsoft Windows XP [Version 5.1.2600] [...]

{ 0 comments }

Fsutil command

by admin on December 26, 2011

Fsutil is a command line utility to configure various file system settings and perform various file related operations. Configure file system settings Using ‘Fsutil behavior’ we can configure and query file system settings.  It has 2 subcommands, namely query and set which can be used for these operations. Below is the syntax for changing file [...]

{ 0 comments }

Rename group from Windows command line

by admin on December 26, 2011

We can rename a local user group from windows command line using  wmic group command. Syntax for the rename operation is given below. wmic group where name=’groupname’ rename newname Example: To rename local group ‘Users1′ as ‘Users2′ we can run the below command. C:\>wmic group where name=’users1′ rename users2 Executing (\\WINCMD-PC\ROOT\CIMV2:Win32_Group.Domain=”WINCMD-PC”,Name=”users2″)->rename() Method execution successful. Out [...]

{ 0 comments }

Sort command

by admin on December 26, 2011

We can sort a text file using the windows inbuilt sort command. Below you can find the syntax of sort command. Sort a text file: A text file can be sorted using the below simple command. sort filename For example, to sort the file data.txt, the command would be sort data.txt The above command prints [...]

{ 0 comments }