Archiv pro měsíc: Prosinec 2011

dsmod – useful commands

Get members of group dsget user „CN=UserName,OU=xxxxx,,DC=domain,DC=domain“ -memberof -expand dsget group „CN=GroupName,DC=domain,DC=domain“ -members Get inactive computers dsquery computer -inactive 8 -limit 500 „OU=xxxxx,,DC=domain,DC=domain“ inactive = weeks default limit is 100 objects

Rubriky: Active Directory | Komentáře nejsou povolené u textu s názvem dsmod – useful commands

Commands to allow using AD Trust -SID History

source domain – source.com target domain – target.com On target domain DC netdom trust source.com /d:target.com /enablesidhistory:yes netdom trust target.com /d:source.com /enablesidhistory:yes netdom trust source.com /d:target.com /quarantine:no    

Rubriky: Active Directory | Komentáře nejsou povolené u textu s názvem Commands to allow using AD Trust -SID History

How to tell if lastLogontimeStamp is in sync

1. Using repadmin to check the value of lastLogontimeStamp on all DC’s in a domain for one user: repadmin /showattr * (or put name of DC server) /attrs:lastLogontimeStamp Example: repadmin /showattr * CN=user1,OU=accounting,DC=domain,dc=com /attrs:lastLogontimeStamp 2. Using repadmin to dump the … Celý příspěvek

Rubriky: Active Directory | Komentáře nejsou povolené u textu s názvem How to tell if lastLogontimeStamp is in sync

How create new mailbox from powershell Exchange 2007

$password = Read-Host „Enter password“ -AsSecureString New-Mailbox -Name ‚test_user2‘ -Alias ‚test_user2‘ -OrganizationalUnit ‚FQDNdomain/OU/OU‘ -UserPrincipalName ‚test_user2@domain‘ -SamAccountName ‚test_user2‘ -FirstName ‚test_user2‘ -Initials “ -LastName “ -Password $password -ResetPasswordOnNextLogon $false -Database ‚NAMEOFEXCHANGESERVER\NAMEOFMAILBOXGROUP\MAILBOXDATABASE‘ create distribution group over powershell new-DistributionGroup -Name ‚test_distribution_group1‘ -Type ‚Distribution‘ -OrganizationalUnit … Celý příspěvek

Rubriky: Exchange Server / Exchange Online | Komentáře nejsou povolené u textu s názvem How create new mailbox from powershell Exchange 2007