• Home
  • About
    • Disclaimer
  • Archives
  • Tools

Posts in category Command Line

Windows Error Reporting (WER) and low disk space

Dec24
2013
Written by david

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 »

VN:F [1.9.20_1166]
please wait...
Rating: 9.0/10 (1 vote cast)
VN:F [1.9.20_1166]
Rating: +2 (from 2 votes)
Posted in SBS, SBS 2008, SBS 2011, Windows - Tagged sbs, SBS 2008, SBS 2011, WER, windows, Windows Error Reporting

How to: shrink an SQL log file.

Dec24
2011
Written by david

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 »

VN:F [1.9.20_1166]
please wait...
Rating: 8.0/10 (1 vote cast)
VN:F [1.9.20_1166]
Rating: +3 (from 3 votes)
Posted in How To:, MS SQL 2008, Windows - Tagged CMD, How to, MS SQL 2008

Find user location in Active Directory with “dsquery”

Sep16
2011
Written by david

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 »

VN:F [1.9.20_1166]
please wait...
Rating: 10.0/10 (2 votes cast)
VN:F [1.9.20_1166]
Rating: +2 (from 2 votes)
Tagged CMD, dsquery

Trace and delete unused computer accounts with “dsquery”

Sep02
2011
Written by david

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 »

VN:F [1.9.20_1166]
please wait...
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: +1 (from 1 vote)
Posted in Windows - Tagged CMD, dsquery, windows

Windows 2008 boot error: Missing or corrupt \windows\system32\winload.exe 0xc000000e

Jun19
2011
Written by david

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 »

VN:F [1.9.20_1166]
please wait...
Rating: 8.8/10 (13 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 2 votes)
Posted in Recovery, SBS 2008, Windows - Tagged 0xc000000e, bcdedit, bootrec, CMD, recovery, SBS 2008, windows, windows 2008, winload.exe

Eset nod32 antivirus upgrade script.

May24
2011
Written by david

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 »

VN:F [1.9.20_1166]
please wait...
Rating: 1.0/10 (1 vote cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
Posted in Windows - Tagged Antivirus, ESET, nod32, Script

Logging user login activity through logon script.

May16
2011
Written by david

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 »

VN:F [1.9.20_1166]
please wait...
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
Posted in How To:, Windows - Tagged CMD, How to, windows

How to: relocating DHCP scope to a new server.

May10
2011
Written by david

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 »

VN:F [1.9.20_1166]
please wait...
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
Posted in How To:, Windows - Tagged CMD, DHCP, How to, netsh

How to: Creating a VHD based OS multi-boot.

May07
2011
Written by Max

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 »

VN:F [1.9.20_1166]
please wait...
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
Posted in How To:, Windows - Tagged How to, multi-boot, VHD, windows

Tasklist usage.

Apr30
2011
Written by david

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 »

VN:F [1.9.20_1166]
please wait...
Rating: 9.0/10 (1 vote cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
Tagged CMD, tasklist

Time to kill.

Apr20
2011
Written by david

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 »

VN:F [1.9.20_1166]
please wait...
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
Tagged CMD, taskkill

Categories

  • Command Line (11)
  • Exchange (8)
    • 2007 (4)
    • 2010 (5)
  • Fortigate (10)
  • FreeNAS (2)
  • HmailServer (1)
  • How To: (8)
  • MS SQL 2008 (4)
  • Networking (4)
  • Open Source (1)
  • PowerShell (2)
  • Recovery (1)
  • SBS (8)
    • SBS 2008 (6)
    • SBS 2011 (3)
  • Terminal Server (2)
  • Veeam (2)
  • VMware (6)
  • Windows (18)

Links

  • חי הדפסות – דפוס משי, חולון
  • שלישיה – זה לא מה שחשבתם

Archives

  • March 2018
  • January 2018
  • September 2015
  • January 2015
  • August 2014
  • May 2014
  • December 2013
  • January 2013
  • October 2012
  • September 2012
  • July 2012
  • June 2012
  • May 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
Site Meter

EvoLve theme by Theme4Press  •  Powered by WordPress How to do.....IT