Mount Network Share
You can find the instructions here.
Simple
New-PSDrive -Name "P" -PSProvider "FileSystem" -Root "\\192.168.0.223\Backup"
With Credentials
New-PSDrive -Name "P" -Credential edafo.local\itmaster -PSProvider "FileSystem" -Root "\\192.168.0.223\Backup
With Credentials & Permanent
New-PSDrive -Name "P" -Persist -Credential edafo.local\itmaster -PSProvider "FileSystem" -Root "\\192.168.0.223\Backup
Remove Network Share
Get-PSDrive X, S | Remove-PSDrive
List All Mapped Drives
Get-PSDrive
Mount a VHDX file and access Virtual Machine disk
Mount-VHD <vhd path & filename>
Disk partitioning
Diskpart
List Disk Disk ### Status Size Free Dyn Gpt -------- ------------- ------- ------- --- --- Disk 0 Online 465 GB 0 B Disk 1 Online 1862 GB 0 B Disk 2 Online 1863 GB 18 MB * select disk X list partition select partition Y list volume select volume Z assign letter=D exit
Dismount a VHD disk
Get-Disk
Dismount-VHD -DiskNumber 6