mo wasay

Remove group membership of disabled accounts

Majority of the system administrators I’ve met forget this very important rule. When an account is not needed remove its membership from the security/ distribution groups, otherwise you get disabled account showing up in groups, and that looks ugly.

You will need Quest ActiveRoles for Powershell installed to get this working.

Depending on the size of your organization you may need to increase the limit of results to 3000 or more. Default is 1000

Next, create a list of accounts that you will be modifying so we know what we will be removing.

Once you have the list saved. Execute the following:

Membership is stripped from groups, where the user account is disabled.

ManageEngine ADSelfService Plus – How to apply a wildcard cert ?

ADSelfService Plus by ManageEngine is a great tool. The instructions provided to configure SSL did not work for me, but I was able to figure it out doing the following:

You need a PFX File: Wild Card Cert for * (Yourdomain-WildCard.pfx) – This can be generated/ exported by IIS if you have a wildcard cert.

STEPS to apply and use Wildcard cert:

  1. Enable SSL in ADSelfService Plus.
  • Click “Admin” tab –> Product Settings –> Connection.
  • Enable “Enable SSL Port [https]” check-box -> click “Save” button.
  1. Stop ADSelfService Plus. (Start –> All Programs –> ADSelfService Plus –> Stop ADSelfService Plus) .
  2. Save the “.pfx” file under “C:\ManageEngine\ADSelfService Plus\conf”, take a backup copy of server.xml file and then edit the “server.xml” file.
  3. Go to the bottom of server.xml file and edit connector tag and add the keystoreFile, keystorePass, keystoreType  and save the file.
  1. Start ADSelfService Plus or restart the server.

Hope this helps!

Deleting Thumbs.db & Desktop.ini files and How to prevent them

Removing thumbs.db file from explorer might take time. So you may also try the command interface.

  • Press Windows Key + R for Run window, type cmd for opening command prompt
  • del /s /ah thumbs.db

This command will quickly remove thumbs.db files from your computer.

How to prevent thumbs.db file from getting recreated?

The above method only can help you in removing the created thumbs.db file, but it can’t prevent creation of newer thumbs.db files. If you have plenty of photos in your PC, these files will get regenerated easily and start consuming hard disk space.

To prevent this file from getting generated, try this tweak.

  • Press Windows key + R for opening Run window. Type gpedit.msc and hit Enter
    Note: Group Policy Editor is a feature included with premium versions of Windows mainly the professional and enterprise edition. So if you don’t get any window opened after typing gpedit.msc, the version of windows in your PC may not support that feature.
  • On the left side of Group Policy Editor window, open User Configuration -> Administrative Templates -> Windows Components -> File Explorer (Windows Explorer in 7, File explorer in Windows 8). On the right side double click on “Turn off the caching of thumbnails in hidden thumbs.db files”. Click Enabled. Click OK



Once the step is done, no more thumbs.db files will be generated in your computer.

How to Start and Enable Firewalld on CentOS 7

It is highly recommended that you have a firewall protecting your server.

Pre-Flight Check

  • These instructions are intended specifically for enabling and starting firewalld CentOS 7.
  • I’ll be working from a Liquid Web Self Managed CentOS 7 server, and I’ll be logged in as root.

Check the Status of Firewalld

To check the status of firewalld, run the following command as root:

Enable Firewalld

To enable firewalld, run the following command as root:

Start Firewalld

To start firewalld, run the following command as root:

How to check status, stop, and disable firewall on CentOS 7

Firewalld is a complete firewall solution that has been made available by default on all CentOS 7 servers, including Liquid Web Core Managed CentOS 7, and Liquid Web Self Managed CentOS 7. On occasion, perhaps for testing, disabling or stopping firewalld may be necessary. Follow the instructions below to disable firewalld and stop firewalld.

It is highly recommended that you have another firewall protecting your network or server before, or immediately after, disabling firewalld.

Pre-Flight Check

  • These instructions are intended specifically for stopping and disabling firewalld CentOS 7.
  • I’ll be working from a Liquid Web Self Managed CentOS 7 server, and I’ll be logged in as root.

Check the Status of Firewalld

And finally, to check the status of firewalld, run the following command as root:

Stop Firewalld

To stop firewalld, run the following command as root:

Disable Firewalld

To disable firewalld, run the following command as root:

Find files hiding in a lot of sub directories

So I was moving a lot of my music to Amazon Cloud Drive, and ended with a lot of files still showing under a lot of sub directories. Problem was – how do I know which files are in what sub directory with out going into each of them.

Here is the answer:

This captured all the files in the sub directories and saved them to list.txt

Hope this helps.

How to Install VMware Tools on RHEL 7/CentOS 7

VMware Tools is one of important components for virtual machine (VM) in order get excellent performance. It is a group of utilities that help to enhances the overall performance of the virtual machine’s guest operating system (OS) and improves management of the VM. Without the VMware Tools, guest OS performance will lacks some of the important functionality. Below steps shows how to install the VMware Tools on RHEL 7, CentOS 7 and Oracle Linux 7.

How to Install VMware Tools ?

Option 1 (Recommended by VMware) – VMware support of open-vm-tools

open-vm-tools is an open source implementation of VMware Tools from third parties and contains utilities that enhances virtualization management, administration and functions of the virtual machine in VMware environments. The ultimate goal is to enable the operating system vendors and/or communities and virtual appliance vendors to bundle VMware Tools into their product releases.

Option 2 :

1. Install prerequisites :

2. Attach the vmware tools sofware from vSphere client.

3. Mount the vmware tools package into /mnt :

4. Copy vmware tool packagae into /tmp :
5. Go to /tmp directory and extract the vmware tools package :
6. Go to extracted folder, vmware-tools-distrib :
7. Run to start installation :
8. Once successfully installed, make sure you umount (not unmount- missing the n) back the /mnt :

Get a list of shared mailboxes that are accidentally licensed

We know that in a hybrid scenario or during migration all shared mailboxes are migrated as a user account and then converted in a shared mailbox.

Sometimes admin forget to remove the license for the shared box after conversion and there is no GUI alternative to see if the shared mailbox is licensed. Shared mailbox in Office365 do not require a license.

To find out what shared mailboxes are “accidentally” licensed:



How to configure static ip address on CentOS 7

In this small tutorial i will explain how to configure static ip address on CentOS 7 minimal.
First, need to edit the set up for the ethernet. Let’s start with editing “/etc/sysconfig/network-scripts/ifcfg-enp0s3″ file:

Save and exit.

Now, configure default getaway:
And add following line:
Configure DNS Server
add following line:
Now restart your network or rebooting system
Check your network:

How to setup network after RHEL/CentOS 7 minimal installation

After installing RHEL/CentOS 7 minimal, You may not able to connect network in that machine. This will happen because Ethernet interfaces are not enabled by default.
This guide explain you to setup network on RHEL/CentOS 7.

Setup network on CentOS 7 minimal

First, type “nmcli d” command in your terminal for quick list ethernet card installed on your machine:


“nmcli d” command output

Type “nmtui” command in your terminal to open Network manager. After opening Network manager chose “Edit connection” and press Enter (Use TAB button for choosing options).


CentOS_7 Network manager screen

Now choose you network interfaces and click “Edit



Edit your network interfaces

DHCP configuration

Choose “Automatic” in IPv4 CONFIGURATION and check Automatically connect check box and press OK and quit from Network manager.


Set ip adress using DHCP

Reset network services:

Now your server will get IP Address from DHCP .


CentOS 7 check ip address.