Thursday, November 19, 2009

DSA.MSC in Windows 7

To install dsa.msc on Windows 7 do following steps:-

1- Go to Control panel
2- go to Program and Features
3- and click "Turn windows features on or off"
4- ON the pop up windows expands "Remote Server administration Tools"
5- the click and expands "Role Administration Tools"
6- Ckeck the box "AD DS and AD LDS Tools" and click "OK"
Check administrative Tools in the program menu and Clcik AD option you want..

or type Dsa.msc on Run press enter.

Tuesday, November 17, 2009

Exchange 2007 Management Tools On a 32-Bit Operating System

When you try to install the Exchange 2007 Management Tools on a 32-bit operating system such as Windows XP SP2 or Windows Server 2003 machine, you got an error message:

"The image file D:\Setup.EXE is valid, but is for a machine type other than the current machine."

The reason for this error is because the Exchange 2007 setup require Windows Server 2003/2007 64-bit Edition to initiated the Setup.

The solution to this problem is to install the 32-bit version of the Exchange 2007 Management Tools instead.

1.Download 32 Bit Microsoft Exchange 2007 installation files Exchange Server 2007 - Evaluation Software.
2.Extract the installation file.
3.Install the following pre-requirements components:
•Microsoft .NET Framework Version 2.0
•Microsoft .NET Framework Update Required
•Microsoft Management Console 3.0 for Windows XP (KB907265)
•Microsoft Management Console 3.0 for Windows Server 2003 (KB907265)
•Windows PowerShell 1.0 English-Language Installation Package for Windows XP (KB926139)
•Windows PowerShell 1.0 English-Language Installation Package for Windows Server 2003 (KB926139)
1.Run "setup.exe" from the root of the folder from stage 2 on Windows Server 2003 SP1 (Standard or Enterprise Editions), Windows Server 2003 R2 (Standard or Enterprise Editions), or Windows XP Professional SP2.
2.Click on "Step 4: Install Microsoft Exchange" and click on the "Next" button.
3.Click to select the checkbox "I accept the terms in the license agreement".
4.Click on the "Next" button twice.
5.Choose " Custom Exchange Server Installation" and click on the "Next" button.
6.Mark the checkbox "Management Tools" and click on the "Next" button.
7.Enter the Exchange Organization name (if it did not get auto completed by the installation wizard) and click on the "Next" button.
8.Press on "Finish" button.

Exchange 2007 : Common Shell commands

Here are some common command used in exchange server 2007:-


Help
get-help
get-help verb/noun -detailed

User Objects
get-user sort-object name
get-user Measure-Object
get-user sort-object name -descending
get-user "name" format-list
get-user where-object {$_.distinguishedname -ilike '*ou=sales,dc=domain,dc=com'} Enable-mailbox -database 'servername\databasename'
get-user -filter {(recipienttype - eq 'user') - and (city -eq 'cityname')}

Recipients
enable-mailuser -identity name -externalemailaddress name@domain.com
enable-mailbox "displayname" -database "storagegroup\database"
set-mailbox name -hiddenfromaddresslistsenabled $true/$false -prohibitsendquota unlimited -primarysmtpaddress "name@domain.com"
new-mailbox -userprincipalname "name@domain.com" -alias name -database "name" -name name -organizationalunit name -Firstname name -lastname name -displayname "first last"
get-mailbox -database "server\database"
move-mailbox name -targetdatabase "server\database"
add-mailboxpermission name -user name -accessrights fullaccess
new-distributiongroup -name "name" -organizationalunit "name" -samacccountname "name" -type "security"
set-distributiongroup name -hiddenfromaddresslist $true
new-mailcontact -name "display name" -externalsmtpaddress "name@domain.com" -organizationalunit contractors
set-contact "name" -company "name"
enable-mailcontact "name" -externalemailaddress "name@domain.com"
get-mailboxstatistics "username" format-list
get-mailboxstatistics -server "name" format-list
get-mailboxstatistics -server "name" sort-object -property totalitemsize

Meeting Resources
new-mailbox -userprincipalname "name@domain.com" -alias name -database "name" -name name -organizationalunit name -displayname "name" -room/-equipment
set-mailboxcalendarsettings name -automateProcessings autoaccept
set-mailboxcalendarsettings name -resourcedelegate name

Mail Store
get-mailboxdatabase -server name set-mailboxdatabase -issuewarningquota 100mb -prohibitsendquota 100mb
mount-database databasename
dismount-database databasename
new-storagegroup name -server name
new-mailboxdatabase name -storagegroup name

Public Folders
new-publicfolder name -server name
set-publicfolder \name -replicas "server\database","server2\database2"
get-publicfolder \name
set-publicfolderdatabase "server\database" -usecustomreferralserverlist $true/$false -publicfolderreferralserverlist $null
get-publicfolderstatistics
enable-mailpublicfolder -i "\foldername"

Transport
new-accepteddomain -name "name" -domainname name.domain.com -domaintype authoritative
new-emailaddresspolicy -name "name" -includedrecipients allrecipients -conditionaldepartment "departmentname" -enabledemailaddresstemplate: "SMTP:%g.%s@mkt.adatum.com","%g.%s@adatum.com"
set-emailaddresspolicy "name" -Priority #
get-emailaddresspolicy
update-emailaddresspolicy "policyname"
get-queue
freeze-queue
unfreeze-queue

Edge Transport
new-edgesubscription -filename "filelocation"
start-edgesynchronization

Address List
new-addresslist -name "listname" -conditionaldepartment "departmentname" -includedrecipients mailboxusers -container "containername"
update-addresslist "listname"

Testing
test-mailflow
test-owaconnectivity
test-mapiconnectivity
test-servicehealth
test-systemhealth

Autodiscover
new-outlookprovider
get-outlookprovider
set-outlookprovider exch -server "servername"
remove-outlookprovider
new-autodiscovervirtualdirectory
get-autodiscovervirtualdirectory
set-autodiscovervirtualdirectory -externalurl URL -internalurl URL -path "location"

Out of Office
set-mailbox name -externaloofoptions internalonly/external

Outlook Web Access (OWA)
set-owavirtualdirectory -externalurl URL -internalurl URL

Count