https://github.com/ran-dall/dev-drive
PowerShell scripts 📜 to set up and manage a Dev Drive on Windows 11.
https://github.com/ran-dall/dev-drive
dev-drive powershell-scripts windows-11
Last synced: 2 months ago
JSON representation
PowerShell scripts 📜 to set up and manage a Dev Drive on Windows 11.
- Host: GitHub
- URL: https://github.com/ran-dall/dev-drive
- Owner: ran-dall
- License: mpl-2.0
- Created: 2024-06-30T02:36:24.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-06-30T02:37:40.000Z (12 months ago)
- Last Synced: 2025-04-05T14:26:39.961Z (3 months ago)
- Topics: dev-drive, powershell-scripts, windows-11
- Language: PowerShell
- Homepage:
- Size: 10.7 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dev Drive Scripts 📜
This repository contains PowerShell scripts designed to assist with setting up and administering a Development Drive (Dev Drive) on Windows 11. The Dev Drive is intended to enhance performance and efficiency for development-related tasks by utilizing the Resilient File System (ReFS).
## Scripts
### 1. 💽 `SetupDevDrive.ps1`
This script sets up the Dev Drive by configuring trust settings, antivirus filters, and file system filters. It includes the following key functions:
#### `Test-DevDriveTrusted`
- Tests if the Dev Drive is trusted.
#### `ManageAntiVirusFilter`
- Manages the antivirus filter setting on the Dev Drive.
#### `Get-DevDriveAllowedFilters`
- Retrieves allowed filters on the Dev Drive.
#### `Add-DevDriveFilters`
- Adds specified filters to the Dev Drive.
#### `PromptForFilters`
- Prompts the user to add default or custom filters to the Dev Drive.
### 2. 👤 `SetDevDriveOwner.ps1`
This script configures ownership and permissions for a Dev Drive. It includes the following functions:
#### `Set-DevDrivePermissions`
- Sets full control permissions for the current user on the specified Dev Drive.
- Hides the Dev Drive from other users by modifying the registry.#### `Test-DevDrivePermissions`
- Reviews and displays the current permissions for the specified Dev Drive.
### 3. 📦 `SetupDevDrivePackageCache.ps1`
This script sets up environment variables for package caches and moves existing caches to the Dev Drive. It includes the following functions:
#### `New-DirectoryIfNotExists`
- Creates a directories if they doesn't exist.
#### `Set-UserEnvironmentVariable`
- Sets user environment variables with verbose output.
#### `Move-CacheContents`
- Moves cache contents from source to destination directories.
### 4. 🚫 `UnsetDevDriveOwner.ps1`
This script reverts the ownership and permissions changes made by `SetDevDriveOwner.ps1`. It includes the following functions:
#### `Remove-DevDrivePermissions`
- Removes the full control permissions for the current user on the specified Dev Drive.
- Restores the visibility of the Dev Drive for other users by modifying the registry.#### `Test-DevDrivePermissions`
- Reviews and displays the current permissions for the specified Dev Drive.