Tuesday, August 5, 2014

Archive Database Statistics

[PS] C:\Windows\system32>Get-MailboxStatistics -Database "Archive Database Name"
Read more...

ESX Host Phyical Network Adapters MAC Addresses

Execute the command below in console or SSH session.

esxcfg-nics -l
Read more...

Friday, July 25, 2014

Disabled AD Account that have mailboxes

Please execute the command below in EMS;

get-Mailbox -resultsize unlimited | where { $_.ExchangeUserAccountControl -match “AccountDisabled”} | select name,database,organizationalunit | sort-object name | export-csv c:\disabledaccountswithmailbox.csv
Read more...

Sunday, June 8, 2014

New Local Move Request Archive Database Only

[PS] C:\Windows\system32>New-MoveRequest -Identity 'user.name' -ArchiveOnly -ArchiveTargetDatabase "TargetArchiveDBName"  -BadItemLimit 300 -AcceptLargeDataLoss


Read more...

Thursday, May 22, 2014

Enforce Minimum Password Length of 15 or More by using GPO

By Default you can not enforce user accounts to use more than 14 charachters passwords.

In order to increase this limit;

You should edit GptTmpl.inf file located in the address below;


\\domainname\SYSVOL\domainname\Policies$\PolicyGUID\Machine\Microsoft\Windows NT\SecEdit


How to find GUID for GPO



Read more...

How to find GUID for Group Policy Object (GPO)

 
 
cscript search.vbs "LDAP://dc=mydomain,dc=com" /C:"&(objectClass=groupPolicyContainer)(displayName=Default Domain Policy)" /P:name /S:SubTree
 


Read more...

Tuesday, April 22, 2014

Active Directory Query

Active Directory Query for Enabled user

(&(objectCategory=person)(objectClass=user)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))


Active Directory Query for Disabled User

(&(objectCategory=person)(objectClass=user)(!sAMAccountType=805306370)(userAccountControl:1.2.840.113556.1.4.803:=2))

Password Never Expire Users

(&(objectCategory=person)(objectClass=user)(!sAMAccountType=805306370)(userAccountControl:1.2.840.113556.1.4.803:=65536))

Open Active Directory Users and Computers
Right Click your Domain name and Click Find
Choose Custom Search
Click Advanced TAB, paste the code. Click Find Now.
Read more...
 
span.fullpost {display:none;}