如何读取域名信息?
How to read domain name information?
我需要使用 AutoIt 从 sysdm.cpl 读取域名信息。我可以启动控制台了。
Class 域信息的值(使用 AutoIt Window Information Tool 获得)是 #32770
.
Run("control.exe sysdm.cpl,,4")
这也适用于域和工作组:
Local $oWinNT = ObjGet("WinNT:")
For $oDomain In $oWinNT
ConsoleWrite($oDomain.Name & @CRLF)
Next
我找到了一个使用 WinAPI NetGetJoinInformation.
的更详细(更快)的解决方案
我需要使用 AutoIt 从 sysdm.cpl 读取域名信息。我可以启动控制台了。
Class 域信息的值(使用 AutoIt Window Information Tool 获得)是 #32770
.
Run("control.exe sysdm.cpl,,4")
这也适用于域和工作组:
Local $oWinNT = ObjGet("WinNT:")
For $oDomain In $oWinNT
ConsoleWrite($oDomain.Name & @CRLF)
Next
我找到了一个使用 WinAPI NetGetJoinInformation.
的更详细(更快)的解决方案