Skip to content

Powershell function for using Hashicorpvault on windows

License

Notifications You must be signed in to change notification settings

aggietallboy/Hashicorp-Vault

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PSVault

PowerShell module for using HashiCorp Vault on windows

This PowerShell module can be used for installing, configuring and managing HashiCorp Vault. It works at the moment through the vault.exe and with the vault api.

This Module contains cmdlets for install, configure and managing Hashicorp vault via PowerShell See the Folder Examples.

import-module "C:\Program Files\WindowsPowerShell\Modules\PSVault\1.0.1\PSVault.psm1" -Verbose get-command -Module PSVault

Functions for downloading and unziping software from HashiCorp

  • Get-Unzip
  • Get-DownloadAndUnzip
  • Get-FileFromInternet
  • Add-Path
  • Remove-StringSpecialCharacter

Functions for password and encryption

  • Convertfrom-SecureHashAES
  • Convert-PlainpasswordtoSecurestring
  • Convertto-SecureHashAES
  • Get-AESHash
  • New-AESHASH
  • New-AESKey

Functions for Vault

  • Connect-Vault
  • Start-VaultWeb
  • Start-VaultTask
  • Start-VaultInit
  • start-VaultautoUnseal
  • Start-Vault
  • set-VaultUnseal
  • set-VaultSecret
  • set-VaultSeal
  • Set-VaultPowershellProfile
  • set-VaultLDAP
  • Stop-VaultTask
  • set-vaultconfig
  • Remove-vaultauto
  • Remove-Vault
  • new-VaultSecretEngine
  • New-VaultPolicy
  • Install-Vault
  • get-VaultStatuscode
  • Get-VaultStatus
  • get-VaultSecretEngine
  • get-VaultSecret
  • get-Vaultobject
  • remove-VaultSecretEngine
  • Update-Vault

Test function

  • Import-PSVaultModule

Unblock ps1 files in psvault module after download

$Path  = "C:\Program Files\WindowsPowerShell\Modules\psvault" ;
$files =  get-childitem -path $Path -recurse | where {$_.Attributes -eq "Archive" } ;
foreach($file in $files){ 
 write-host " - Unblock $($file.FullName)" ; 
 Unblock-File -Path  $file.FullName 
}#EndForeach

About

Powershell function for using Hashicorpvault on windows

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 100.0%