Active Directory · PowerShell

powershell & Active Directory: Find all users who have “Password Never Expires” enabled using Powershell.

Hi, In domain controller environment we all have some password policies set. In some organizations the users password is expired in 60 days in some 90 or in 180 Days. User’s password must expired in the defined period, changing password often is a good security policy. But when we create a user account some time… Continue reading powershell & Active Directory: Find all users who have “Password Never Expires” enabled using Powershell.

Active Directory · PowerShell

Powershell and Active Directory: Find Active Directory users in a particular Organizational Unit whose Script Path is not set or blank using Powershell.

  Hi, If we are using “Active Directory” then one this is sure that 98% we are using some login scripts. Sometime while creating users we forget to mentioned to specify the login script in account. My task of today is to find all users accounts those have no login script defined in their accounts.… Continue reading Powershell and Active Directory: Find Active Directory users in a particular Organizational Unit whose Script Path is not set or blank using Powershell.

Active Directory · PowerShell

Powershell and Active Directory: Find all Active Directory users whose CITY property field in blank.

  Hi, Me again , yes yes i know , now you are going to ask me ,,”Aman” what is your task for the day”,, ok ok telling you..Today my manager told me to find all  active directory users which don’t have the CITY field set or those users whose CITY field is blank in… Continue reading Powershell and Active Directory: Find all Active Directory users whose CITY property field in blank.

Active Directory · PowerShell

Powershell and Active Directory: Find all organizational unit containers [OU] in Active Directory using Powershell.

  Hi, These days i think i am only and only working with Active Directory.  My Manager give me the task to show him the all Organizational Unit Container , so that we can re-arrange them and remove the OU those are not required any longer. Seriously i don’t know any way to do this.… Continue reading Powershell and Active Directory: Find all organizational unit containers [OU] in Active Directory using Powershell.

Active Directory · PowerShell

Powershell and Active Directory: Find inactive Computer Accounts in Active Directory using Powershell.

  HI, As you know my IT manager always keep me busy. These days we are cleaning our Active Directory. My Today’s “Target of the Day” is to find all in-active computer accounts. first i start thinking how to do it ? to use some filter in “Active Directory Computer and users” or i need… Continue reading Powershell and Active Directory: Find inactive Computer Accounts in Active Directory using Powershell.