💾 Drive Management
DrivesMap and disconnect network drives, check disk space, and fix drives that aren't showing.
Map & Disconnect Network Drives
| # | What to Do | How to Do It |
|---|---|---|
| 1 | Map a network drive | Open File Explorer > This PC > Map network drive. Enter the folder path and check Reconnect at sign-in. |
| 2 | Disconnect network drive | Open File Explorer > This PC. Right-click the mapped drive > Disconnect. |
Disk Space & Cleanup
| # | What to Do | How to Do It |
|---|---|---|
| 1 | Check disk space | Open File Explorer and look at your drives. Right-click a drive > Properties to see used/free space. |
| 2 | Run disk cleanup | Search for Disk Cleanup in Start. Select drive C:. Check items to delete and click OK. |
Troubleshooting
| # | Problem | Fix |
|---|---|---|
| 1 | Drive not showing in File Explorer | Open Disk Management (search in Start). Right-click the drive and assign a drive letter. |
| 2 | Network drive disconnects on reboot | Re-map the drive and check Reconnect at sign-in. Or use the persistent net use one-liner below. |
Quick Reference — One-Liners
| Task | Command (PowerShell) |
|---|---|
| Map a network drive (persistent) | net use Z: \\server\share /persistent:yes |
| Disconnect all network drives | net use * /delete /yes |
| Check disk space (all drives) | Get-PSDrive -PSProvider FileSystem | Select-Object Name, @{N="Used(GB)";E={[math]::Round($_.Used/1GB,1)}}, @{N="Free(GB)";E={[math]::Round($_.Free/1GB,1)}} |
| List mapped drives | Get-SmbMapping | Select-Object LocalPath, RemotePath, Status |
| Run disk cleanup silently | cleanmgr /sagerun:1 |
| Open Disk Management | Start-Process diskmgmt.msc |
GreenHornet IT