AutoIT connection component for DNS Console (dnsmgmt.msc)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

AutoIT connection component for DNS Console (dnsmgmt.msc)

L3 Networker

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?

 

7 REPLIES 7

L2 Linker

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.

 

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.

 

L3 Networker

Yes they are VMs. I'll check the drivers and timeout. Thanks for the tips.

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!!

Hi martin,

Do you have the connector for dnsmgmt.msc working? How did you get it?

Thank you very much

L7 Applicator

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 !

 

 

L5 Sessionator

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

  • 647 Views
  • 7 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!