Skip to content

Add Google Drive silent install + DC exclusion on SID detection#60

Open
Gumbees wants to merge 4 commits into
mainfrom
enhancement/google-drive-install
Open

Add Google Drive silent install + DC exclusion on SID detection#60
Gumbees wants to merge 4 commits into
mainfrom
enhancement/google-drive-install

Conversation

@Gumbees

@Gumbees Gumbees commented May 11, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a silent Google Drive install script. Branch also carries the duplicate-SID detection scripts and a domain-controller role check that excludes DCs from the SID duplicate detection logic.

Files touched:

  • app-google-drive/google-drive-install.ps1 ... silent install for Google Drive
  • msft-windows/msft-windows-sid-detect-duplicates.ps1 ... duplicate SID detection (also in enhancement/duplicate-sid-detection) with added DC role exclusion
  • msft-windows/msft-windows-sid-report.ps1 ... SID report (also in enhancement/duplicate-sid-detection)

Test plan

  • Run google-drive-install.ps1 on a clean test endpoint and confirm Google Drive installs without UI prompts.
  • Re-run on the same endpoint and confirm idempotent behavior (no error if already installed).
  • Run msft-windows-sid-detect-duplicates.ps1 on a domain controller and confirm it short-circuits without flagging.
  • Spot-check exit codes for RMM consumption.

Lineage

Part of the stale-branch reconciliation sweep. Branch had 4 commits ahead of main with no open PR. Shares the SID detection commits with enhancement/duplicate-sid-detection ... opened as a separate PR so Nate can decide which to merge first; if both go in, the shared commits dedupe.

Nate Smith and others added 4 commits February 24, 2026 14:54
Two scripts that work together to detect cloned/imaged machines that were
not sysprepped. The workstation script stamps each machine's local SID into
extensionAttribute1 on its AD computer object. The DC/admin script scans
all computer objects for duplicate SIDs and reports findings with RMM
custom field output.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Switch from extensionAttribute1 to info (Notes) field, which exists
  in all AD schemas without Exchange extensions
- Add MACHINESID: prefix to stored values to avoid overwriting existing
  notes and to filter accurately during detection
- Report script auto-migrates raw SID values from previous version
- Detection script only picks up prefixed values via LDAP filter
- Add full SID inventory output and HTML report for Ninja WYSIWYG field
- Comment out Ninja-Property-Set calls by default

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Installs Google Drive for Desktop using winget when available,
with automatic fallback to direct download from Google. Follows
standard template with RMM/interactive dual-mode support.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Exits early if not running on a DC (DomainRole 4 or 5) since the script
queries AD computer objects via ADSI and must run from a DC.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Code review skipped — your organization's overage spend limit has been reached.

Code review is billed via overage credits. To resume reviews, an organization admin can raise the monthly limit at claude.ai/admin-settings/claude-code.

Once credits are available, push a new commit or reopen this pull request to trigger a review.

@Gumbees Gumbees changed the base branch from main to development May 11, 2026 17:09
@Gumbees Gumbees changed the base branch from development to main June 25, 2026 11:44
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.

1 participant