Skip to content

Instantly share code, notes, and snippets.

@artisticcheese
Last active September 9, 2017 20:42
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 artisticcheese/72ed49ce361066342bbd8f40211dc862 to your computer and use it in GitHub Desktop.
Save artisticcheese/72ed49ce361066342bbd8f40211dc862 to your computer and use it in GitHub Desktop.
GMSa
Invoke-WebRequest "https://raw.githubusercontent.com/Microsoft/Virtualization-Documentation/live/windows-server-container-tools/ServiceAccounts/CredentialSpec.psm1" -UseBasicParsing -OutFile $env:TEMP\cred.psm1
import-module $env:temp\cred.psm1
New-CredentialSpec -Name win -AccountName containerhost
#This will return location and name of JSON file
Get-CredentialSpec
Name Path
---- ----
win C:\ProgramData\docker\CredentialSpecs\win.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment