Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Can I import a dynamic disk using PowerShell?

Posted on 2009-04-06
3
Medium Priority
?
842 Views
Last Modified: 2012-05-06
Hi,

I'm a newbie at this - I need to import a SAN-based snapshot of a dynamic disk on a Windows 2003 server for backups. The SAN vendor tools work perfectly with basic disks, but not with dynamic, so I'm trying to work out a way to automate the import of the dynamic disk database using PowerShell.

Any thoughts gratefully received!
0
Comment
Question by:Duncan Meyers
3 Comments
 
LVL 18

Accepted Solution

by:
BSonPosh earned 2000 total points
ID: 24087158
oye! I would probably start with DiskPart.exe

I don't know of a way to do this with Powershell without writing your own API wrapper. I assume MS never thought someone would want to script this :)
0
 
LVL 30

Author Closing Comment

by:Duncan Meyers
ID: 31567305
Thanks! Diskpart will do exactly what I want.
0
 

Expert Comment

by:astout
ID: 34484570
meyersd, could you explain how you managed to use diskpart to automate this?  I am faced with the exact same issue at the moment.  I am unsure how to use diskpart to identify the newly mapped snapshot from the SAN and then to import it.

Thanks
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
My attempt to use PowerShell and other great resources found online to simplify the deployment of Office 365 ProPlus client components to any workstation that needs it, regardless of existing Office components that may be needing attention.
Loops Section Overview
Screencast - Getting to Know the Pipeline

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question