Skip to content
neztach edited this page Aug 31, 2023 · 1 revision
Code Explanation
Get-PSDrive
List all the PSDrives on the system
New-PSDrive -Name videos -PSProvider Filesystem -Root x:\data\content\videos
Create a new PSDrive that points to a filesystem location
New-PSDrive -Name h -PSProvider FileSystem -Root '\\storage\h$\data' -Persist
Create a persistent mount on a drive letter, visible in Windows Explorer
Set-Location -Path videos:
Switch into PSDrive context
Remove-PSDrive -Name xyz
Delete a PSDrive

Clone this wiki locally