Skip to content

feat: add Connect-specific scripts for 8 scanners#148

Open
kbaker827 wants to merge 2 commits into
pdqcom:masterfrom
kbaker827:feat/connect-new-scripts
Open

feat: add Connect-specific scripts for 8 scanners#148
kbaker827 wants to merge 2 commits into
pdqcom:masterfrom
kbaker827:feat/connect-new-scripts

Conversation

@kbaker827
Copy link
Copy Markdown

Summary

Adds Connect-<Name>.ps1 scripts for 8 scanners that couldn't work in PDQ Connect as-is, and updates each scanner's README. The common pattern is inlining the shared Install and Import Module.ps1 helper since relative path .\ references don't work in Connect's execution context.

Scanner Problem Fix
Get Available Windows Updates Relative path to Install and Import Module.ps1; also wrong WSUS service flag Inline module install; swap -WindowsUpdate → no flag for WSUS (same fix as #109)
Get Windows Update History Relative path + reads row limit from Scanner.log (Inventory-only file) Inline module install; replace with -Limit parameter (default 200)
Windows Update Last Installed Relative path to Install and Import Module.ps1 Inline module install
Dell BIOS Information Relative path to Install and Import Module.ps1 Inline module install
File Hash $env:userprofile resolves to SYSTEM profile when running as SYSTEM Make -Path mandatory
Get CDP Neighbor Data Import-Module '.\PSDiscoveryProtocol.psm1' loads a local bundled file Install PSDiscoveryProtocol from PSGallery
Hosts File ConvertFrom-String is not available in PowerShell 7+ Rewrite parser using -split '\s+'
Certificates -Property * produces very large output Hardcode useful defaults; default to LocalMachine only

Test plan

  • Paste each Connect-*.ps1 into a PDQ Connect Run PowerShell action and confirm output
  • Verify Connect-Get Available Windows Updates.ps1 -WSUS returns only WSUS-approved updates
  • Verify Connect-Get Windows Update History.ps1 -Limit 50 returns ≤50 rows
  • Verify Connect-Hosts File.ps1 works on both PowerShell 5.1 and 7+

Closes #122 #123 #124 #125 #126 #130 #135 #138

kbaker827 added 2 commits May 20, 2026 09:13
Each Connect-* script addresses the reason the original was marked as
not compatible with PDQ Connect:

- Connect-Get Available Windows Updates: inlines PSWindowsUpdate module
  install and fixes WSUS service flag (same fix as pdqcom#109)
- Connect-Get Windows Update History: inlines PSWindowsUpdate install
  and replaces Scanner.log row-limit with a -Limit parameter (default 200)
- Connect-Windows Update Last Installed: inlines PSWindowsUpdate install
- Connect-Dell BIOS Information: inlines DellBIOSProvider install
- Connect-File Hash: makes -Path mandatory (SYSTEM profile is not a
  useful default when running in Connect)
- Connect-Get CDP Neighbor Data: installs PSDiscoveryProtocol from
  PSGallery instead of loading from a local .psm1 file
- Connect-Hosts File: replaces ConvertFrom-String (unavailable in
  PowerShell 7+) with direct whitespace splitting
- Connect-Certificates: hardcodes a concise set of properties and
  defaults to LocalMachine to avoid oversized output

Closes pdqcom#122 pdqcom#123 pdqcom#124 pdqcom#125 pdqcom#126 pdqcom#130 pdqcom#135 pdqcom#138
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.

PDQ Connect: Add Dell BIOS Information scanner

1 participant