Exchange 07 users mailbox database

This forum can be browsed by the general public. Posting is no longer allowed as the product has been discontinued.
This topic is 15 years and 4 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
lostangel556
Posts: 11
Last visit: Mon Dec 01, 2008 6:54 am

Exchange 07 users mailbox database

Post by lostangel556 »

Hi There,
I'm fairly new to using the exchange powershell so please bear with me. I'm making an script to create an user mailbox on reciept of thier Samaccountname.
Im having some problems gettings the details of an users mailbox. More specifically the mailbox database and store name. I cant seem to find the correct Cmdlet to show this for an individual user.
I dont suppose anyone knows what this is or an way which i can get them?
Many Thanks

p.s. i have the below script which will return an given commands results, and i use the language AutoIt (if you can help as if it is an VB script, i can convert)

Code: Select all

 Func Exchange2007MailboxDetails($strUser,$intWidth)
    Const $OUTPUT_CONSOLE = 0
    Const $OUTPUT_WINDOW = 1
    Const $OUTPUT_BUFFER = 2
 
 $strPsCmd = "get-mailbox " & $strUser
    $objActiveXPosh = ObjCreate("SAPIEN.ActiveXPoSH")
    $objActiveXPosh.Init("True")
    $objActiveXPosh.OutputMode = $OUTPUT_BUFFER ; Set output to window
    $objActiveXPosh.OutputWidth = $intWidth
 $objActiveXPosh.Execute("Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin")
    $objActiveXPosh.Execute($strPsCmd)
    $ExecPowerShellCommand = $objActiveXPosh.OutputString
    $objActiveXPosh.ClearOutput()
    $objActiveXPosh = ""
EndFunc
User avatar
Alexander Riedel
Posts: 8488
Last visit: Tue Apr 16, 2024 8:42 am
Answers: 20
Been upvoted: 37 times

Exchange 07 users mailbox database

Post by Alexander Riedel »

This seems to be more a PowerShell specific problem.
I'd suggest you post the PowerShell specific part over at www.scriptinganswers.com in the PowerShell forum.
I am sure someone there knows exactly what you need.

Alex
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
lostangel556
Posts: 11
Last visit: Mon Dec 01, 2008 6:54 am

Exchange 07 users mailbox database

Post by lostangel556 »

Many thanks, ill head over there now.
This topic is 15 years and 4 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.