I don’t use Widows Error Reporting service and it appears the if I don’t use it, it doesn’t mean it’s not working! And if this service runs after some time the disk space will consume itself.
So what to do? READ MORE »
Posts in category Command Line
Windows Error Reporting (WER) and low disk space
How to: shrink an SQL log file.
Once in awhile I meet an sql based program that won’t work or stop respond to client requests until I flush the SQL database log file.
I wanted to create a script so I can run it through the scheduled tasks and get rid of this annoying task.
This is what I needed to do:
To shrink SQL log file on a scheduled base I did the following:
create a text file and change the extension to sql (Example: Shrink_log.sql)
add this lines to the script file: READ MORE »
Find user location in Active Directory with “dsquery”
Have you ever searched for a user OU location in Active Directory with not much of luck?
You can find the user using the search feature in the Active Directory but there is no information about where the user really is. READ MORE »
Trace and delete unused computer accounts with “dsquery”
Over the years, computers are replaced or decommissioned from the network but computers accounts in active directory are not deleted automatically and become obsolete.
Tracing these accounts in the past wasn’t an easy task.
To trace these accounts in the directory the easyest way is to search the computers that have not been logged in to the network in a given time interval. READ MORE »
Windows 2008 boot error: Missing or corrupt \windows\system32\winload.exe 0xc000000e
I had the “pleasure” to recover a windows 2008 installation today, after a failed try to clone the server to an external disk with acronis.
For some reason the acronis changed something in the source disk boot sector and when the clone finished, the server did not boot and displayed this error:
Missing or corrupt \windows\system32\winload.exe
status: 0xc000000e READ MORE »
Eset nod32 antivirus upgrade script.
Eset nod32 has surprised me with its simplicity and lightness.
After working with Symantec for many years and getting used to the thick and resource demanding SEP (Symantec endpoint protection) the nod32 seems to work without bothering the end user and does what it suppose to.
After implementing it on several networks I have realized I cant upgrade the client installed AV when a new version came out without central distribution software like Microsoft SMS or System center configuration manager. READ MORE »
Logging user login activity through logon script.
Here is a script, to log user logins in the local network trough the logon script.
The output is saved in a CSV file format and stored in a network share.
It’s a simple batch file with basic functions. It can be used in various situations to keep track of the computers the user’s login to and work with, or just to gather information and create statistics about the login behavior of the users. READ MORE »
How to: relocating DHCP scope to a new server.
When we need to relocate a DHCP service on to a new server with a lot of IP reservation and scopes, the easiest way to achieve it is by using the netsh command to export the DHCP settings to a txt file and than import them to the new server. READ MORE »
How to: Creating a VHD based OS multi-boot.
There are times when we need more than one operating system on our computer. We can build a dual or multi-boot OS’s, but it requires us to make a lot of partitions for the OS file systems, and that is not always comfortable.
Another way to set a multi-boot OS’s on our computer, is creating a VHD file and then to install operating system on it. It’s easier and does not require to change partitions on our disk, also we can store the VHD file in any place. READ MORE »
Tasklist usage.
The CMD is a very powerful tool, it gives you the ability to automate tasks or get information you can later manipulate to your needs.
In this post I explained how to kill a process (locally or remotely)and now I want to take it one step further and explain how to track the processes I need to kill.
The tasklist.exe is one of the command line tools that lists all the processes running on a windows machine (just like the GUI task manager) and outputs the information as a list, in a format you choose. It can be used later in a script. READ MORE »
Time to kill.
There are times when I need to “terminate” a process on one of my servers.
Usually the simple way is to do RDP to the server and “kill” the process in the task manager.
The problem begins when I need to perform this task again and again, which can be very annoying, so then I start to look for shortcuts. READ MORE »