Active Directory Search Scripts Active Directory Search Scripts ( PowerShell)


Choose Columns
 TitleDescriptionRatingMy Rating
PowerShell Search for a User with a Specified SAMAccountName Sample script that searches Active Directory for a user with the sAMAccountName kenmyer. The sAMAccountName attribute is replicated to the Global Catalog. This means you can connect to a Global Catalog server and search across the forest for a SAM Account Name.
(0 votes)
Login to vote!
PowerShell Search for All Users Who Must Change Their Password On Their Next Logon Sample script that searches Active Directory for all the users who must change their password on their next logon. The pwdLastSet attribute is not replicated to the Global Catalog; you cannot connect to a Global Catalog server and search across the forest for users whose passwords must be reset the next time they log on.
(0 votes)
Login to vote!
PowerShell Search for All Users Who Have Remote Access Dial In Permissions Sample script that searches Active Directory for all the users who have remote access dial-in permissions. The msNPAllowDialin attribute is not replicated to the Global Catalog; you cannot connect to a Global Catalog server and search across the forest for users with remote dial-in permissions. Note that this attribute is not automatically populated any time you create a user account.
(0 votes)
Login to vote!
PowerShell Search for All Users Who Have Logged On at Least Once Sample script that searches Active Directory for all the users who gave logged on to a domain controller at least once. The logonCount attribute is not replicated to the Global Catalog; you cannot connect to a Global Catalog server and search across the forest for users who have logged on a specified number of times. Note that this attribute is not replicated within a domain, either. To determine the number of times a user has logged on, you will have to retrieve this value from each domain controller.
(0 votes)
Login to vote!
PowerShell Search for All Users Who Have a Home Directory Sample script that searches Active Directory for all the users who have a home directory. The homeDirectory attribute is not replicated to the Global Catalog; you cannot connect to a Global Catalog server and search across the forest for all users who have an assigned home directory. Note that this attribute is not automatically populated any time you create a user account.
(0 votes)
Login to vote!
PowerShell Search for All Users in a Specified Office Location Sample script that searches Active Directory for all the users in Building 45/1675. The physicalDeliveryOfficeName attribute is not replicated to the Global Catalog; you cannot connect to a Global Catalog server and search across the forest for users from a specific office location. Note that this attribute is not automatically populated any time you create a user account.
(0 votes)
Login to vote!
PowerShell Search for All Users in a Specified Company Sample script that searches Active Directory for all the users in a domain from the Contoso company. The company attribute is not replicated to the Global Catalog; you cannot connect to a Global Catalog server and search across the forest for users from a specified company. Note that this attribute is not automatically populated any time you create a user account.
(0 votes)
Login to vote!
PowerShell Search for All Users in a Department Sample script that searches Active Directory for all the users in the Finance department. The Department attribute is not replicated to the Global Catalog; you cannot connect to a Global Catalog server and search across the forest for users from a specific department. Note that this attribute is not automatically populated any time you create a user account.
(0 votes)
Login to vote!
PowerShell Search for All Users Having a Specified Exchange Server Sample script that searches Active Directory for all the users that have the Exchange server o=fabrikam/ou=First Administrative Group/cn=Configuration/cn=Servers/cn=atl-msg-01. The msExchHomeServerName attribute is replicated to the Global Catalog. This means you can connect to a Global Catalog server and search across the forest for users having a specified Exchange server. This attribute is available only if you have installed Microsoft Exchange.
(0 votes)
Login to vote!
PowerShell Search for All Users by the Date Their Account was Last Modified Sample script that searches Active Directory for all user accounts modified on October 1, 2007 or later. The whenChanged attribute is replicated to the Global Catalog. This means you can connect to a Global Catalog server and search across the forest for users by the date their account was last modified.
(0 votes)
Login to vote!
Previous Page   Next Page Page Size:

RSSWiseSoft.co.uk Articles RSS Feed