Moving DBs to new location via powershell

2009-06-04 Thread Oliver Marshall
Chaps,

Is there a way to move the mailstore DBs in exchange 2007 to a new location via 
the powershell? We need to schedule a transfer in the small hours of a Saturday 
morning and I figure that powershell is the best way, if possible, of doing it.

Olly

~ Ninja Email Security with Cloudmark Spam Engine Gets Image Spam ~
~ http://www.sunbeltsoftware.com/Ninja~

RE: Moving DBs to new location via powershell

2009-06-04 Thread Young, Philip
Hi Olly,

 

You should be able to do this with the move-storagegrouppath cmdlet. 

i.e. move-storagegrouppath -identity "SG1" -LogFolderPath:"d:\newsgpath"
-SystemFolderPath:"d:\newsgpath" -force (this stops it prompting you to
confirm)

 

Regards
Phil 

  _  

From: Oliver Marshall [mailto:oliver.marsh...@g2support.com] 
Sent: 04 June 2009 10:19
To: MS-Exchange Admin Issues
Subject: Moving DBs to new location via powershell

 

Chaps,

 

Is there a way to move the mailstore DBs in exchange 2007 to a new location
via the powershell? We need to schedule a transfer in the small hours of a
Saturday morning and I figure that powershell is the best way, if possible,
of doing it. 

 

Olly

 



-
Confidentiality Notice: This e-mail transmission 
may contain confidential or legally privileged 
information that is intended only for the individual 
or entity named in the e-mail address. If you are not 
the intended recipient, you are hereby notified that 
any disclosure, copying, distribution, or reliance 
upon the contents of this e-mail is strictly prohibited. 

If you have received this e-mail transmission in error, 
please reply to the sender, so that we can arrange 
for proper delivery, and then please delete the message 
from your inbox. Thank you.


~ Ninja Email Security with Cloudmark Spam Engine Gets Image Spam ~
~ http://www.sunbeltsoftware.com/Ninja~

RE: Moving DBs to new location via powershell

2009-06-04 Thread Oliver Marshall
Cheers Philip.

Suddenly I'm nervous about scheduling it. May stay up and do it by hand :)

Olly

--
G2 Support
Network Support : Online Backups : Server Management

Web: www.g2support.com
Twitter: g2support<http://twitter.com/home?stat...@g2support>
Newsletter: www.g2support.com/newsletter



From: Young, Philip [mailto:philip.yo...@covance.com]
Sent: 04 June 2009 10:47
To: MS-Exchange Admin Issues
Subject: RE: Moving DBs to new location via powershell

Hi Olly,

You should be able to do this with the move-storagegrouppath cmdlet.
i.e. move-storagegrouppath -identity "SG1" -LogFolderPath:"d:\newsgpath" 
-SystemFolderPath:"d:\newsgpath" -force (this stops it prompting you to confirm)


Regards
Phil


From: Oliver Marshall [mailto:oliver.marsh...@g2support.com]
Sent: 04 June 2009 10:19
To: MS-Exchange Admin Issues
Subject: Moving DBs to new location via powershell

Chaps,

Is there a way to move the mailstore DBs in exchange 2007 to a new location via 
the powershell? We need to schedule a transfer in the small hours of a Saturday 
morning and I figure that powershell is the best way, if possible, of doing it.

Olly




-
Confidentiality Notice: This e-mail transmission
may contain confidential or legally privileged
information that is intended only for the individual
or entity named in the e-mail address. If you are not
the intended recipient, you are hereby notified that
any disclosure, copying, distribution, or reliance
upon the contents of this e-mail is strictly prohibited.

If you have received this e-mail transmission in error,
please reply to the sender, so that we can arrange
for proper delivery, and then please delete the message
from your inbox. Thank you.



~ Ninja Email Security with Cloudmark Spam Engine Gets Image Spam ~
~ http://www.sunbeltsoftware.com/Ninja~

RE: Moving DBs to new location via powershell

2009-06-04 Thread Young, Philip
Oops, should end with -Force -Confirm:$False otherwise it will still prompt
you!

 

Cheers
Phil 

  _  

From: Young, Philip 
Sent: 04 June 2009 10:47
To: MS-Exchange Admin Issues
Subject: RE: Moving DBs to new location via powershell

 

Hi Olly,

 

You should be able to do this with the move-storagegrouppath cmdlet. 

i.e. move-storagegrouppath -identity "SG1" -LogFolderPath:"d:\newsgpath"
-SystemFolderPath:"d:\newsgpath" -force (this stops it prompting you to
confirm)

 

Regards
Phil 

  _  

From: Oliver Marshall [mailto:oliver.marsh...@g2support.com] 
Sent: 04 June 2009 10:19
To: MS-Exchange Admin Issues
Subject: Moving DBs to new location via powershell

 

Chaps,

 

Is there a way to move the mailstore DBs in exchange 2007 to a new location
via the powershell? We need to schedule a transfer in the small hours of a
Saturday morning and I figure that powershell is the best way, if possible,
of doing it. 

 

Olly

 



-
Confidentiality Notice: This e-mail transmission 
may contain confidential or legally privileged 
information that is intended only for the individual 
or entity named in the e-mail address. If you are not 
the intended recipient, you are hereby notified that 
any disclosure, copying, distribution, or reliance 
upon the contents of this e-mail is strictly prohibited. 

If you have received this e-mail transmission in error, 
please reply to the sender, so that we can arrange 
for proper delivery, and then please delete the message 
from your inbox. Thank you.

 


~ Ninja Email Security with Cloudmark Spam Engine Gets Image Spam ~
~ http://www.sunbeltsoftware.com/Ninja~

RE: Moving DBs to new location via powershell

2009-06-04 Thread Young, Philip
And of course I've left the databases behind so you'll also need

Move-DatabasePath -Identity "Storage GroupName\Database name"
-EdbFilePath:"F:\Storage Groupspath\Database name\dbname.edb" -Force
-Confirm:$False.

 

Regards

Phil

 

  _  

From: Young, Philip 
Sent: 04 June 2009 11:07
To: MS-Exchange Admin Issues
Subject: RE: Moving DBs to new location via powershell

 

Oops, should end with -Force -Confirm:$False otherwise it will still prompt
you!

 

Cheers
Phil 

  _  

From: Young, Philip 
Sent: 04 June 2009 10:47
To: MS-Exchange Admin Issues
Subject: RE: Moving DBs to new location via powershell

 

Hi Olly,

 

You should be able to do this with the move-storagegrouppath cmdlet. 

i.e. move-storagegrouppath -identity "SG1" -LogFolderPath:"d:\newsgpath"
-SystemFolderPath:"d:\newsgpath" -force (this stops it prompting you to
confirm)

 

Regards
Phil 

  _  

From: Oliver Marshall [mailto:oliver.marsh...@g2support.com] 
Sent: 04 June 2009 10:19
To: MS-Exchange Admin Issues
Subject: Moving DBs to new location via powershell

 

Chaps,

 

Is there a way to move the mailstore DBs in exchange 2007 to a new location
via the powershell? We need to schedule a transfer in the small hours of a
Saturday morning and I figure that powershell is the best way, if possible,
of doing it. 

 

Olly

 



-
Confidentiality Notice: This e-mail transmission 
may contain confidential or legally privileged 
information that is intended only for the individual 
or entity named in the e-mail address. If you are not 
the intended recipient, you are hereby notified that 
any disclosure, copying, distribution, or reliance 
upon the contents of this e-mail is strictly prohibited. 

If you have received this e-mail transmission in error, 
please reply to the sender, so that we can arrange 
for proper delivery, and then please delete the message 
from your inbox. Thank you.

 

 


~ Ninja Email Security with Cloudmark Spam Engine Gets Image Spam ~
~ http://www.sunbeltsoftware.com/Ninja~