Skip to content

cnspec scan winrm over http #1168

Closed Answered by chris-rock
CedBau asked this question in Q&A
Apr 25, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @CedBau That is great to hear. In case you build cloud images, also have a look at https://github.com/mondoohq/packer-plugin-cnspec.

To connect via winrm, you normally call:

cnspec scan winrm Administrator@IP_ADDRESS --ask-pass

To specify the port, you can use the following format:

cnspec scan winrm Administrator@IP_ADDRESS:PORT --ask-pass

As default 5986 is used. If you use port 5985, we automatically expect http listener and disable the ssl. If you use a different port, you need to set the env variable WINRM_DISABLE_HTTPS="true". I think it makes sense to add the option to a flag so that it is easier to discover.

Let me know if this was helpful.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@CedBau
Comment options

Answer selected by chris-rock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants