All Projects → RamblingCookieMonster → PSDiskPart

RamblingCookieMonster / PSDiskPart

Licence: MIT license
DiskPart PowerShell Module

Programming Languages

powershell
5483 projects

Projects that are alternatives of or similar to PSDiskPart

Vagrant Persistent Storage
A Vagrant plugin that creates a persistent storage and attaches it to guest machine.
Stars: ✭ 285 (+850%)
Mutual labels:  disk, storage
lethe
Secure drive wipe
Stars: ✭ 47 (+56.67%)
Mutual labels:  disk, storage
Storage
An iOS library for fast, easy, and safe threaded disk I/O.
Stars: ✭ 259 (+763.33%)
Mutual labels:  disk, storage
Easystash
🗳Easy data persistence in Swift
Stars: ✭ 303 (+910%)
Mutual labels:  disk, storage
Winspd
Windows Storage Proxy Driver - User mode disk storage
Stars: ✭ 335 (+1016.67%)
Mutual labels:  disk, storage
Node Disk Manager
Kubernetes Storage Device Management
Stars: ✭ 128 (+326.67%)
Mutual labels:  disk, storage
Binaryprefs
Rapidly fast and lightweight re-implementation of SharedPreferences which stores each preference in files separately, performs disk operations via NIO with memory mapped byte buffers and works IPC (between processes). Written from scratch.
Stars: ✭ 484 (+1513.33%)
Mutual labels:  disk, storage
BlobHelper
BlobHelper is a common, consistent storage interface for Microsoft Azure, Amazon S3, Komodo, Kvpbase, and local filesystem written in C#.
Stars: ✭ 23 (-23.33%)
Mutual labels:  disk, storage
birthday.py
🎉 A simple discord bot in discord.py that helps you understand the usage of SQL databases
Stars: ✭ 30 (+0%)
Mutual labels:  storage
metal-chests
Better alternative to IronChests
Stars: ✭ 13 (-56.67%)
Mutual labels:  storage
MusicX
MusicX is a music player 🎵 android app built using Kotlin and Jetpack Compose. It follows M.A.D. practices and hence is a good learning resource for beginners
Stars: ✭ 85 (+183.33%)
Mutual labels:  storage
awesome-storage
A curated list of storage open source tools. Backups, redundancy, sharing, distribution, encryption, etc.
Stars: ✭ 324 (+980%)
Mutual labels:  storage
homebrew-ceph-client
Homebrew tap for ceph client libraries
Stars: ✭ 22 (-26.67%)
Mutual labels:  storage
Hangfire.AzureDocumentDB
Azure DocumentDB storage provider for Hangfire
Stars: ✭ 14 (-53.33%)
Mutual labels:  storage
Warehousing
🏗️ Mod for Factorio. Store all the things! (We heard you like boxes, you packrat you!)
Stars: ✭ 27 (-10%)
Mutual labels:  storage
Pomegranate
🌳 A tiny skiplist based log-structured merge-tree written in Rust.
Stars: ✭ 20 (-33.33%)
Mutual labels:  storage
storage
A library to use Web Storage API with Observables
Stars: ✭ 43 (+43.33%)
Mutual labels:  storage
msbotframework-mongo-middlelayer
Microsoft Bot framework: Using MongoDB as storage for conversational states, data and context
Stars: ✭ 36 (+20%)
Mutual labels:  storage
torrentfs
A p2p file system for cortex with pure Golang
Stars: ✭ 27 (-10%)
Mutual labels:  storage
kesho
store cache any data type string, boolean, jsonObject, jsonArray, .....
Stars: ✭ 19 (-36.67%)
Mutual labels:  storage

Build status

DiskPart PowerShell Module

This is a PowerShell module for working with DiskPart. Newer Operating Systems include many commands to replace DiskPart; unfortunately, these have not been extended to down-level operating systems.

Please be wary and read through this before using it. While it works in my environment, you know the risks of working with diskpart.

Contributions to improve this would be more than welcome!

Caveats:

  • Minimal testing. Not something you want to hear with DiskPart.

#Functionality

Get DISK information:

  • Get DISK information

Get VOLUME information:

  • Get VOLUME information

Offline a disk

  • Offline a disk

Online a disk

  • Online a disk

#Instructions

# One time setup
    # Download the repository
    # Unblock the zip
    # Extract the PSDiskPart folder to a module path (e.g. $env:USERPROFILE\Documents\WindowsPowerShell\Modules\)

# Import the module.
    Import-Module PSDiskPart    #Alternatively, Import-Module \\Path\To\PSDiskPart

# Get commands in the module
    Get-Command -Module PSDiskPart

# Get help for a command
    Get-Help Get-DiskPartDisk -Full

# Get details about disks on the local computer and c-is-hyperv-1
    Get-DiskPartDisk -computername $ENV:COMPUTERNAME, c-is-hyperv-1

# Run a DiskPart script on SERVER1145, set disk 2 to online, clear the readonly attribute if it exists
# Mind the here string.  Ugly formatting necessary!
    
Invoke-DiskPartScript -ComputerName SERVER1145 -DiskPartText @"
select disk 2
online disk
attributes disk clear readonly
"@

#Notes

  • Thanks to Adam Conkle for the disk part parsing pieces.
  • This was written as a component to help simplify migrating to the Paravirtual SCSI Controller. I've seen disks come up offline more often than not.
  • Accompanying blog post (pretty much the stuff above, with more rambling)
  • TODO: More Pester tests
  • TODO: Refactor some of the DiskPart parsing. For example, PowerShell users might expect 'Yes' to be true, 'no' to be false
  • TODO: Add parameters to Get commands. For example, one should be able to get a specific disk, or limit output to 'list disk', rather than force 'detail disk'.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].