Virtual Geek

Tales from real IT system administrators world and non-production environment

Blog posts : "Active Directory"

Oneliner Microsoft Powershell Script Get members list from active directory group in excel

January 26, 2018 03:18PM

This is my tiny article on gathering members information from active directory groups using windows PowerShell in very easy, I have used one-liner script earlier for creating bulk ad users, This script will get all the members from group and export it to CSV, This is very handy when providing someon…

Read more

Powershell Active Directory: Show treeview of nested Group members downstream hierarchy

January 3, 2018 01:29PM

This script is second part of my earlier article Powershell Active Directory: Show treeview of User or Group memberof hierarchy, earlier was showing upstream tree view of nested MemberOf groups. After writing the first script I got another requirement to show treeview in reverse order, Group member…

Read more

Add multiple proxy addresses with Microsoft PowerShell in Active Directory Groups

October 26, 2017 03:45PM

This article is second part of POWERSHELL ACTIVE DIRECTORY: ADD OR UPDATE PROXYADDRESSES IN USER PROPERTIES ATTRIBUTE EDITOR, In this part, I will be changing proxy addresses on active directory groups using PowerShell script. This is helpful while migration of bulk users and groups to Microsoft Of…

Read more

Powershell: Temporary group membership on Windows 2016 Active Directory

October 17, 2017 12:15PM

This is second part of configuring and architecting AD infrastructure new features. Microsoft has introduced new great feature with Windows Server 2016 Active directory, PAM (Privileged Access Management) Feature, Where user can be added to a group for a particular time. Once that Time to live (TT…

Read more

Microsoft Active directory additional features - AD Recycle Bin Powershell

October 11, 2017 01:00PM

I recently was involved and architected IT infrastructure for one of the small startup group, I deployed Windows Server 2016 server and architected Active Directory infrastructure, Startup staff's work was involved using heavy use of AD API in their own software, creation and deletion of AD accounts…

Read more

Microsoft PowerShell: Check Windows license activation status

September 23, 2017 02:11PM

This is my version of fetching Microsoft windows license status, for stream lining environment and make compliant as per audit standards, This is old wine in new bottle. I have improvised it to get more information and made it dynamic to get information remotely using CIM(winrm) as well as or WMI(dc…

Read more

Powershell Active Directory: Show treeview of User or Group memberof hierarchy

September 20, 2017 09:32AM

After going through many testing and successfully streamlining most of the Users and Groups member of in active directory environment using Powershell Active Directory: List complete hierarchy of upstream nested groups recursively of User. I was still facing some of the issues, Earlier script was no…

Read more

Powershell Active Directory: List complete hierarchy of upstream nested groups recursively of User

September 15, 2017 05:27PM

Recently I had seen big mess in one of my client's Active directory environment, AD Groups where keep nested into groups and further, Due to this clients where having hard time to get either exact effective permissions of particular users, and causing users have unnecessary authorization or getting …

Read more

SOFTERRA ADAXES - A new way to manage Active Directory

September 2, 2017 08:26PM

What is Adaxes?
Adaxes is a rescuer for any Active Directory, Exchange and Office 365 environment. It gives additional features automates repetitive everyday operations, enhances security, enforces standards and reduces the load on your IT department. Managing your IT environment with Adaxes is sim…

Read more

Powershell Active Directory: ADGroup Managedby - Checkbox Manager can update membership list

August 23, 2017 10:40AM

I found one of the query "How to click checkbox manager can update membership list on Active directory group using powershell" on the whatsapp group Powershell scripting. There is already official MicroSoft blog written for same purpose and there are two parts to it and they are worth reading. I wen…

Read more

Active Directory Powershell: Aduser A value for the attribute was not in the acceptable range of values

August 21, 2017 08:02PM

While writing and testing script Active Directory Powershell: Create bulk users from CSV file, Simulating single user creation I came across an error. This error says.

New-ADUser : A value for the attribute was not in the acceptable range of values
At line:1 char:1
+ New-ADUser -Name TestUse…

Read more

Active Directory Powershell: Create bulk users from CSV file

August 19, 2017 11:00PM

Creating bulk multiple user accounts on Active Directory Users and Computers mmc console is very boring and tough task also it is most of the time consuming and error prone tend to be lots of mistakes. If same task is done using automation it will be interesting and happen in less time. Active direc…

Read more

VMWare Powercli: Time Configuration (NTP - Network Time Protocol) on multiple Esxi server

August 16, 2017 05:01PM

This blog is related to my earlier blog vSphere ESXi security best practices: Time configuration - (NTP) Network Time Protocol, This is Powercli part of same article. Login into vCenter server, For more details check VMWARE VSPHERE POWERCLI INSTALLATION AND CONFIGURATION STEP BY STEP.

To add nt…

Read more

vSphere ESXi security best practices: Time configuration - (NTP) Network Time Protocol

August 15, 2017 02:09PM

By default NTP - Network time protocol service is disabled on esxi server. ESXi servers always should be configured with NTP for below reasons.

Logs: Very first good reason is logs (events, /var/log). If your Esxi is not synchronized with Time server correctly, Details in logs will show incorrect…

Read more

Powershell one liner: Create multiple user accounts

August 9, 2017 10:44PM

I had an opportunity to teach PowerShell Active Directory basics to some of my junior subordinate, Where I wanted them to show few test cases on creating multiple active directory user accounts, After building active directory from scratch, As this was the demo example lab, accounts created  running…

Read more


June 25, 2017 04:20PM

This was second script I wrote for user migrating from domain change (exchange to office 365). (Although I have basic knowledge of Exchange server, but I was involved due to my PowerShell scripting knowledge), Requirement was adding new email address to ProxyAddresses under Attribute Editor (AD User…

Read more


June 24, 2017 04:06PM

I am sharing few of the scripts I wrote long back to change/update Users information in Active directory,  It was required me while migrating Active directory to Office 365. One of the script was adding or change manager name in organization tab of User properties. (All user names used here are fict…

Read more


May 24, 2017 07:15PM

Recently while troubleshooting VMWare vCenter 6.5 on Microsoft windows, I found some necessary services either missing or does not exist. Crucial services like VMware vcenter (VPXD), Vmware Single sign on and other services simply missing. Earlier I thought this could be because it might have upgrad…

Read more


February 9, 2017 08:49AM

I am honored today again to see the announcement that I was awarded the title vExpert for the 4th year in a row.

vExpert is a title that VMware awards to those that have made significant contributions to the VMware community.  The title doesn’t show a particular level of technical expertise; but …

Read more


September 15, 2016 10:56PM

Top 10 Audit Reports for Active Directory with LepideAuditor Suite

Recently I received change to doing POC in my organization for LepideAuditor Suite on Regular auditing, And I had to create a POC report, here I am sharing the same. monitoring and alerting on Active Directory activity helps contr…

Read more

20 Blog Posts