PowerShell Module
Installing the Keeper Commander PowerShell Module
Overview
A version of Keeper Commander is developed in .Net with a PowerShell module. This is published to the PowerShell Gallery as the PowerCommander
module. This document provides instructions for installing and using this PowerShell Module.
PowerShell CLI
Keeper's PowerShell command-line tool (PowerCommander) provides basic vault access and administrative functions.
PowerShell module for Keeper Commander is available on the PowerShell Gallery:
PowerShell Gallery Install
To install PowerCommander from PowerShell Gallery:
GitHub Repository
To run the PowerCommander module from the source, refer to the following GitHub Link:
https://github.com/Keeper-Security/keeper-sdk-dotnet/tree/master/PowerCommander
Installation Troubleshooting
Set Execution Policy Permissions
If you are unable to run PowerCommander commands, you may need to set the Execution Policy. To check this, run the following command:
Your output would be similar to this:
If the Scope for your installation is Undefined
or Restricted
, set it to Unrestricted
with the following command:
Note: The above command set the CurrentUser
scope
PowerCommander Commands
Cmdlets
Connect-Keeper
kc
Login to Keeper server
Sync-Keeper
ks
Sync with Keeper server
Disconnect-Keeper
Logout and clear the data
Get-KeeperLocation
kpwd
Print current Keeper folder
Set-KeeperLocation
kcd
Change Keeper folder
Get-KeeperChildItem
kdir
Display subfolder and record names in the current Keeper folder
Get-KeeperObject
ko
Get Keeper object by UID
Get-KeeperRecord
kr
Enumerate all records
Get-KeeperSharedFolder
ksf
Enumerate all shared folders
Add-KeeperRecord
kadd
Add/Modify Keeper record
Get-KeeperRecordType
krti
Get Record Type Information
Remove-KeeperRecord
kdel
Delete Keeper record
Move-RecordToFolder
kmv
Move records to Keeper folder
Add-KeeperFolder
kmkdir
Create Keeper folder
Remove-KeeperFolder
krmdir
Remove Keeper folder
Copy-KeeperToClipboard
kcc
Copy record password to clipboard
Show-TwoFactorCode
2fa
Display Two Factor Code
Copy-KeeperFileAttachment
kda
Download file attachments
Copy-KeeperFileAttachmentToStream
Download file attachement to stream
Copy-FileToKeeperRecord
Upload file attachment to a record
Get-KeeperInformation
kwhoami
Print account license information
Get-KeeperDeviceSettings
Print the current device settings
Set-KeeperDeviceSettings
this-device
Modifies the current device settings
Sharing Cmdlets
Show-KeeperRecordShare
kshrsh
Show a record sharing information
Grant-KeeperRecordAccess
kshr
Share a record with user
Revoke-KeeperRecordAccess
kushr
Remove record share from user
Move-KeeperRecordOwnership
ktr
Transfer record ownership to user
Grant-KeeperSharedFolderAccess
kshf
Add a user or team to a shared folder
Revoke-KeeperSharedFolderAccess
kushf
Remove a user or team from a shared folder
Get-KeeperAvailableTeam
kat
Get available teams
Get-KeeperOneTimeShare
kotsg
Get One-Time Shares for a record
New-KeeperOneTimeShare
kotsn
Create One-Time Share
Remove-KeeperOneTimeShare
kotsr
Remove One-Time Share
Enterprise Cmdlets
Sync-KeeperEnterprise
ked
Sync Keeper enterprise information
Get-KeeperEnterpriseNode
ken
Enumerate all enterprise nodes
Get-KeeperEnterpriseUser
keu
Enumerate all enterprise users
Get-KeeperEnterpriseTeam
ket
Enumerate all enterprise teams
Get-KeeperEnterpriseTeamUser
ketu
Get a list of enterprise users for team
New-KeeperEnterpriseNode
kena
Create Node (new)
Add-KeeperEnterpriseUser
invite-user
Invite User to Enterprise (new)
Lock-KeeperEnterpriseUser
lock-user
Lock Enterprise User
Unlock-KeeperEnterpriseUser
unlock-user
Unlock Enterprise User
Move-KeeperEnterpriseUser
transfer-user
Transfer user account to another user
Remove-KeeperEnterpriseUser
delete-user
Delete Enterprise User
Get-KeeperEnterpriseRole
ker
Enumerate all enterprise roles (new)
Get-KeeperMspLicenses
msp-license
Return MSP licenses
Switch-KeeperMC
switch-to-mc
Switch to Managed Company (new)
Switch-KeeperMSP
switch-to-msp
Switch back to MSP (new)
Get-KeeperManagedCompany
kmc
Enumerate all enterprise managed companies
New-KeeperManagedCompany
kamc
Create Managed Company
Remove-KeeperManagedCompany
krmc
Remove Managed Company
Edit-KeeperManagedCompany
kemc
Edit Managed Company
Get-MspBillingReport
Run MSP Billing Report
Secret Manager Cmdlets
Get-KeeperSecretManagerApp
ksm
Enumerate all Keeper Secret Manager Applications
Add-KeeperSecretManagerApp
ksm-create
Add a Keeper Secret Manager Application
Grant-KeeperSecretManagerFolderAccess
ksm-share
Add a shared folder to KSM Application
Revoke-KeeperSecretManagerFolderAccess
ksm-unshare
Remove a Shared Folder from KSM Application
Add-KeeperSecretManagerClient
ksm-addclient
Add a client/device to KSM Application
Remove-KeeperSecretManagerClient
ksm-rmclient
Remove a client/device from KSM Application
Additional Commands
Not all capabilities of Keeper Commander (Python) have been added to the PowerShell module. We add them on request by customers. If you have requests for our engineering team, please email commander@keepersecurity.com.
Examples
Connect To Keeper Account
List the content of Keeper folder
f - folder
r - record
S - shared
A - file attachments
O - owner
Show Two Factor Code for all records in the current Keeper folder
Show Two Factor Code for all records in the Vault.
where
kr
is alias forGet-KeeperRecord
2fa
is alias forShow-TwoFactorCode
Copy record password to clipboard
where
contro
is a substring of the record title. See last entry ofkdir
output in example #2kcc
is alias forCopy-KeeperToClipboard
or
'ktY3jEBqwFDi9UYZSxmIpw'
is the Record UID of the same record
Add/Modify Keeper record
creates a legacy record in Keeper
creates a record of login
type in Keeper
generates a new password for existing record
Pre-defined fields supported by both legacy and typed records
login
Loginpassword
Passwordurl
Website Address
Copy owned record to folder
copies all records in the current Keeper folder to the folder with name 'Shared Folder'
List all enterprise users
Create a new Managed Company
Switch to a new Managed Company
Last updated