Skip to content

1password_install.ps1

Corey Watson edited this page Dec 1, 2025 · 1 revision

1password_install.ps1

Downloads and silently installs the latest version of 1Password for Windows.

Overview

This script downloads and silently installs 1Password for Windows using the official MSI installer with configurable deployment options including restart prevention, update management, and removal of other installations.

Purpose

Downloads and silently installs the latest version of 1Password for Windows using the official MSI installer with configurable deployment options.

Prerequisites

  • Windows OS
  • Administrator privileges
  • Internet connectivity

Configuration

Required Inputs

  • $downloadUrl : URL to download 1Password MSI installer
  • $preventRestart : Prevent automatic restart after install (true/false)
  • $manageUpdates : Disable user-initiated updates (true/false)
  • $removeOtherInstalls : Remove other 1Password installations (true/false)

Behavior

  1. Validates input parameters
  2. Downloads 1Password MSI installer to temp directory
  3. Builds MSI arguments based on deployment options
  4. Installs silently using msiexec
  5. Cleans up installer file

Security Notes

  • No secrets in logs
  • Downloads from official 1Password URL

Exit Codes

  • 0 = Success
  • 1 = Failure

Example Output

[ INPUT VALIDATION ]
--------------------------------------------------------------
Download URL : https://downloads.1password.com/win/1PasswordSetup-latest.msi
Prevent Restart : True
Manage Updates : False
Remove Other Installs : True
Inputs validated successfully

[ DOWNLOAD ]
--------------------------------------------------------------
Downloading 1Password installer...
Download completed successfully

[ INSTALLATION ]
--------------------------------------------------------------
Installing 1Password silently...
Option: Prevent restart enabled
Option: Remove other installations enabled
Installation completed successfully

[ CLEANUP ]
--------------------------------------------------------------
Removing installer file...
Cleanup completed

[ FINAL STATUS ]
--------------------------------------------------------------
Result : SUCCESS
1Password installed successfully

[ SCRIPT COMPLETED ]
--------------------------------------------------------------

Version History

  • 2024-12-01 v1.0.0 - Initial release - migrated from SuperOps

Links

Clone this wiki locally