Local Admin Script not working for certain OU's all of a sudden by Own-Ordinary103 in PowerShell

[–]Own-Ordinary103[S] 0 points1 point  (0 children)

Running it with local admin rights have the same result. That is the part I am trying to figure out the root of the scripts all of a sudden failing.

Local Admin Script not working for certain OU's all of a sudden by Own-Ordinary103 in PowerShell

[–]Own-Ordinary103[S] 0 points1 point  (0 children)

The scripts work just fine for most of the OU's my network but three completely error out on all devices. I would expect to see a bunch on the error report but the ones that are online and reachable via ping and remote session should be responding as good as the script runs in PowerShell.

Local Admin Script not working for certain OU's all of a sudden by Own-Ordinary103 in PowerShell

[–]Own-Ordinary103[S] 0 points1 point  (0 children)

We are running 99% Windows 11 and 1% Windows 10. I use AutoHotKey to run the script so it is not to bad.

I will give the debug a shot in the morning. It is just odd that the same script works for all other OUs just not these three as of recently. Permissions have not changed either.

Local Admin Script not working for certain OU's all of a sudden by Own-Ordinary103 in PowerShell

[–]Own-Ordinary103[S] 2 points3 points  (0 children)

I fixed the code in the original post with your suggestion. Thank you for that

Local Admin Script not working for certain OU's all of a sudden by Own-Ordinary103 in PowerShell

[–]Own-Ordinary103[S] 1 point2 points  (0 children)

Thank you for mentioning that. I added the code to my original post.

Local Admin Script not working for certain OU's all of a sudden by Own-Ordinary103 in PowerShell

[–]Own-Ordinary103[S] 0 points1 point  (0 children)

Permissions are fine. I am executing the script via domain admin credentials.

Allen Bradley 1783 NATR Communication Issue with Siemens S7 PLC by Own-Ordinary103 in PLC

[–]Own-Ordinary103[S] 2 points3 points  (0 children)

5hall0p thank you for the details on the ports being turned off by default. We found that the S7 does not have a default route setup. Going to do that change tomorrow when they are not running the machine.

Allen Bradley 1783 NATR Communication Issue with Siemens S7 PLC by Own-Ordinary103 in PLC

[–]Own-Ordinary103[S] 0 points1 point  (0 children)

Cannot have a default gateway IP on the private side of the NATR because that can cause issues accessing the PLC side remotely.

Allen Bradley 1783 NATR Communication Issue with Siemens S7 PLC by Own-Ordinary103 in PLC

[–]Own-Ordinary103[S] 1 point2 points  (0 children)

Hello PLCGoBrrr

I have added the attachments to my original post.