Repository navigation
Enterprise Deployment
This page is for IT admins rolling Open the Windows out to many PCs: silent install, keeping PCs on a profile, Intune and scripts, Group Policy, the Event Log, and verifying releases.
msiexec /i OpenTheWindows-0.2.0-win-x64.msi /qnThe MSI is per-machine only. It installs to C:\Program Files\Open the Windows\{app,cli}, adds
otw to the system PATH, registers the Event Log source, and creates
C:\ProgramData\OpenTheWindows. A newer MSI upgrades in place; a downgrade is refused. See
Getting Started.
Install with the MSI on managed PCs. The scheduled task and the all-users logon fallback refuse to
register an otw.exe that a non-administrator could change, and Program Files passes that check;
a portable copy under Downloads does not.
-
Pick a built-in profile (
enterprise-workstationandkiosk-sharedapply to every user) or write your own. See Profiles. -
Try it on a test PC:
otw scan --profile enterprise-workstation otw apply --profile enterprise-workstation --what-if
-
Apply it, then keep it in place with the remediation task or Intune (below).
Settings your organisation already manages through MDM or Group Policy are reported and left alone.
Only otw apply --break-glass overrides them, and that is audited as Event 4001.
otw task install --profile registers \OpenTheWindows\Remediate. It runs as SYSTEM with highest
privileges, is hidden, and replaces any existing task of the same name.
otw task install --profile enterprise-workstation --what-if
otw task install --profile enterprise-workstation --weekly| Trigger | Runs |
|---|---|
--daily (default) |
Once a day |
--weekly |
Once a week |
--on-logon |
At every user logon |
--on-build-change |
At system start, and re-applies only when the Windows build or update revision changed since this profile's last completed run (or the profile was never applied), which restores settings after a feature update |
The task runs:
otw.exe remediate --profile "<profile>" --json --out "C:\ProgramData\OpenTheWindows\reports\last-remediate.json"
with --if-build-changed added for --on-build-change. Each run writes its JSON report to
%ProgramData%\OpenTheWindows\reports\last-remediate.json. remediate applies only drifted
entries, never prompts, and never overrides a managed setting.
--what-if (new in v0.3.0) prints the task it would register, in the form
Would install task '\OpenTheWindows\Remediate' (<trigger>, as SYSTEM): "<path to otw.exe>" <arguments>,
and needs no elevation.
A profile file is copied to %ProgramData%\OpenTheWindows\profiles (with its .sig, if any)
and the task points at that copy, so SYSTEM never reads a file a standard user can edit.
Remove the task, and any all-users logon fallback components, with:
otw task removeotw task install --audit registers \OpenTheWindows\Audit instead, which audits against a
built-in baseline and writes a JSON report where you collect it:
otw task install --audit disa-stig-v2r7 --out "\\fileserver\otw-audits\$env:COMPUTERNAME.json" --weeklyIt runs otw.exe audit run --baseline "<id>" --json --out "<path>" as SYSTEM. A relative --out
path is made absolute when the task is registered. Because the task runs as SYSTEM, a network share
must accept writes from the computer's account.
otw task remove does not remove the audit task. Delete it with Task Scheduler (it is a hidden
task) or:
schtasks /Delete /TN "\OpenTheWindows\Audit" /FExit codes are a stable contract, designed so automation can tell drift from errors:
| Code | Meaning for automation |
|---|---|
0 |
Compliant, or done |
1 |
Drift found (scan), failing rules (audit run), or changes (watch diff) |
2 |
An error. Never 1, so a crash is not mistaken for drift. |
3 |
Unsupported OS |
4 |
Invalid input, including a mistyped command line. Never 1. |
5 |
Not elevated |
6 |
Skipped because MDM or Group Policy manages the setting (Windows Update pause or hold) (new in v0.3.0) |
3010 |
Applied; reboot required |
A detection and remediation script pair, for example for Intune Remediations. Run both as SYSTEM:
# Detection: exit 0 when compliant, 1 when drift is found
& "C:\Program Files\Open the Windows\cli\otw.exe" scan --profile enterprise-workstation
exit $LASTEXITCODE# Remediation: re-apply only what drifted
& "C:\Program Files\Open the Windows\cli\otw.exe" remediate --profile enterprise-workstation --json --out "C:\ProgramData\OpenTheWindows\reports\last-remediate.json"
exit $LASTEXITCODEThings to know:
- Scanning at the
balancedlevel or above reads the local password and lockout policy, which needs administrator rights. SYSTEM has them; an unelevated user session does not. - If a policy of yours enforces a value that differs from the profile,
scankeeps reporting that entry as drift, whileremediateleaves it alone because it is managed. Exclude that entry in your profile ("exclude": ["<id>"]) so detection settles. - When nobody is signed in, per-user entries are reported not applicable. Under SYSTEM, the console user is targeted.
-
apply,remediateandrevertwrite a stable JSON report with--json:runId,state,requires,restorePoint,errors, andentries(id,result,risk,requires,note). See Command-Line Reference.
A profile with scope AllUsers reaches every user profile on the PC, loading the registry hives
of users who are signed out. After it completes, otw apply and otw remediate register an Active
Setup logon fallback ({OTW-<profile id>}), so users who were signed out, and new users, are
brought in line at their next sign-in. Check who will be reached with otw users. Details are on
Profiles.
The repository's admx folder holds an administrative template: OpenTheWindows.admx and
en-US\OpenTheWindows.adml. Copy both into %SystemRoot%\PolicyDefinitions (single machine) or
the domain Central Store (\\<domain>\SYSVOL\<domain>\Policies\PolicyDefinitions), keeping the
.adml in its en-US subfolder. The settings appear under Computer Configuration >
Administrative Templates > Open the Windows.
| Policy | Registry value under HKLM\SOFTWARE\Policies\OpenTheWindows
|
Effect |
|---|---|---|
| Require signed profiles |
RequireSignedProfiles (DWORD, 1 = required, 0 or absent = not required) |
Profile files, profiles imported on the desktop app and --catalog-dir files must carry a <file>.sig that verifies against a key in %ProgramData%\OpenTheWindows\trusted-keys. Built-in profiles and level names are unaffected. |
| Limit extended Windows Update pauses (new in v0.3.0) |
MaxExtendedPauseDays (DWORD, 35 to 365) |
The longest extended pause the command line and desktop app allow. A value outside the range is clamped. Not configured means 365; 35 disallows extended pauses. |
You can also set these values directly, without the template, with any tool that writes machine registry policy.
To use signed profiles across a fleet: sign your profiles with your organisation's private key
(otw profile sign), and put the matching public key in each PC's trust store, for example with
the same Group Policy object or Intune. See Profiles.
Open the Windows writes to its own log:
| Item | Value |
|---|---|
| Log |
OpenTheWindows (in Event Viewer under Applications and Services Logs) |
| Source | OTW |
| Registered by | The MSI, or otw eventlog install
|
| Event id | Level | Meaning |
|---|---|---|
| 1000 | Information | An apply run started (also logged when a signed-out user's hive is loaded for an all-users run) |
| 1001 | Information | An entry was applied and verified |
| 1002 | Warning | An entry failed, or a revert step failed |
| 1003 | Warning | A run was rolled back after a failure |
| 1004 | Information | A revert run started |
| 1005 | Information | A revert run completed |
| 3000 | Warning | One action was rolled back |
| 4000 | Warning | An operation was refused by a safety rule, or a revert was refused |
| 4001 | Warning | A managed setting was overridden under break-glass |
| 4002 | Information | An extended Windows Update pause was applied |
| 4003 | Information | Updates were hidden |
| 4004 | Information | Updates were unhidden |
| 4005 | Information | A Windows Update repair ran (new in v0.3.0) |
| 9000 | Error | An error, such as a pre-flight block, a user hive that could not be loaded, or a failed journal write |
Read recent events:
Get-WinEvent -LogName OpenTheWindows -MaxEvents 20The same events are also appended to monthly JSON-lines files,
%ProgramData%\OpenTheWindows\audit\otw-<yyyyMM>.jsonl, which are written even when the Event Log
source is not registered.
| Path | Contents |
|---|---|
%ProgramData%\OpenTheWindows\journal |
Machine journals, one per run |
%ProgramData%\OpenTheWindows\keys |
The journal integrity key (administrators and SYSTEM only) |
%ProgramData%\OpenTheWindows\audit |
Monthly audit JSON-lines files |
%ProgramData%\OpenTheWindows\reports |
last-remediate.json from the remediation task |
%ProgramData%\OpenTheWindows\profiles |
Profile files copied for the task and the logon fallback |
%ProgramData%\OpenTheWindows\trusted-keys |
Public keys trusted to sign profiles and catalogue files |
%ProgramData%\OpenTheWindows\state |
The policy-ownership ledger and the persistence-watch baseline |
%LocalAppData%\OpenTheWindows |
Desktop app settings (gui-settings.json), its error log (gui-errors.log), and per-user journal and audit files for --user-scope runs |
%ProgramData%\OpenTheWindows is kept owned by Administrators and writable only by Administrators
and SYSTEM. Uninstalling the MSI leaves it in place on purpose, as an audit record.
The product sends no telemetry. The only network request it makes of its own is the opt-in update
check (otw check-update, or Check for updates on the About page): one HTTPS request to
GitHub Releases, never on a schedule.
From v0.3.0 on, otw.exe, OpenTheWindows.exe, the OpenTheWindows
assemblies and the MSIs are Authenticode-signed with Azure Artifact Signing, each with an RFC 3161
timestamp. The publisher is Randy Northrup
(CN=Randy Northrup, O=Randy Northrup, L=Ventura, S=California, C=US). The .NET runtime and
third-party libraries in the bundles keep their own publishers' signatures. v0.2.0 and earlier
are not signed.
Every release also carries SHA256SUMS.txt, a CycloneDX SBOM (sbom.cdx.json) and GitHub
build-provenance attestations. Verify before deploying (replace the file names with the ones you
downloaded):
(Get-AuthenticodeSignature .\OpenTheWindows-<version>-win-x64.msi).Status
(Get-AuthenticodeSignature .\OpenTheWindows-<version>-win-x64.msi).SignerCertificate.Subject
Get-FileHash .\OpenTheWindows-<version>-win-x64.zip -Algorithm SHA256
gh attestation verify .\OpenTheWindows-<version>-win-x64.zip --repo randynorthrup/open-the-windowsA signed release shows Valid and the subject above. Windows SmartScreen can still warn about a
newly signed release until the publisher builds up a reputation.
Open the Windows is free software under the MIT license · Source on GitHub