Install-DbaInstance and Update-DbaInstance now work from an unelevated PowerShell session #8125
Replies: 1 comment
-
How do you specify Authentication Default? |
Beta Was this translation helpful? Give feedback.
-
How do you specify Authentication Default? |
Beta Was this translation helpful? Give feedback.
-
One of the nice features of Install-DbaInstance and Update-DbaInstance is, that it can automatically configure CredSSP, which is the default authentication protocol if you use the credential parameter. Why use CredSSP? Because best practice is to store the installation media and the patches on a network share - so you need to pass the credentials to the target to avoid the double-hop issue.
But configuring CredSSP - and even reading the CredSSP configuration - needs an elevated PowerShell session. And because I like to follow the "principle of least privilege", I want to run as many PowerShell sessions as possible without elevated privileges.
The second reason is that I want to separate the security related configuration from running a dbatools command. Enabling the CredSSP server role on all the targets is done via group policies, enabling the client role on the jump box is only one command per target.
So starting with version 1.1.62 you have multiple options:
-Authentication Default
to bypass CredSSP. This also works from an unelevated PowerShell.The bottom line: You only need an elevated PowerShell session if CredSSP needs to be configured by the command.
Beta Was this translation helpful? Give feedback.
All reactions