Skip to content

Instantly share code, notes, and snippets.

@artisticcheese

artisticcheese/a.ps1

Last active Sep 9, 2017
Embed
What would you like to do?
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
You can’t perform that action at this time.