Skip to content

Conversation

@BanterBoy
Copy link
Owner

No description provided.

Copilot AI review requested due to automatic review settings October 2, 2025 13:33
@BanterBoy BanterBoy merged commit 3c9fc87 into prod Oct 2, 2025
2 of 3 checks passed
@BanterBoy BanterBoy deleted the BanterBoy-patch-1 branch October 2, 2025 13:34
Copy link
Contributor

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

Updates the DisableADAccountsMenu function to replace existing user accounts with new ones. The PR changes the hardcoded user accounts from Kurtis Marsden, Jamie Beale, and Luke Leigh to John Smith, Jack Daniels, and Geoff Geoffries.

  • Replaces three existing user account functions with new user account functions
  • Updates menu display text to reflect the new account names
  • Updates switch statement cases to call the new functions

Comment on lines +38 to 41
function Disable-JohnSmith {
Disable-ADAccount -Identity JohnSmith.admin
Write-Output "Account JohnSmith.admin has been disabled."
}
Copy link

Copilot AI Oct 2, 2025

Choose a reason for hiding this comment

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

Hardcoding specific user accounts in a function creates maintenance overhead. Consider making this function more generic by accepting user identities as parameters, or using a configuration file to define the accounts that can be disabled.

Copilot uses AI. Check for mistakes.
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.

2 participants