Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Last active December 13, 2015 23:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinyoo/2d04aa42e5d28d6a7bc6 to your computer and use it in GitHub Desktop.
Save justinyoo/2d04aa42e5d28d6a7bc6 to your computer and use it in GitHub Desktop.
Web API App-Only with Graph API
PS C:\WINDOWS\system32> $cert = (Get-Item Cert:\LocalMachine\My\EBD8********************************6E42)
PS C:\WINDOWS\system32> $store = (Get-Item Cert:\Localmachine\Root)
PS C:\WINDOWS\system32> $flags = [System.Security.Cryptography.X509Certificates.OpenFlags]::ReadWrite
PS C:\WINDOWS\system32> $store.Open($flags)
PS C:\WINDOWS\system32> $store.Add($cert)
PS C:\WINDOWS\system32> $store.Close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment