Monday, May 14, 2012

Preparing scripts for Exporting details from active directory or Exchange

Observed many of my colleagues looking for ready  scripts  in internet for exporting details from AD / Exchange.
Infact its very easy using cmdlets / AD query etc. If you know little bit of excel vlookup / pivot table  you can do comparisons / appending etc easily on output files.

Eg: If you want to export any attributes of objects ( here users ), you can use any of below.
1. AD query ( in AD users & computers) ( eg: you can go for User with business phone present., right click on results & do add /remove columns to add required fields, select all & export to csv)
2. csvde -d "DC=domainname,DC=COM" -f result.csv -r “(&(objectClass=user)(objectCategory=person)” -l "list of attributes seperated in comma "
3. dsquery  / dsget user commands
4. Powershell ( cmdlets like Get-user OR Get-mailbox  etc )

Friday, November 4, 2011

At least what you should know about DAG

1. Its a combination of SCR & CCR
2. Its Limited dependancy with WindowsFailoverCluster. DAG uses Windows Failover cluster,heartbeat,& filesharewitness etc.but we neeed not to mangae it from Failover cluster console & its not a full fledged Failover cluster.
3. Active manager ( Primary Active mgrs,Standby Active mgrs) component which runs in each mailbox svr takes care about failover/switch over instead of Exchange cluster resource DLL ( clusres.dll)
4. CCR cannot cooexist with any other Role,Whereas DAG node can cooexist with any other exch role.
5. We need not to deploy DAG intially itself,we can create & add DAG nodes at any point in time.thus its scalable too.

SCHEMA VERSIONS -Operating System & MS Exchange

How do you find Schema Versions -Use dsquery or ADSIEDIT


13 - Windows 2000 Server
30 - Windows Server 2003 RTM, Windows 2003 With Service Pack 1, Windows 2003 With Service Pack 2

Exchange 2010 Features

1. DAG ( Database Availability Group)
2. Outlook WebApp almost like MS Outlook
3. Conversation view,Able to attch mails from OWA itself.
4. Mail Tips
5. No storage groups

Thursday, March 3, 2011

How to export SMTP Relay IPs ?

export SMTP relay IPs
(Get-ReceiveConnector "MyConnector").RemoteIPRanges > C: \RemoteIPRanges.txt