Skip to content
This repository has been archived by the owner on Feb 18, 2022. It is now read-only.

Test-WSMan authentication is hard coded to "-Authentication default" #14

Open
zaclaw opened this issue Sep 8, 2017 · 0 comments
Open

Comments

@zaclaw
Copy link

zaclaw commented Sep 8, 2017

The Test-WSMan command used to check if the bastion can connect to the node via WinRM is hard coded for -Authentication default. If the WinRM config has basic auth set to false, this test will fail and cause the script to not run for that node

Checking the config on the dest node
winrm get winrm/config -r:machinename

The auth config looks like this

        Auth
            Basic = false
            Kerberos = true
            Negotiate = true
            Certificate = false
            CredSSP = false
            CbtHardeningLevel = Relaxed

As you can see, the basic attribute is set to false, preventing Test-WSMan from being able to connect.

Solution could be to allow a parameter to set authentication and then default to "default" if none specified.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant