Installing the Keeper Commander PowerShell Module
Keeper Commander is available on the PowerShell Gallery as the PowerCommander
module. This document provides instructions for installing and using this PowerShell Module
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:
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
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
f - folder
r - record
S - shared
A - file attachments
O - owner
where
kr
is alias for Get-KeeperRecords
2fa
is alias for Show-TwoFactorCode
where
contro
is a substring of the record title. See last entry of kdir
output above
kcc
is alias for Copy-KeeperToClipboard
or
'ktY3jEBqwFDi9UYZSxmIpw'
is the Record UID of the same record
Create a Keeper record
The above command copies all records in the current Keeper folder to the folder with name 'Shared Folder'
Cmdlet name
Alias
Description
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-KeeperChildItems
kdir
Display subfolder and record names in the current Keeper folder
Get-KeeperRecords
kr
Enumerate all records
Get-KeeperSharedFolders
ksf
Enumerate all shared folders
Add-KeeperRecord
kadd
Add/Modify Keeper record
Remove-KeeperRecord
kdel
Delete Keeper record
Add-KeeperFolder
kmkdir
Create Keeper Folder
Remove-KeeperFolder
krmdir
Remove Keeper Folder
Move-RecordToFolder
kmv
Move owned record to Keeper folder
Copy-KeeperToClipboard
kcc
Copy record password to clipboard
Show-TwoFactorCode
2fa
Display Two Factor Code