Archive for the ‘Windows 8’ Category

Display information for a particular user in your domain

To display information for a particular user, use the command like this:

net user /domain <username>
Categories: Windows, Windows 8

More free space at Windows 8 PC

Run cmd as Admin
Put in, %SystemRoot%\System32\Cmd.exe /c Cleanmgr /sageset:65535 & Cleanmgr /sagerun:65535
Hit Enter
Check ALL boxes in the windows that comes up (checks only need be put in the 1st time running), hit OK.

When you hibernate, there is a huge file created called hiberfil.sys. The next thing you can do is to disable Hibernate:

powercfg /h off

But have a look at this page before you do that.

The next thing you can try is to use CCleaner to clean more temporary files. I use it for the temporary files only. The only time I use the registry cleaner is after I uninstall an app. The registry cleaner can cause major problems. You should always have an Image of your system when doing any of this stuff.

Categories: Windows, Windows 8

Loop through each line in a text file using a windows batch file

for /F "tokens=*" %%A in (myfile.txt) do (
   echo %%A

Windows cmd with history

PyCmd is a smart command prompt extension for Windows’ cmd.exe. Its purpose is to emulate a few power features of UNIX shells (decent Tab-completion, persistent history, etc.). You only have to download and unzip the package.

How to find open ports

The following command will show you which ports are open on your computer and what program hold the port:

netstat -anbo

With the following command you can search for an open port:

netstat -anbo|find "61616"

Display system information for Microsoft Windows

Displays complete system information for Microsoft Windows XP Professional or Windows 7 computers.

systeminfo[.exe] [/s Computer [/u Domain\User [/p Password]]] [/fo {TABLE|LIST|CSV}] [/nh]


How to get the directory structure of a drive or path

The tree command displays the directory structure of a drive or path graphically.

tree [drive:][path] [/F] [/A]

/F Display the names of the files in each folder.
/A Use ASCII instead of extended characters.

tree c: /F

The dir command allows you to see the available files in a directory.

dir [drive:][path][filename] [/A[[:]attributes]] [/B] [/C] [/D] [/L] [/N] [/O[[:]sortorder]] [/P] [/Q] [/R] [/S] [/T[[:]timefield]] [/W] [/X] [/4]

dir /s /b