Showing posts with label ActiveDirectory. Show all posts
Showing posts with label ActiveDirectory. 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, September 5, 2012

Powershell and Active Directory: Get Your Active Directory Forest and Domain Information using Powershell.

Hi,

Sometime a situation comes when you want to know about your Active Directory Infrastructure.  That what is your AD Forest Name is, how many replica server do you have in your company,how many domain sites do you have  etc. etc.

When you get Answers you want to document all the above things for your future reference. Today a situation arise that i want to know answers about the above questions.

I know i can get all the answers by using Active Directory Module. But then i think if someone else need the same information, then what he will do?,he will do the same or he ask someone else in his team and waiting for their replies.

Then i think, why not to script it, so that everyone can get benefitted from it,.

So i write a simple script to done this task. Before running the script make sure you have RSAT tools installed.

Download Link: http://gallery.technet.microsoft.com/scriptcenter/Get-Active-Directory-5a51444a 

This script generates a HTML formatted Report file in your desktop folder.
That reports contain the information on :
  • Forest Name
  • Forest Mode
  • Forest Domains
  • Domain Naming Master
  • Schema Master
  • Global Catalog Servers
  • Forest Domain Sites
  • Domain Name
  • Domain NetBios Name
  • Domain Mode
  • PDC Emulator
  • InfraStructure Master
  • Replicated Servers
Screenshot of the script.
05-09-2012 15-40-18
Download Link: http://gallery.technet.microsoft.com/scriptcenter/Get-Active-Directory-5a51444a 

Thanks
Aman Dhally
join aman on facebook Join aman on Linkedin follow aman on Twitter

Monday, July 2, 2012

Find Specific commands in a loaded module in PowerShell.

 

Hi,

Today i am working with few cmdlets and loaded modules in powershell and then i need to find a cmdlet but rather then find it on whole loaded module i want to search it in to a specific module.

for example.

To find all cmdlets which have "ADD" word,   we may run this command.

 Get-Command -Name *add*
02-07-2012 11-48-21 
When we run the above command it list all cmdlets which have "ADD" in  them. but out target is to find all cmdlet  which have "Add" word in it  on in to a specific module, to achieve it just add -Module and a Module Name . simple 
Get-Command -Name *add* -Module ActiveDirectory 

02-07-2012 11-51-32


Simple. Now it showing all cmdlets which have "Add" word. :)


Thanks


Thanks!


Aman Dhally


Buy-More-Twitter-Followers   4fb29548b6adc