Skip to content

Conversation

@eliweitzman
Copy link
Owner

This pull request updates the EnterpriseTechTool (ETT) PowerShell script to version 1.3.1, introducing several improvements for maintainability, configurability, and user experience. The most significant changes include version and support updates, a refactor of the toolbox tab creation for configurable ordering, enhancements to update notifications, and modernization of system information gathering. Below are the top changes grouped by theme:

Versioning and Support

  • Updated the script version to 1.3.1 and copyright year to 2025 in ETT.ps1; updated the support table in .github/SECURITY.md to reflect end-of-life and support for versions 1.3 and 1.3.1. [1] [2] [3]

Configurability and Maintainability

  • Refactored toolbox tab creation: split monolithic tab setup into individual functions (Create-ActionsTab, Create-WindowsTab, etc.) and introduced $tabOrder for customizable tab ordering, improving code maintainability and user configurability. [1] [2] [3] [4]

User Experience Improvements

  • Added a reusable Create-ToastNotification function for toast notifications, replacing previous inline notification logic and improving notification handling consistency. [1] [2]
  • Enhanced update notification: clarified messaging and now closes the current ETT instance after launching the update process, ensuring smoother updates.

Modernization and Performance

  • Replaced deprecated Get-WmiObject calls with Get-CimInstance throughout the script for improved performance and compatibility with newer PowerShell versions. [1] [2] [3] [4] [5]

Minor Cleanups

  • Commented out the example custom function to avoid accidental execution and clarified the section for custom test functions.

eliweitzman and others added 30 commits August 3, 2024 12:48
Remediation and cleanup for 1.3.1 fixes
Tweaked grammar for restoring old outlook function to use proper PS prefix
Few tweaks, and finally solved our issues in #87 !
Prepped version rollover for security support in 1.3.1
Added passthru elevation of #97
Removed duplicate SFC toolbox option. Production location will now be under the "Windows" tab
As a part of general review in #98 , squashed some bugs regarding how the Outlook repair tool runs.
Modified and added error handling to the outlook legacy rollback
Signed-off-by: Eli Weitzman <[email protected]>
Changed the copyright year in the license header from 2024-2025 to 2025 to reflect the current year.
- Resolved merge conflicts by integrating 1.3.1-Dev changes into configurable tab ordering system
- Updated tab creation functions to include new features from 1.3.1-Dev:
  - Added new Outlook functions to Actions tab
  - Enhanced Windows tab with DISM scan and Group Policy functions
  - Updated Security tab with Windows Defender scan functions
  - Enhanced SCCM tab with specific client functions
  - Updated AD tab with new AD Explorer and Bitlocker functions
  - Updated Custom tab with enhanced custom function processing
- Maintained configurable tab ordering functionality
- Included keyboard shortcut for Exit button using Escape key
- Updated copyright year to 2025
[Enhancement] Add configurable tab ordering for toolbox tabs
@eliweitzman eliweitzman added this to the ETT 1.3.1 milestone Aug 30, 2025
@eliweitzman eliweitzman requested a review from Copilot August 30, 2025 02:14
@eliweitzman eliweitzman self-assigned this Aug 30, 2025

This comment was marked as outdated.

@eliweitzman
Copy link
Owner Author

Finding an additional bug... somehow the interactivity for the toolbox functions is now lost - no longer triggers events. Digging into this

This reverts commit f6ae920.
Due to buggy code, rolling back and removing tab reordering - will fix CIM compliance next
Updated ETT.ps1 and ToolboxFunctions.ps1 to use Get-CimInstance instead of the deprecated Get-WmiObject for querying system information. This improves compatibility and performance with newer versions of PowerShell.
@eliweitzman eliweitzman requested a review from Copilot September 7, 2025 22:20

This comment was marked as outdated.

@eliweitzman
Copy link
Owner Author

Fixing Copilot's new review now and testing functionality

Replaced string comparison ($adminmode -eq "True") with boolean comparison ($adminmode -eq $true) in multiple functions to ensure proper admin mode detection and improve code reliability.
@eliweitzman eliweitzman requested a review from Copilot September 7, 2025 22:30
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request updates the EnterpriseTechTool (ETT) to version 1.3.1, introducing several improvements for maintainability, configurability, and user experience. The update modernizes system information gathering by replacing deprecated WMI calls with CIM instances, enhances notification handling with a reusable toast function, and expands functionality with new system repair and Outlook management tools.

Key changes include:

  • Version bump to 1.3.1 with updated copyright year and support documentation
  • Replacement of deprecated Get-WmiObject calls with modern Get-CimInstance throughout the codebase
  • Introduction of a centralized Create-ToastNotification function for consistent notification handling
  • Addition of new system repair functions (DISM scan, Group Policy cache deletion) and Outlook management tools

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
ETT.ps1 Main script updated to v1.3.1 with modernized WMI calls, new toast notification function, and enhanced update handling
PSAssets/ToolboxFunctions.ps1 Added new system repair and Outlook management functions, modernized existing functions, and improved error handling
LICENSE Updated copyright year to include 2025
.github/SECURITY.md Updated version support table to reflect v1.3.1 as current supported version

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

eliweitzman and others added 4 commits September 7, 2025 15:33
Co-authored-by: Copilot <[email protected]>
Signed-off-by: Eli Weitzman <[email protected]>
Introduces .github/copilot-instructions.md with guidance for AI agents and developers working on the Windows PowerShell application. Covers project structure, workflows, conventions, integration points, editing examples, compilation steps, and troubleshooting tips.
Added more specific error messages and user guidance in SettingsMenu.ps1 for cases where the settings menu is disabled or not referenced in the config, including an option to open the GitHub repository for the latest config. In ETT.ps1, updated the copyright year and improved robustness of Toolbox tab creation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants