Giter VIP home page Giter VIP logo

fv2keys's Introduction

FV2Keys

Gets file vault 2 keys via powershell. All you need to do is call the function with the machines ID from JAMF.

Before attempting to use the function you must ensure your account you are using has the proper permissions. In JAMF you would need to go to management settings \ system settings \ jamf pro user accounts and groups \ select or create an account \ go to privileges tab \ jamf pro server actions then 'View Disk Encryption Recovery Key' put a check in the box here and you are all set to use the below. So for example:

$key = CasperFVault "9794"

Will return the file vault key back into the $key varriable.

fv2keys's People

Contributors

ganlbarone avatar

Stargazers

 avatar  avatar  avatar

Watchers

James Cloos avatar  avatar

fv2keys's Issues

Am I calling the function correctly?

PS C:\windows\system32> powershell -command "& { . C:\Users\user\Desktop\CasperFileVault.ps1; CasperFVault }"
Error Grabbing FileVault Key - The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel..

typo in line 9 of 10 script

There appears to be a typo in line 9. As it reads now it is:
$auth = Invoke-WebRequest -SessionVariable Sessions -UseBasicParsing -Uri "$serverAddress/?failover'" -Body $data -Method "Post" -ErrorAction Stop

For this to work I had to change it to:
$auth = Invoke-WebRequest -SessionVariable Sessions -UseBasicParsing -Uri "$serverAddress/?failover" -Body $data -Method "Post" -ErrorAction Stop

Note the absence of the single quote after failover. Without this correction, mine kept trying to send me to the SSO login, but with it I was able to retrieve the FV key.

I noticed something else as well. If using a Jamf-hosted cloud instance for your JSS, port 8443 does not work, but port 443 does. You may want to set this as a separate variable or note it with a comment.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.