Sunday, December 30, 2018

Export Users From Active Directory

This script will help to Administrator to export the AD users with required Properties.
In this given examples we have Email Address of the the AD users (called as Identity), with the help of this given Identity we will export the users with required properties .



# This is script is used to export the users Properties by any Specific given Identity in Active directory
# Here we have emmail Address of the users, we will export other properties of the users.

$Table = @()

# List of users identity like emailID,UPN,loginID etc

$list= Get-Content C:\Temp\mail.txt
foreach($item in $list){
$user=Get-ADUser -Filter{EmailAddress -like $item} -Properties *
$hitemDetails = New-Object -TypeName psobject -Property @{
username=$user.SamAccountname
Name=$user.GivenName
lastpwset=$user.PasswordLastSet
PW=$user.pwdLastSet
Email=$user.EmailAddress
}
$Table +=$hitemDetails }
# Output as CSV file
$Table|Export-Csv -Path C:\Temp\result.csv





Monday, January 22, 2018

Azure Resource Manager


What is Azure Resource Manager:

As we know our Infrastructure is made up of various components such as : vm, Storage, network and web app etc, all these are related entities and integrated as single entity, Azure Resource manager is a solution to work with all resource as a group. We can deploy, update and delete all the resources for solution in single operation. There are some basic terms need to understand for Resource manager.
  •  Resource: A manageable item available in azure like VM, Storage, Web APP .
  •   Resource Group: It is a container which holds all the Resource, form resource management.
  •   Resource Manager Template:   A JSON file that helps to deploy one or more resource, the template is used to deploy repeatedly.


Why Resource Manager?
  • We can manage or monitor all the resources as a group.
  •  We can manage the infrastructure by template rather than script.
  •  We can tag the resources to organize.



Featured post

System-preferred multifactor authentication (MFA)

Popular Posts