- Trending Categories
- Data Structure
- Operating System
- C Programming
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to dismount the ISO file using PowerShell?
To dismount the ISO file on the Windows Server using PowerShell, we need to use the Dismount−DiskImage command. When you use this command, you need to use the same path used for mounting the disk image.
In this example, we have a disk mounted on E: on the local server, that we can check using the windows explorer or cmdlets.
We have the source ISO image stored at F: drive, so we can dismount the image using the below command.
ISO Disk will be mounted from the E:
To dismount the disk on the remote server, we can use the CIMSession command.
$sess = New−CimSession −ComputerName Labmachine2k12 Dismount−DiskImage −ImagePath F:\Windows_Server_2016_Datacenter.ISO − CimSession $sess
In the above example, the ISO file will be dismounted from the LabMachine2k12 server, and that ImagePath should exist on the remote machine.
- How to mount the ISO file using PowerShell?
- How to search in the file using PowerShell?
- How to edit the CSV file using PowerShell?
- How to install the MSI file using PowerShell?
- How to get the file extension using PowerShell?
- How to delete all the file contents using PowerShell?
- How to read the windows host file using PowerShell?
- How to convert JSON file to CSV file using PowerShell?
- How to install MSI file using batch file in PowerShell?
- How to check if the file is empty using PowerShell?
- How to update the windows host file entry using PowerShell?
- How to create a temporary file using PowerShell?
- How to retrieve CSV file headers using PowerShell?
- How to add an attribute to the XML file using Powershell?
- How to install MSI file to the custom directory using PowerShell?