Category: Microsoft Windows Server 2003

Active Directory, Microsoft Windows Server 2003, Microsoft Windows Server 2008, Microsoft Windows Server 2012

Active Directory Security Hardening: Domain Admin Honeypot

Rename the account It’s a good idea to name the account like any other user account. That means giving it a real name, like Johnny Cash, with a username that matches your naming convention, say “jcash.” Remove description Next, you want to remove the default description for the built-in Administrator, which is “Built-in account for …

Microsoft Windows Server 2003, Microsoft Windows Server 2008, Windows 7

Check Status of Windows Service

To check if a local or a remote Windows service is running or not, create a batch file, name it for ex. check_service.bat and paste the following code: @echo off sc \localhost query Apache2.2 > service_status.txt Find /i "RUNNING" service_status.txt >> service_status.txt IF %errorlevel% == 0 ( echo service is running ) ELSE ( echo …

Microsoft Windows, Microsoft Windows Server 2003, Microsoft Windows Server 2008, Windows 7

Get a list of currently logged in users in Windows Server

To get a list of currently logged in users in your Windows Server, open a cmd console and issue the following command: query sessionquery session You will get a response like this: X:pathtosomewhere>query session SESSIONNAME USERNAME ID STATE TYPE DEVICE services 0 Disc >console my_user_name 3 Active rdp-tcp 65536 Listen   X:pathtosomewhere>X:pathtosomewhere>query session SESSIONNAME USERNAME …