We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://github.com/dsccommunity/StorageDsc/blob/dev/Examples/Resources/MountImage/1-MountImage_DismountISO.ps1
Use the above example does not seem to work for me on Windows Server 2019 with an ISO mounted to drive Z:
configuration MountImage_DismountISO { Import-DscResource -ModuleName StorageDsc MountImage ISO { ImagePath = 'c:\software\SQLServer2019-x64-ENU-Dev.iso' DriveLetter = 'Z' Ensure = 'Absent' } }
The error returned:
PowerShell DSC resource MSFT_MountImage failed to execute Test-TargetResource functionality with error message: System.InvalidOperationException: Ensure is 'Absent' but 'DriveLetter' was specified. + CategoryInfo : InvalidOperation: (:) [], CimException + FullyQualifiedErrorId : ProviderOperationExecutionFailure + PSComputerName : localhost
The text was updated successfully, but these errors were encountered:
fixes dsccommunity#221
800e01e
The drive letter should not be provided when wanting to ensure an ISO is no longer mounted.
Merge pull request #249 from dsccommunity/Issue-221
277890f
Correct Example MountImage Dismount - Fixes #221
Successfully merging a pull request may close this issue.
https://github.com/dsccommunity/StorageDsc/blob/dev/Examples/Resources/MountImage/1-MountImage_DismountISO.ps1
Use the above example does not seem to work for me on Windows Server 2019 with an ISO mounted to drive Z:
The error returned:
The text was updated successfully, but these errors were encountered: