PowerShell (Manual)
To deploy the Lockfy Agent manually on a Windows device, make sure you have the following:
- Administrator access to the device (Local or domain accounts).
- The Lockfy Agent deployment PowerShell script.
Copy the Script
Section titled “Copy the Script”Copy the signed deployment script provided by your organization to the root of the C: drive. In the example shown, the file name is LOCKFY_AGENT_DEPLOYMENT_GPO_SIGNED.ps1.
Start “Windows Powershell”
Section titled “Start “Windows Powershell””- Open the Start menu.
- Search for Windows PowerShell.
- Right-click Windows PowerShell and select Run as Administrator.
Prepare For Deployment
Section titled “Prepare For Deployment”In the PowerShell window, change to the root of the C: drive:
cd \c:Then verify that the script is present:
dir LOCKFY*.*You should see LOCKFY_AGENT_DEPLOYMENT_GPO_SIGNED.ps1 in the output. If not, return to Copy the Script and confirm that the script was copied to the correct location.
If required by your environment, allow signed scripts to run:
Set-ExecutionPolicy AllSignedRun the script
Section titled “Run the script”Run the deployment script with your tenant-specific values:
If you need to verify or obtain the agent client values first, review Authorization Clients.
.\LOCKFY_AGENT_DEPLOYMENT_GPO_SIGNED.ps1 -BaseUrl "{baseUrl}" -ClientId "{clientId}" -ClientSecret "{clientSecret}"| Parameter | Description | |
|---|---|---|
| -BaseUrl | Lockfy API URL for your hosted tenant or on-premises Lockfy server. | Required string |
| -ClientId | The agent client ID created during setup. | Required string |
| -ClientSecret | The agent client secret related to the ClientId | Required string |
| -Silent | Suppress console output. | Optional flag |
| -NoLog | Do not write a log file. | Optional flag |
| -Force | Force installation or update even if the local version matches or exceeds the server version. | Optional flag |
After the script completes, review the output for success or error details before closing the PowerShell window.
For a domain-wide rollout, use the Group Policy Objects (GPO) guide instead.