Such as most products have, the setup from Exchange 2007 can be made unattented. This can partitially be done by specifying parameters after the setup command.

The first parameter, if you have your forest and domains prepped, is mode, with this parameter you can specify the mode setup will be running in: install, uninstall, upgrade or recover.

/mode:install

/mode:uninstall

/mode:upgrade

/mode:RecoverServer

The next parameter is role, with this parameter you can specify which rol(es) need to be install(ed) on the server:

/role(s):HubTransPort, HT, H installs the HUB Transport role

/role(s):ClientAccess, CA, C installs the Cient Access role

/role(s):MailBox, MB, M installs the HUB Transport role

/role(s):UnifiedMessaging, UM, U installs the Unified Messaging role

/role(s):EdgeTransport, ET, E installs theEdge Transport role

/role(s):ManagementTools, MT, T installs the Management Tools

It is possible to combine the parameters, for example:

/roles:H,C,M,T

The parameters above will install the Hub Transport, Client Access and Mailbox rols + the management tools.

Besided  the parameters already mentioned you can give up several other parameters for example to change the install directory, below an overview of a few of them:

  • /OrganizationName, /on with this parameter you can specify an Exchange organization, this parameter is needed when no Exchange environment is currently active.
  • /TargetDir, /twith this parameter you can specify the install directory, default it is %programfiles%\Microsoft\Exchange Server.
  • /DomainController, /dcwith this parameter you can specify the domaincontroller which is used for gathering the information that is needed and for writing some config issues in the Active Directory.
  • /UpdatesDir, /uif you don’t want to install all updates manually after the setup you can use this parameter to install them automatically.

Besides the already mentioned parameters there are parameters for preparing the forest and domain for Exchange 2007:

  •  /PrepareLegacyExchangePermissions, /pl when you have installed an earlier version of Exchange you can’t adjust the Active Directory for Exchange 2007. You should use this parameter to ensure that the previous Exchange versions will be working together with Exchange 2007. When you don’t use this parameter it could be that the Recipient Update Service doesn’t work OK anymore.
  • /PrepareSchema, /ps this parameter is used to prepare the schema for Exchange 2007. You should run the Exchange setup with this parameter on the Schema Master This parameter doesn’t need to be specified when using PrepareLegacyPermissions, when using that it will be automatically done.
  • /PrepareAD, /p with this parameter you will prepare the forest. This parameter will also run the PrepareDomain parameter/action.
  • /PrepareDomain, /pd  will ensure that the domain will be prepared for Exchange 2007.
  • /PrepareAllDomains, /pad  this parameter is the same as the previous one, only this one will prepare all domains and subdomains.

Besides all the parameters mentioned there are a lot of more parameters that you can use, a full overview can be found on this site.

Gepost in ~ Geen Reactie

Yes I passed the exam today, 70-236 with a score of 962 points. I did some research on the internet and heard some stories that it was a hard exam so I did prepare myself well before doing the exam. Now up to the next exam 70-237 there are no books for this exam so I will have to look how I can prepare for this exam. For those who are planning to do the 70-236 exam I can recommend the MS Press book.

Gepost in Blog ~ Geen Reactie

This tutorial will explain how you can create users via Powershell.

The first thing we need to do is start Exchange Management Shell, you will find it in the startmenu under  Microsoft Exchange Server 2007.

Powershell

As you can see above there are a few commands displayed for example a command is displayed to display the help functionality. There is also a nice joke build in the Exchange 2007 Powershell, when you type in get-exblog it opens Internet Explorer with the Exchange 2007 Community.

The next step is the command we will need to create the user, it will look something like the following:

New-Mailbox –alias <alias> -name <name> -Database <Database name> -OrganizationalUnit Users –UserPrincipalName <UPN value, example: johan@test.local>

When you execute this command there are a few parameters which are needed:

  • alias
  • name
  • database
  • organizationalunit
  • userprincipalname

Below an example, this command will create a user johan with an UPN johan@test.local  in the OU utrecht in the database mailbox store.

User aanmaken

When you execute the command there is one thing missing, the password, Powershell will ask you for it.

Wachtwoord invoeren

When you typed in a password the user will be created and the the result will be like the screen below:

De gebruiker is aangemaakt

Of course there are more possibilities, the user we just created doesn’t get assigned managed folders. By adding the parameter -ManagedFolderMailboxPolicy <name policy> the user will be assigned this policy and will get managed folders. There are a few other parameters:

  • ActiveSyncMailboxPolicy
  • ResetPasswordOnNextLogon
  • WhatIf

Especially the last command is interesting if you are not sure what you are doing. This parameter will execute the command but not for real. The result will be displayed after it did the test run, if the result is OK you can remove the WhatIf and run it for real.

Gepost in ~ Geen Reactie

Pagerank search phrase