sqlinsight-pro/docs
Søren Eggert Lundsteen Olsen 697d243658 Review 1.5: grant-windows-server.ps1 backs up, removes exactly what it gave, and never more than read
The grant script changes SCM and WMI security on customer servers. Before, a re-run
replaced every ACE of the account on a WMI namespace (also a customer's Deny), -Remove
took the account out of groups and ACEs it had before, only the SCM SDDL was backed up
(and never used), Remote Management Users also opened PowerShell Remoting, and
-EnableFirewall narrowed Windows' built-in rules for every other tool and was never undone.

- Checks everything before changing anything: elevation, the account resolves (broad
  groups refused), Deny ACEs stop the script, -EnableFirewall needs -AgentAddress.
- Backs up the original SDDLs (SCM, WMI namespaces, WinRM), group memberships and
  firewall rules before the first change; records what it added in a state file in an
  administrators-only folder; -Remove removes only that.
- SDDL handled with RawSecurityDescriptor (GetSD/SetSD, sc sdshow/sdset): exactly one
  ACE added in canonical order, verified before writing and after; aliases (NS) work.
- No Remote Management Users: -WinRM adds GENERIC_READ (no Execute) to WinRM's RootSDDL;
  DCOM is the default.
- Firewall: its own "SQLInsight Agent: ..." rules only from the agent's address,
  removed again with -Remove; Windows' rules untouched.
- -WhatIf, groups by SID, Danish messages, PowerShell 2.0 syntax.
- ServerGrantScript.For does not fill in an account that could end the PowerShell
  string (typographic quotes, control characters); tests run the SDDL logic in
  Windows PowerShell against real default SDDLs.
- docs/windows-servere.md: rights, safety net, firewall.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-02 15:31:49 +02:00
..
dynamics-ax Dynamics AX core: central detector, per-version schema adapters, read-access GRANT 2026-10-02 13:52:58 +02:00
analyse.md Review 1.2: document the new collection limits 2026-10-02 11:35:54 +02:00
community.md Forum: one SEOSoft forum at forum.seosoft.dk, SQLInsight Pro as a category 2026-09-30 10:34:29 +02:00
databehandling.md Docs: Windows-servere og syntetiske tjek (1.5) 2026-10-02 14:59:22 +02:00
dynamics-ax.md Review 1.4: AX detection survives passing errors; revoke only what the grant gave; smaller fixes 2026-10-02 14:45:31 +02:00
fejllog.md SQL Server error log without elevated rights (8a) 2026-10-02 10:30:41 +02:00
hub.md Support cases through the API: create, read and close 2026-10-02 09:47:58 +02:00
installation.md Docs: Windows-servere og syntetiske tjek (1.5) 2026-10-02 14:59:22 +02:00
integration.md Docs: Windows-servere og syntetiske tjek (1.5) 2026-10-02 14:59:22 +02:00
konfiguration.md Availability groups: cluster node or witness down (D) 2026-10-02 10:56:43 +02:00
legacy-versions.md Rules the version does not support are "not applicable", not "not measurable" 2026-10-01 16:05:39 +02:00
opdatering.md Version 1.4.0 2026-10-02 14:45:31 +02:00
rapporter.md Separate "check by hand" from "not relevant" for version-gated rules 2026-10-02 09:59:50 +02:00
regler.md Long operations, full-text rules and statement activity 2026-10-02 09:07:29 +02:00
rettigheder.md Privilege audit: sysadmin and server roles with AD unfolding 2026-10-02 08:39:56 +02:00
servere-og-databaser.md Docs: Dynamics AX (1.4) 2026-10-02 13:54:36 +02:00
support.md Support cases through the API: create, read and close 2026-10-02 09:47:58 +02:00
syntetiske-tjek.md Docs: Windows-servere og syntetiske tjek (1.5) 2026-10-02 14:59:22 +02:00
windows-servere.md Review 1.5: grant-windows-server.ps1 backs up, removes exactly what it gave, and never more than read 2026-10-02 15:31:49 +02:00