none
Wapshere Powershell Activity help needed RRS feed

  • General discussion

  • Hi,

    I am trying to create a mailbox for a user using the following: http://www.wapshere.com/missmiis/powershell-activity

    From the FIM server (Sync/Service/Portal on same server) the FIMService account can create a mailbox using powershell and runas.

    I have registered all the components as per http://www.wapshere.com/missmiis/powershell-activity guide.

    Here is the rest of my setup:

    C:\FIM\Exchange.ps1 that contains:

    param($accountName)

    $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://<FQDN of Exchange 2010 server>/PowerShell/ -Authentication Kerberos

    Import-PSSession $Session

    The Worklow Activity is as follows:

    Powershell cmdlet: C:\FIM\exchange.ps1

    Powershell Parameters: enable-mailbox -identity adatum\$accountName -database 'mailbox database'

    powershell remote server address: <blank>

    powershell remote user: <blank>

    powershell remote password: <blank>

    Now the FIM Requests completes without error, but the mailbox is not created.

    Please could someone help me out?

    Kind thanks,

    SK


    Tuesday, October 2, 2012 8:08 AM

All replies

  • Although I haven't used Carol Wapshere's Powershell activity, it looks like you'll want to move the "Powershell parameters" bit to the bottom of the script in Exchange.ps1, and pass the account name as the parameter.

    As it stands, Exchange.ps1 does not "do" anything.

    Tuesday, October 2, 2012 10:04 PM
  • Thank you Steve, I eventually settled on the FIM Codeplex Powershell Activity.

    regards.

    Thursday, October 4, 2012 4:51 AM