Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Dismounting Disk #49

Open
mvz00 opened this issue Oct 19, 2021 · 1 comment
Open

Error Dismounting Disk #49

mvz00 opened this issue Oct 19, 2021 · 1 comment

Comments

@mvz00
Copy link

mvz00 commented Oct 19, 2021

Script is working great, however I receive an error on some disks when running in recursive mode. Looks like it cannot import the module but when I run the command (Import-Module Storage) manually it works without issue.

Get-RunspaceData : The 'Dismount-DiskImage' command was found in the module 'Storage', but the module could not be loaded. For more information, run 'Import-Module Storage'. At C:\scripts\Dependencies\Invoke-FsShrinkDisk.ps1:666 char:17 + Get-RunspaceData + ~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Dismount-DiskImage:String) [Write-Error], CommandNotFoundException + FullyQualifiedErrorId : CouldNotAutoloadMatchingModule,Get-RunspaceData

@mav147
Copy link

mav147 commented Feb 24, 2022

We have had this issue intermittently too, previously it has only been 3 or 4 VHDs out of many, so not a huge deal but last night the shrink script failed to dismount all of them, causing chaos this morning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants