Install-MindYourPass.psm1
# Example usage: # Install-MindYourPass -DeploymentKey 08d6fb25-9809-43d3-911e-7f5f69737358 -CustomerId 1e1d6e9f-43c9-4d53-b2de-d5ecc330d951 -UserSid 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); $hashedUserSid = $UserSid $licenseKey = Get-MindYourPassLicenseKey -DeploymentKey $deploymentKey -CustomerId $customerId -LocalId $hashedUserSid Get-InstalledBrowsers | Install-MindYourPassLicenseKey -CustomerId $customerId -LicenseKey $licenseKey -AutoClose -ExcludeBrowsers $ExcludeBrowsers } |