How To Retrieve the Last Login Time For a User on Windows Using Net User

Introduction There are many times as an administrator that we dread looking through the Event Logs for the last time a user logged into a system. Command line is always a great alternative. Using the net user command we can do just that. Process The syntax of the command is given below. Do not forget the double quotes around Last logon. net user username | findstr /B /C:”Last logon” Example:... read more

Using fsutil to Manage Windows Filesystems

Introduction Fsutil performs tasks that are related to file allocation table (FAT) and NTFS file systems, such as managing reparse points, managing sparse files, or dismounting a volume.   Command Syntax Fsutil 8dot3name Queries or changes the settings for short name behavior on the system, for example, generates 8.3 character-length file names. Removes short names for all files within a directory.... read more

How To Manage Hidden files and Directories from the command line in Windows

How To Manage Hidden files and Directories from the command line in Windows Introduction Managing Windows hidden files and directories from the GUI is easy, managing from the command line is a bit more challenging, but not difficult. in this post we will cover the different ways to handle many different tasks using the command line. Windows files/folders have a special attribute called hidden attribute.... read more

Clearing and Backing Up Event Logs on Windows 2003 from the command line

Lets face it, we are always battling for disk space on our servers and as mush as we hate the space the the Windows event logs use we need them, but from a command line we can back them up and then clear them. We are able to do this using wmic commands and the sub command nteventlog. There are two methods available with what we are trying to accomplish, they are: BackupEventlog ClearEventlog Backup event... read more

Changing Windows Computer Description from a Command Prompt

By default the Windows OS installation doesn’t input a computer description. In most cases this is not an issues but, if you want to add one here’s how to do it. Typically the computer description is changed by using thew GUI in System > Advanced System Settings > Computer Description. This same task can be completed on the command prompt with the net config command. the syntax is: net... read more