jdonaghe
asked on
Set Harddrive On/Offline
I am trying to replicate a manual process I am doing in the disk management section of a server I am working with. The server is Windows 2008 R2 Standard.
1. I go into the Disk Management Section
2. Right click on a basic drive and select "Offline"
3. Change out my harddrive
4. Right click on the same basic drive and select "Online"
How can I replicate this process in VB.NET code? Is it possible?
1. I go into the Disk Management Section
2. Right click on a basic drive and select "Offline"
3. Change out my harddrive
4. Right click on the same basic drive and select "Online"
How can I replicate this process in VB.NET code? Is it possible?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Although both these solutions did not replicate the exact steps I would take on the 2008 server, both solutions worked fine. The only thing I found out was when I am ready to enable the drive again I had to wait 30 seconds to a minute to let the hardware recognize there was a drive there, then I would enable it. Thanks for your help.
ASKER