Category Archives: Active Directory

Get list of users created in AD within last few days

Using PowerShell we can get list of users created during a particular time frame, like in last 1 day, 30 days, etc. This may be helpful in AD audit or to track any security breach.

First, create a variable and store the date you want to go back.

Make sure you run the PowerShell as Admin, if you don’t you may get blank values for WhenCreated

$When = (Get-Date).AddDays(-30) # You can change number of days here as per your requirement. 
Get-ADUser -Filter {WhenCreated -ge $when}

#IF you want to list particular properties, you can use below command.
Get-ADUser -Filter {WhenCreated -ge $when} -Properties * | FT Name, UserPrincipalName, WhenCreated

We can also get group membership of these users in same command output.

Get-ADUser -Filter {whenCreated -ge $when} -Properties * | select UserPrincipalname, SamAccountName, Enabled, whenCreated, @{n="GroupMembership"; e={$_.MemberOf | foreach {(Get-ADGroup $_).Name}}}

Export this list to CSV file.

Get-ADUser -Filter {whenCreated -ge $when} -Properties * | select UserPrincipalname, SamAccountName, Enabled, whenCreated, @{n="GroupMembership"; e={$_.MemberOf | foreach {(Get-ADGroup $_).Name}}} | Export-CSV C:\Temp\ADUsersWhenCreated.csv -notype

Book Review “Microsoft Exchange Server 2013 High Availability – Nuno Mota”


I got an opportunity to Read and Review of book “Microsoft Exchange Server 2013 High Availability – Nuno Mota”. I just finished reading this book and here is my review about this book.

I highly recommend this book for the Admin(s) who have at least basic understating of Exchange 2013 and want to gain more In-depth knowledge about High-Availability of Exchange server in all respects. The book contains only about 200 pages and 8 chapter with really hands-on practical stuff, so you will not get bored while reading this book.

The book covers availability of all the server roles so you can design a highly available messaging environment. A quick snapshot about the changes introduced in high availability of  Exchange 2013 provide a good platform for a reader to refresh and will benefit the reader in building the foundation.


GPO to configure the remote assistance in win 7 in domain environment

Domain side configuration through GPO

Login in domain controller


Crate a new policy

And configure the policy under the computer configuration s below.

Computer configuration – polices – Administrative template – system – remote assistance.

Configure the policy “offer remote assistance”

Click on the show button.

And configure the helper address [for this creates a security group in AD and map you support person IDs on that group] and give the UNC path of that group.

Configure the policy “Solicited remote assistance”

The policy will be like this after this

Configuration from client end,

Check that the Windows remote assistance should be allowed from the local firewall allow list,

This is by default allowed.

On the client computer go to Start RUN – msra /offerra

The below dialog box will be open

Type the ip address/Hostname of the person which you want to connect

And click on next

The user will be prompted to accept the connection and

Now click on the share control and the user will be] prompted to accept the request.

After this you will be able to control the remote system.