Showing posts with label Active Directory. Show all posts
Showing posts with label Active Directory. Show all posts

Tuesday, January 6, 2015

PowerShell and Active Directory : Get the list of Active Directory Groups created of a Specific Date (v1).

 

Manya_Kaur

In my previous post, I have written a script function, by using we can see the list of Active Directory Users those are created on a specific date.  This is just a same version of that script, instead showing the Active Directory users, it shows the list of Groups those are created on that specific day.

The usage is simple as the previous script, type the function name, provide the date to -Date parameter and  that's all.

PS C:\> Get-ADGroupCreated -Date 01/05/2015 

You can download the script from the below link.

Download Link : https://gallery.technet.microsoft.com/Get-Active-Directory-8609d96f

06-01-2015 14-48-06

Download Link : https://gallery.technet.microsoft.com/Get-Active-Directory-8609d96f

Thanks for your time and reading the blog.

Regards.
Aman Dhally
If you like, you can follow me on Twitter and Facebook. You can also check my “You Tube” channel for PowerShell video tutorials. You can download all of my scripts from “Microsoft TechNet Gallery”.

Wednesday, December 17, 2014

PowerShell and Active Directory : Get the list of Active Directory Users created of a Specific Date.

 

If you are an I.T or System Administrator, then you must doing one thing for sure, getting the list of Active Directory users. Getting list of Active Directory users is very easy with PowerShell.

You just need to have “Active Directory PowerShell Module” and just shoot the Get-Aduser cmdlet. Simple!

A IT guy from Egypt ( Ahmad),  email me and ask me if he can get a list of Active Directory user that is created on a specific date? I said Yes, and then I think about to write this PowerShell Script function.

The usage of PowerShell function is very easy. Type the function name and in –Date parameter provide the Date on which you want to see if you have created any Active Directory user.

For example:

If you run the below code. It will give you list of all Active Directory User account those are created with-in 24 Hours of 17th December 2014.

 

Get-ADUserCreated -Date 12/17/2014 

 

1

Video : Video of the script usage and running.

Video of the script usage and running.

Script Download Link : https://gallery.technet.microsoft.com/Get-Active-Directory-Users-e720f7e5

Thanks for your time and reading the blog.

Regards.
Aman Dhally
If you like, you can follow me on Twitter and Facebook. You can also check my “You Tube” channel for PowerShell video tutorials. You can download all of my scripts from “Microsoft TechNet Gallery”.

Murky_ana

Wednesday, March 12, 2014

HotFix Available: "One or more properties are invalid" error when you run the Get-ADUser Cmdlet" error on Windows 8.1

 

Quote of the Day - “Whether you think you can or you think you can’t, you’re right. :- Henry Ford”

Hot-Fix

You are an Administrator? And you also do use PowerShell, and also you are using Windows 8.1 with RSAT tool installed, and also using Active Directory module for manage Active Directory users and computers, then, I am sure you are familiar with this creepy error.

 

This error occurred when you use –Properties * either with “Get-AdUser” or with “Get-AdComputer”.

The most irritating part of this error is, if you want to see all properties of the user, you can’t.

 

One or more properties are invalid. Parameter name: msDS-AssignedAuthNPolicy

12-03-2014 10-53-37

 

Yesterday, Microsoft has launched the “Hotfix for this bug!”{Actually I am not aware of that this a bug in  PowerShell.}

You can download the hotfix from this link: http://support.microsoft.com/kb/2923122

After installing the hotfix, reboot your computer and run the above command again, and you will notice that “all is well again” in our world.

 

12-03-2014 11-08-57

 

 So, install this hotfix ASAP!!!! ;o) .

 clip_image008

Thanks for reading this post.

Aman Dhally

 

If you like, you can follow me on Twitter and Facebook. You can also check my “You Tube” channel for PowerShell video tutorials. You can download all of my scripts from “Microsoft TechNet Gallery”.

 

 

Tuesday, July 16, 2013

Powershell and Active Directory : Find empty Active Directory Groups using Powershell.

Hi Everyone.

Finally i come back to India and it is always love to be at home.

My today’s task was to create a list of all empty active directory groups, all groups those are not having any members.

As you know, i don’t like to do the manual tasks, so i decided to use powershell to accomplished this.

Lets do it.

Import Active Directory module.

Import-Module ActiveDirectory

12-07-2013 14-18-16

Once, Active Directory Module is loaded, run the below command.

 

Get-ADGroup -Filter * -Properties Members  | where { -not $_.Members} | select Name

Now , this will give you the list of all empty groups.

Now we have two groups “*ASKLAILA” and “*Hello Sir” as a result of the above command.

12-07-2013 13-56-01

Now lets cross-verified our result.

12-07-2013 13-57-05

12-07-2013 13-56-20

I hope you find this useful.

Thanks
Aman Dhally
 
 
clip_image001 clip_image002 clip_image003 clip_image005clip_image007