Install-MindYourPass.psm1
# Example usage: # Install-MindYourPass 08d6fb25-9809-43d3-911e-7f5f69737358 1e1d6e9f-43c9-4d53-b2de-d5ecc330d951 123 -ExcludeBrowsers chrome,edge function Install-MindYourPass { param ([Parameter(Mandatory)][string] $DeploymentKey, [Parameter(Mandatory)][string] $CustomerId, [Parameter(Mandatory)][string] $UserSid, [string[]]$ExcludeBrowsers = @()) $deploymentKey = [Guid]::Parse($DeploymentKey); $customerId = [Guid]::Parse($CustomerId); $userSid = $UserSid; $hashedUserSid = Get-StringHash $userSid $licenseKey = Get-MindYourPassLicenseKey -DeploymentKey $deploymentKey -CustomerId $customerId -LocalId $hashedUserSid Get-InstalledBrowsers | Install-MindYourPassLicenseKey -CustomerId $customerId -LicenseKey $licenseKey -AutoClose -ExcludeBrowsers $ExcludeBrowsers } |