- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.
10-20-2022 03:14 PM
I've been having issues with running the DNS Console (dnsmgmt.msc) via an AutoIT script. I have the
Global Const $CLIENT_EXECUTABLE = 'mmc "C:\Windows\System32\dnsmgmt.msc"'
Global $TargetUsername
Global $TargetPassword
Global $TargetAddress
Global $TargetLogonDomain
Global $ConnectionClientPID = 0
$ConnectionClientPID = RunAs($TargetUsername,$TargetLogonDomain,$TargetPassword,"2",$CLIENT_EXECUTABLE)
I will work for a user then not for another user. For the user that it is not working for I can see the initialize... and the PSM recording but the console doesn't display. I'm not seeing anything specific in the logs as to why it won't run.
I tried deleting the PSM-xxxxxxxxx user on the PSM but still won't run. I reconciled and verified the password. The onboarded account has DnsAdmin permissions and when it works for a specific user then they are able to manage dns records.
I have an ADUC working just fine, with a similar AutoIT script dsa.msc instead of the dnsmgmt.msc.
MMC is allowed in the applocker configs.
Any thoughts to why the console won't display for some users?
11-03-2022 05:14 AM
Are the PSM running on vmware? - we had an issue with the vmware VGA driver that needed to be updated on the PSM servers.
Also timeout could be an issue, if it takes to long to start the application, you can configure a higher timeout value on the connection component configuration.
11-03-2022 05:14 AM
Are the PSM running on vmware? - we had an issue with the vmware VGA driver that needed to be updated on the PSM servers.
Also timeout could be an issue, if it takes to long to start the application, you can configure a higher timeout value on the connection component configuration.
11-04-2024 05:33 PM
Hi Mark,
were you able to resolve this issue?
I'm trying to create a connection component for dnsmgmt.msc and I can't get it to work.
thanks!!
11-04-2024 05:35 PM
Hi martin,
Do you have the connector for dnsmgmt.msc working? How did you get it?
Thank you very much
11-05-2024 03:50 AM
Hi @Mark _
Please try running dnsmgmt.msc manually under the failing user’s context on the PSM server to see if the issue persists without AutoIT. This will help verify whether the issue is AutoIT-related or more user-profile-specific.
Also try adding delay in the script to resolve issues with inconsistent behavior.
Hope it helps !
11-05-2024 11:43 AM
Its really easy to make CC for DNSManager or ADUC. If in one server it is working then you should see what are missing in another or also, check if applocker config is causing any issue
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

