New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UseDefaultCredentials for New-WebServiceProxy #531

Closed
rogiervanhetschip opened this Issue Dec 8, 2015 · 4 comments

Comments

Projects
None yet
2 participants
@rogiervanhetschip

rogiervanhetschip commented Dec 8, 2015

Hey!

Nice tool, saves us a lot of time!

We want to use SPE in our Continuous Delivery scripts, which run under Windows credentials we (developers) don't have access to. Would it be a good idea to extend several of the scripts (including Invoke-RemoteScript) with the UseDefaultCredentials parameter? This parameter is supported by New-WebServiceProxy, for creating a session with the current credentials. Also see https://technet.microsoft.com/en-us/library/hh849841.aspx

Kind regards,

Rogier

@michaellwest michaellwest self-assigned this Dec 8, 2015

@michaellwest

This comment has been minimized.

Member

michaellwest commented Dec 8, 2015

We certainly can add it. I had received the request some time back but looks like it's a good time to go ahead and implement.

@michaellwest

This comment has been minimized.

Member

michaellwest commented Dec 9, 2015

Came up with something like this:

New-ScriptSession -Username <String> -Password <String> -ConnectionUri <Uri[]> [<CommonParameters>]

New-ScriptSession -Username <String> -Password <String> -ConnectionUri <Uri[]> [-Credential <PSCredential>] [<CommonParameters>]

New-ScriptSession -Username <String> -Password <String> -ConnectionUri <Uri[]> [-UseDefaultCredential] [<CommonParameters>]

michaellwest added a commit that referenced this issue Dec 10, 2015

#531 : Added UseDefaultCredential parameter to New-ScriptSession.
Only added to this command to keep things simple.
@michaellwest

This comment has been minimized.

Member

michaellwest commented Dec 10, 2015

Implemented for New-ScriptSession.

@michaellwest michaellwest added this to the 4.0 milestone Dec 10, 2015

@rogiervanhetschip

This comment has been minimized.

rogiervanhetschip commented Dec 10, 2015

Looks good, thanks for your help and quick response. That should help, now we can supply no Windows credentials, entered Windows credentials or the current Windows credentials. This last option will allow our Continuous Delivery script engine to run Powershell scripts against Sitecore, for example post-installation.

Thanks again!

@michaellwest michaellwest removed their assignment May 23, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment