-
Below powershell helps to get the list of user count from the Active Directory $Domain = 'LDAP://DC=domain;DC=com' $Root = New-Object DirectoryServices.DirectoryEntry $Domain $select = New-Object DirectoryServices.DirectorySearcher $select.SearchRoot = $root $adobj= $select.findall() |? {$_.properties...
-
Some times we may wanted to get list of users last logon time. This command helps you the get list of all the users who lastlogontimestamp is older then 30 days or 60 days Get-QADUser -sizeLimit 0 | where {$_.lastlogontimestamp -lt (get-date).AddDays(-30)} | Select NAme,lastlogontimestamp Get-QADUser...
-
Widows 2008 R2 comes with powershell v2 by default. and added with 76 new Ad cmdlets and Ad provders New-ADOrganizationalUnit -Name "OUname" -ProtectedFromAccidentalDeletion $true This command creates new OU under the root. If we wanted created OU in specific path then we have to provide the...
-
Am trying to write my first script to solve a real need and my lack of experience with PS is showing. Any help would be appreciated..... Need to write a routine to do a bulk add of Computers to a Global Group. The computer names only are contained in an Excel file and need to be added to a group that...
Posted to
Active Directory
(Forum)
by
seberle
on
10-07-2010
Filed under: Active Directory, PowerShell, Active Directory Management, Add Group Membership, Group Membership
-
Steve Schofield recently posted an article how to setup FTP User Isolation and Active Directory together. In the post, he mentioned the need to engage your AD administrator to update the two attributes. Read more
-
Richard Siddaway has written a post demonstrating how to PowerShell to access the physical topology of Active Directory Sites using the ActiveDirectorySite object. Read more
-
Here is a blog post that has some script examples on how to audit your Active Directory using PowerShell using Quest QAD Cmdlets coupled with some recursion techniques. Read More