# Decrypting/Encrypting Ansible Vault on Windows

**URL:** <https://forum.ansible.com/t/decrypting-encrypting-ansible-vault-on-windows/27569>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [May 20, 2018, 6:10am UTC](https://forum.ansible.com/t/decrypting-encrypting-ansible-vault-on-windows/27569 "2018-05-20T06:10:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jborean](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jborean/32/1525_2.png) [@jborean](https://forum.ansible.com/u/jborean)\
**Post date:** [May 20, 2018, 6:10am UTC](https://forum.ansible.com/t/decrypting-encrypting-ansible-vault-on-windows/27569/1 "2018-05-20T06:10:10Z")

</div>

Hey

This is a shameless self post but recently I’ve been spending some time trying to understand how Ansible Vault works and I decided to apply what I learnt by creating some PowerShell cmdlets to encrypt/decrypt a vault file in Windows. If you are one of the poor unfortunate souls who are forced to develop on Windows, especially if you can’t use Windows 10/WSL, I hope this is of some use to you.

The code is located here [https://github.com/jborean93/PowerShell-AnsibleVault](https://github.com/jborean93/PowerShell-AnsibleVault) and I’ve also written a post about the whole process here [https://www.bloggingforlogging.com/2018/05/20/decrypting-the-secrets-of-ansible-vault-in-powershell/](https://www.bloggingforlogging.com/2018/05/20/decrypting-the-secrets-of-ansible-vault-in-powershell/). To install the cmdlets just run `Install-Module -Name AnsibleVault` (you need PS v5 or PowerShellGet installed), otherwise you can copy them across manually.

Thanks

Jordan
