• Home
  • About
    • Disclaimer
  • Archives
  • Tools

Posts tagged CMD

Fix Event ID: 13555

May31
2012
Written by david

I got this error during a migration test of an SBS2003 to SBS2011 and the migration obviously failed.

Event Type: Error
Event Source: NtFrs
Event Category: None
Event ID: 13555
Date: 29/05/2012
Time: 13:28:28
User: N/A
Computer: SBS
Description:
The File Replication Service is in an error state. Files will not replicate to or from one or all of the replica sets on this computer until the following recovery steps are performed:

This issue can occur if the FRS Jet database or one of its logs has been corrupted. READ MORE »

VN:F [1.9.20_1166]
please wait...
Rating: 8.0/10 (2 votes cast)
VN:F [1.9.20_1166]
Rating: +2 (from 2 votes)
Posted in SBS 2011, Windows - Tagged SBS 2011, windows, windows 2008

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 Command Line, How To:, MS SQL 2008, Windows - Tagged 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)
Posted in Command Line - Tagged Command Line, 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 Command Line, Windows - Tagged Command Line, 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 Command Line, Recovery, SBS 2008, Windows - Tagged 0xc000000e, bcdedit, bootrec, Command Line, recovery, SBS 2008, windows, windows 2008, winload.exe

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 Command Line, How To:, Windows - Tagged Command Line, How to, windows

How to: Enable SNMP monitoring on a Fortigate device from CLI.

May13
2011
Written by david

This document will show you step-by-step, how to enable the SNMP on a fortigate device from the cli, to be able to monitor its performance from your favorite network monitoring tool (Nagios, NetXMS, Big Sister, Cacti etc). I use The Dude (by Mikrotik) to monitor my networks, it’s a great free windows based tool. READ MORE »

VN:F [1.9.20_1166]
please wait...
Rating: 9.6/10 (7 votes cast)
VN:F [1.9.20_1166]
Rating: +1 (from 1 vote)
Posted in Fortigate, Networking - Tagged CLI, Fortigate, How to, Monitoring, SNMP

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 Command Line, How To:, Windows - Tagged Command Line, DHCP, How to, netsh

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)
Posted in Command Line - Tagged Command Line, 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)
Posted in Command Line - Tagged Command Line, 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