Skip to content
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

Help with RemoteMachine Parameter #454

Open
gavin58582 opened this issue May 8, 2020 · 2 comments
Open

Help with RemoteMachine Parameter #454

gavin58582 opened this issue May 8, 2020 · 2 comments
Labels
question The issue is a question.

Comments

@gavin58582
Copy link

I am trying to use your script to configure my firewall for SQL AlwaysOn Clusters where full access is given to the nodes in the cluster via a Firewall rule. We are moving to DHCP so I want to use the Remote Machine Name so I would like to know how the RemoteMachine Parameter works. Am I able to put in the AD Computer account Name or does it have to be the SID of the computer account?

@PlagueHO PlagueHO added the question The issue is a question. label Jun 18, 2020
@PlagueHO
Copy link
Member

Hi @gavin58582 - basically the resource calls the New-NetFirewallRule cmdlet (see https://docs.microsoft.com/en-us/powershell/module/netsecurity/new-netfirewallrule?view=win10-ps) to configure the Firewall rule. So it takes the same format for the -RemoteMachine parameter which is an SDDL string. E.g.

RemoteMachine         = 'O:LSD:(D;;CC;;;S-1-5-21-1915925333-479612515-2636650677-1621)(A;;CC;;;S-1-5-21-1915925333-479612515-2636650677-1620)'

So, essentially the answer is no, it doesn't allow the Computer Name to be used.

@PlagueHO
Copy link
Member

PlagueHO commented Dec 1, 2020

Hi @gavin58582 - can I close this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question The issue is a question.
Projects
None yet
Development

No branches or pull requests

2 participants