Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
b5266fc
Update DeployWorkstation.ps1 to version 4.0 (#8)
Pnwcomputers Mar 24, 2026
b82d7ba
Update DeployWorkstation.bat for version 4.0
Pnwcomputers Mar 24, 2026
5edfa1f
Fix syntax error in DeployWorkstation.ps1
Pnwcomputers Mar 24, 2026
774d599
Revise roadmap for upcoming versions and features
Pnwcomputers Mar 24, 2026
d1b80c1
Update DeployWorkstation.ps1
Pnwcomputers Mar 24, 2026
db171ed
Fix roadmap entry for Configuration Management Integration
Pnwcomputers Mar 24, 2026
8774ede
Update future enhancements in README
Pnwcomputers Mar 24, 2026
e49c6c2
Delete CONTRIBUTING.md
Pnwcomputers Mar 24, 2026
ecca2d0
Rename CHANGELOG.md to .github/CHANGELOG.md
Pnwcomputers Mar 24, 2026
fe58a42
Rename generate_changelog.py to Logs/generate_changelog.py
Pnwcomputers Mar 24, 2026
1a79701
Rename FAQ.md to docs/FAQ.md
Pnwcomputers Mar 24, 2026
05c1abd
Delete .gitignore
Pnwcomputers Mar 24, 2026
7056a22
Update print statement from 'Hello' to 'Goodbye'
Pnwcomputers Mar 24, 2026
63213cb
Refactor logging messages for winget management
Pnwcomputers Mar 24, 2026
d5454ee
Improve language resolution and HTML output formatting
Pnwcomputers Mar 24, 2026
f93c4f0
Fix exit command in DeployWorkstation.bat
Pnwcomputers Mar 24, 2026
6575315
Update README title to Version5
Pnwcomputers Mar 24, 2026
1fef679
Add roadmap item for improved app removal and installation
Pnwcomputers Mar 24, 2026
cb96463
Fix version heading typo in README.md
Pnwcomputers Mar 24, 2026
1bb4043
Update README with new features for version 5
Pnwcomputers Mar 24, 2026
14a4f5c
Revise 'What's New' section in README
Pnwcomputers Mar 24, 2026
a4d1c53
Update security contact email in README
Pnwcomputers Mar 24, 2026
e81c7e4
Refactor path handling for script root and logging
Pnwcomputers Mar 24, 2026
bdd1473
Fix formatting of invalid choice message in batch file
Pnwcomputers Mar 24, 2026
96e6277
Update version from 4.0 to 6.0 in batch file
Pnwcomputers Mar 24, 2026
ac5fc76
Add newline at end of DeployWorkstation.ps1
Pnwcomputers Mar 24, 2026
af29374
Fix duration calculation to use Floor method
Pnwcomputers Mar 24, 2026
9141319
Update version number in DeployWorkstation.bat
Pnwcomputers Mar 24, 2026
66affd3
Update version number from 6.0 to 5.0
Pnwcomputers Mar 24, 2026
65f1770
Update DeployWorkstation Launcher version to v5.0
Pnwcomputers Mar 24, 2026
65e11fc
Update version number from 6.0 to 5.0
Pnwcomputers Mar 24, 2026
77f358a
Update DeployWorkstation script to version 5.1
Pnwcomputers Mar 24, 2026
75e3cf0
Update version from 5.0 to 5.1 in DeployWorkstation.bat
Pnwcomputers Mar 24, 2026
67c2d4c
Fix exit command formatting in DeployWorkstation.bat
Pnwcomputers Mar 25, 2026
3f528c3
Fix network error codes and improve logging
Pnwcomputers Mar 25, 2026
65076be
Update README version from 5 to 5.1
Pnwcomputers Mar 25, 2026
fac11de
Fix exit command in DeployWorkstation.bat
Pnwcomputers Mar 25, 2026
433464d
Fix exit command in DeployWorkstation.bat
Pnwcomputers Mar 25, 2026
7e54740
Fix exit command formatting in DeployWorkstation.bat
Pnwcomputers Mar 25, 2026
8ad49c0
Update DeployWorkstation.bat (#9)
Pnwcomputers Mar 25, 2026
cb23a79
Change default case output to 'Unknown'
Pnwcomputers Mar 25, 2026
305a57c
Fix exit command formatting in DeployWorkstation.bat
Pnwcomputers Mar 25, 2026
acd445b
Add newline at end of DeployWorkstation.ps1
Pnwcomputers Mar 25, 2026
fb2c6ff
Replace 'Hello World' with 'Goodbye World'
Pnwcomputers Mar 25, 2026
84351d5
Delete DeployWorkstation.bat
Pnwcomputers Mar 25, 2026
de65721
Rename DeployWorkstaton.bat to DeployWorkstation.bat
Pnwcomputers Mar 25, 2026
f399c56
Add newline at end of DeployWorkstation.ps1
Pnwcomputers Mar 25, 2026
bf3943e
Update print statement from 'Hello' to 'Goodbye'
Pnwcomputers Mar 25, 2026
f114afc
Add newline at end of DeployWorkstation.ps1
Pnwcomputers Mar 25, 2026
b5328c0
Fix OS edition detection parse error in PS5.1 report (#10)
Pnwcomputers Mar 25, 2026
9e4e9f1
Add cmd compatibility launcher and harden validation tests (#11)
Pnwcomputers Mar 25, 2026
e88d18f
Delete DeployWorkstation.cmd
Pnwcomputers Mar 25, 2026
ea790ad
Upgrade DeployWorkstation.bat to version 5.2
Pnwcomputers Mar 25, 2026
0418379
Update print statement from 'Hello' to 'Goodbye'
Pnwcomputers Mar 25, 2026
de60b79
Update launcher version from v5.2 to v5.1
Pnwcomputers Mar 25, 2026
df4a266
Upgrade DeployWorkstation Launcher to v6.0
Pnwcomputers Mar 25, 2026
b9cc461
Change 'Hello World' to 'Goodbye World'
Pnwcomputers Mar 25, 2026
399fdc9
Change launcher version and enhance error messages
Pnwcomputers Mar 25, 2026
844a53a
Update fmt.Println message from 'Hello' to 'Goodbye'
Pnwcomputers Mar 25, 2026
a6f768e
Update print statement from 'Hello' to 'Goodbye'
Pnwcomputers Mar 25, 2026
ec94486
Refactor DeployWorkstation.bat for better execution flow
Pnwcomputers Mar 25, 2026
b3d6013
Fix exit command in DeployWorkstation.bat
Pnwcomputers Apr 1, 2026
03c6b3c
Add newline at end of DeployWorkstation.ps1
Pnwcomputers Apr 1, 2026
635f21f
Update version comment in DeployWorkstation.bat
Pnwcomputers Apr 1, 2026
238f779
Update version comment in DeployWorkstation.ps1
Pnwcomputers Apr 1, 2026
58ccaba
Optimize osEdition assignment and remove update date
Pnwcomputers Apr 1, 2026
26408a7
Update version comment in DeployWorkstation.bat
Pnwcomputers Apr 1, 2026
4da4b23
Handle Winget exit codes for uninstall operations
Pnwcomputers Apr 1, 2026
2d3357d
Refactor error handling in DeployWorkstation.ps1
Pnwcomputers Apr 1, 2026
0e1ff30
Enhance error handling and logging in DeployWorkstation
Pnwcomputers Apr 1, 2026
f74ed5f
Fix syntax for known failure messages in DeployWorkstation.ps1
Pnwcomputers Apr 1, 2026
f79b6ef
Refactor error handling for installation failures
Pnwcomputers Apr 1, 2026
2f13f03
Implement script integrity verification
Pnwcomputers Apr 1, 2026
1272c38
Refactor comments and improve script readability
Pnwcomputers Apr 1, 2026
7137666
Update version to 5.1.4.1.2026 in DeployWorkstation.ps1
Pnwcomputers Apr 1, 2026
2d53fb5
Refactor DeployWorkstation.bat for clarity and updates
Pnwcomputers Apr 1, 2026
cc0ac0b
Update version comment in DeployWorkstation.bat
Pnwcomputers Apr 1, 2026
5f40680
Merge main into Version5.1 and resolve conflicts
Pnwcomputers Apr 1, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
96 changes: 0 additions & 96 deletions CONTRIBUTING.md

This file was deleted.

76 changes: 42 additions & 34 deletions DeployWorkstation.bat
Original file line number Diff line number Diff line change
@@ -1,46 +1,44 @@
@echo off
title DeployWorkstation Launcher v5.1
REM ========================================================
REM DeployWorkstation-Launcher.bat
REM Ensures elevation, then runs DeployWorkstation.ps1
REM Compatible with the optimized PowerShell script
REM DeployWorkstation.bat - Launcher for DeployWorkstation.ps1
REM Version 5.1 - PNWC Edition 4.1.2026
REM ========================================================

setlocal enabledelayedexpansion

echo.
echo ===== DeployWorkstation Launcher =====
echo ===== DeployWorkstation Launcher v5.1 =====
echo.

REM 1) Check if we're already elevated

net session >nul 2>&1
if %errorlevel% neq 0 (
echo Requesting administrative privileges...
echo Please click "Yes" in the UAC prompt that appears.
echo Please accept the UAC prompt.
echo.

REM Re-launch this batch file with elevation
powershell.exe -NoProfile -Command ^
"Start-Process -FilePath '%~f0' -Verb RunAs -Wait"

REM Exit the non-elevated instance
exit /b
powershell.exe -NoProfile -Command "Start-Process cmd.exe -ArgumentList '/c "%~f0"' -Verb RunAs"
Comment thread
Pnwcomputers marked this conversation as resolved.
exit /b 0
)

REM 2) We're now elevated - show confirmation
echo Administrative privileges confirmed.
echo Current directory: %~dp0
echo [OK] Running as Administrator.
echo.

REM 3) Change to script directory
REM --------------------------------------------------------
REM Change to the directory containing this .bat
REM --------------------------------------------------------
pushd "%~dp0"

REM 4) Check if PowerShell script exists

if not exist "DeployWorkstation.ps1" (
echo ERROR: DeployWorkstation.ps1 not found in current directory!
echo Expected location: %~dp0DeployWorkstation.ps1
echo [ERROR] DeployWorkstation.ps1 not found in:
echo %~dp0
echo.
echo Both files must be in the same folder.
echo.
pause
goto :error_exit
)

Expand All @@ -56,7 +54,8 @@ echo 3. Install apps only
echo 4. Exit

echo.
set /p choice="Enter your choice (1-4): "
set "choice="
set /p choice="Enter choice (1-5): "


REM 6) Set PowerShell parameters based on choice
Expand All @@ -75,23 +74,34 @@ if "%choice%"=="1" (
set "ps_params=-SkipBloatwareRemoval"

) else if "%choice%"=="4" (
echo Exiting...
echo.
echo [*] System configuration only.
set "ps_params=-SkipBloatwareRemoval -SkipAppInstall"
) else if "%choice%"=="5" (
echo Exiting.
goto :normal_exit
) else (
echo Invalid choice. Running full deployment...
set "ps_params="
echo [!] Invalid choice - please try again.
echo.
goto :menu
)

REM --------------------------------------------------------
REM Launch
REM --------------------------------------------------------
if "!ps_params!"=="" (
echo Parameters : (none - full run)
) else (
echo Parameters : !ps_params!
)
echo.
echo Starting PowerShell script with Windows PowerShell 5.1...
echo Parameters: %ps_params%
echo Starting Windows PowerShell 5.1...
echo.

REM 7) Run the PowerShell script with proper parameters
if "%ps_params%"=="" (
if "!ps_params!"=="" (
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "DeployWorkstation.ps1"
) else (
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "DeployWorkstation.ps1" %ps_params%
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "DeployWorkstation.ps1" !ps_params!
)

REM 8) Check exit code and report results
Expand All @@ -100,25 +110,23 @@ if %errorlevel% equ 0 (

echo ===== Deployment completed successfully =====
) else (
echo.
echo ===== Deployment completed with errors =====
echo Exit code: %errorlevel%
echo Check the log file for details.
echo ===== Deployment finished with errors =====
echo Exit code : %ps_exit%
echo Log file : %~dp0DeployWorkstation.log
)

goto :normal_exit

:error_exit
echo.
echo ===== Deployment failed =====
echo ===== Launch aborted =====
popd
pause
exit /b 1

:normal_exit
REM 9) Return to original directory and pause
popd
echo.
echo Press any key to exit...
echo Press any key to close...
pause >nul
exit /b 0
Loading
Loading