You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update assembly information
* [PE Helper] WDSH Server: Add Web Dashboard
* [Refactor] Added more LINQ queries for volumes
* [Enhance] Several enhancements
- Renewed PMIP now uses accent colors for border
- The ISO creator now offers the ability to download and install the required ADK components automatically
- In doing this, a new progress reporter panel has been implemented. This is planned to be used in more components of DISMTools
* [ISO Creator] Bump default resolution
* [PE Helper] WDSH Server: Many improvements
- Dashboard location is now "/api/wdshome"
- Logging is now performed in the user's %TEMP% directory
- Buttons were added to refresh information and view server logs
- If there are multiple network adapters, they now appear as separate entries
- A field has been added for NIC Teaming
* [PE Helper] Add packages from the Storage module
* [PE Helper] Detect drive letters in conflict
Attempt 1 of tackling #262
* [PE Helper] More consistency for ESP references
* [ISO Creator] Close if request was declined
* [Refactor] Remove redundant blocks with specific methods
* [PE Helper] Slightly improve disk conflict detection
- We now make sure volume info is output to host console
- Redundant code was removed
* [Library] Update Markdig to 0.41.3
* [PE Helper] Add option for command console, add admin scripts
* [DynaLog] Add process ID to event logs
* [PE Helper] Add new admin script, fix cmdcons issue
* [PE Helper] Fixed WDSHS issue with image pre-deployment
* [REL] Update What's New section
if (([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator) -eq$false)
62
74
{
63
75
Write-Host"You need to run this script as an administrator"
Write-Host"Checking letters of mounted drives for conflicts..."
1263
+
1264
+
# One of the three letters mentioned above may be already in use. Check these before assuming they're our targets.
1265
+
# This is more the case when you boot the ISO with Ventoy
1266
+
if ((Get-Volume|Where-Object { $_.DriveLetter-eq$espLetter }).Count -gt0) {
1267
+
Write-Host"The default letter for the EFI System Partition is already in use."
1268
+
$usedLetters++
1269
+
$espUsed=$true
1270
+
}
1271
+
1272
+
if ((Get-Volume|Where-Object { $_.DriveLetter-eq$bootLetter }).Count -gt0) {
1273
+
Write-Host"The default letter for the boot partition is already in use."
1274
+
$usedLetters++
1275
+
$bootUsed=$true
1276
+
}
1277
+
1278
+
if ((Get-Volume|Where-Object { $_.DriveLetter-eq$recoveryLetter }).Count -gt0) {
1279
+
Write-Host"The default letter for the Windows Recovery Environment partition is already in use."
1280
+
$usedLetters++
1281
+
$recoveryUsed=$true
1282
+
}
1283
+
1284
+
if ($usedLetters-gt0) {
1285
+
Write-Host"After clearing the partitions of disk $diskId, some of the drive letters are still in use by, possibly, external disks. This may cause undesired behavior."
1286
+
Write-Host"You will now be shown a list of disks, and you will be given the opportunity to reassign disk letters."
1287
+
Write-Host"These settings only apply to the disk changes in the Preinstallation Environment."
1288
+
1289
+
Get-Volume|Out-Host# let's make sure we are outputting this info
1290
+
1291
+
# Ask for all the letters that are producing conflicts
1292
+
1293
+
if ($espUsed) {
1294
+
$newEspLetter=Read-Host-Prompt "Provide a volume letter for the EFI System Partition, or press ENTER to use the default letter [$($espLetter)]"
1295
+
if ($newEspLetter-ne"") {
1296
+
$espLetter=$newEspLetter
1297
+
}
1298
+
}
1299
+
1300
+
if ($bootUsed) {
1301
+
$newBootLetter=Read-Host-Prompt "Provide a volume letter for the boot partition, or press ENTER to use the default letter [$($bootLetter)]"
1302
+
if ($newBootLetter-ne"") {
1303
+
$bootLetter=$newBootLetter
1304
+
}
1305
+
}
1306
+
1307
+
if ($recoveryUsed) {
1308
+
$newRecoveryLetter=Read-Host-Prompt "Provide a volume letter for the Windows Recovery Environment partition, or press ENTER to use the default letter [$($recoveryLetter)]"
1309
+
if ($newRecoveryLetter-ne"") {
1310
+
$recoveryLetter=$newRecoveryLetter
1311
+
}
1312
+
}
1313
+
1314
+
} else {
1315
+
Write-Host"No conflicts were detected after clearing the partitions of disk $diskId. Continuing with disk configuration..."
0 commit comments