1password_install.ps1 - limehawk/rmm-scripts GitHub Wiki
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
- Validates input parameters
- Downloads 1Password MSI installer to temp directory
- Builds MSI arguments based on deployment options
- Installs silently using msiexec
- 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
- View Script Source
- Scripts - Back to script index