Link to home
Start Free TrialLog in
Avatar of doctorbill
doctorbillFlag for United Kingdom of Great Britain and Northern Ireland

asked on

exchange power shell

I am running this on our hosted exchange:
"New-MailboxExportRequest -Mailbox David.Dennis -IncludeFolders "#IContacts#" -FilePath \\inv-ex2013-mbx1\PST\DavidDennis"
The error I get is:
Object David.Dennis couldn't be found on inv-dc2.inventas.co.uk
I have tried using "" for filepath, and David Dennis as name
The server I am running the script on is inv-ex2013-mbx1 NOT inv-dc2
Any idea why the script is trying to refer to inv-dc2 instead of inv-ex2013-mbx1?

If I run the command:  "Get -Mailbox -Identity David.Dennis" it works fine and the mailbox is found
Avatar of Marine Lines
Marine Lines

Sounds like you opened powershell and not the Exchange Management Shell.

Make sure you are running the command from the Exchange management shell and logged in as an administrator and running the shell as administrator.
SOLUTION
Avatar of Marine Lines
Marine Lines

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Raheman M. Abdul
Raheman M. Abdul
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of doctorbill

ASKER

I just checked - it is exchange powershell
Running on a hosted exchange

So you suggest:
"New-MailboxExportRequest -Mailbox David.Dennis -DomainController inv-ex2013-mbx1 -IncludeFolders "#IContacts#" -FilePath \\inv-ex2013-mbx1\PST\DavidDennis"

Correct?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I tried two commands - attached
Capture.PNG
ping to inv-ex2013-mbx1 and inv-ex2013-mbx1.inventas.co.uk are both successful
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
inv-dc2 and inv-dc1
I tried both and get - see attached
Capture.PNG
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The Get-Mailbox for the user works - see above
The FQDN is inv-ex2013-mbx1
I think we need to leave it there - this looks as if it has to do with the exchange being a hosted environment
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks