Closed SUBnet192 closed 1 year ago
You should use HTML information to find out what it shows. New domains have some discrepancies when it comes to built-in Administrators.
Or there is a bug but without more HTML output with details it's hard to say.
You can run Invoke-GPOZaurr to see for yourself consistency of gpos for example will be broken. That Invoke-GPOZaurr -Type NetLogonPermissions should show you your problem too.
Invoke-GPOZaurr -Type Netlogonpermissions returns nothing.
The original error message indicates "expecting value Read, found value 2". I think the check is comparing the wrong values?
Must be. I may have changed the output of the original cmdlet. Need to re-test it.
What does this show: Get-ComputerSMBSharePermissions -ComputerName ad1 -ShareName Netlogon,Sysvol
?
That's for me
That is so weird :/
I reapplied the default permissions to SYSVOL/Netlogon and all is fine now. Somehow one of the 2 BRAND NEW domain controllers in a BRAND NEW domain got borked... Oh well...
Glad this got solved. That means the tool is working as expected ;-)
Hmm,
I seem to have the same problem on a brand new Windows 2022 Domain Controller. Share permissions are correct, but it seems that the script is performing a count instead of a check towards the value in AccessRight.
When running the Powershell command as defined, I get the correct output:
Also, when I check the last printscreen from SUBnet192, I see that it is not checking against Read or Full anymore, but against a number???
There is something wrong with this. I can replicate this but it shows up once every X number of times. I'll investigate.
0.0.85 should fix this issue. I've reworked the cmdlet. The numbers were coming from Enums, and then we had some weird issue with Share command would return incomplete information. Hopefully now it's more bulletproof.
Great.
I can confirm it's now working as expected. Thanks!!!
New domain in a lab, fresh install of 2022. The share permissions are all OK, but the "share permissions value" are all erroring out. what is that and why?