You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
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
The text was updated successfully, but these errors were encountered: