Retrieve Primary Domain Controller in Wise
For a setup I am creating I am required to retrieve the end user's primary domain controller and place it in a property, so that is becomes the default value.
The catch is that I cannot use VBScript, WiseScript, or any other kind of script to grab it.
Is there any way I can call a DLL or something to pull the server name into a property?
e.g. netapi32.dll
I am a n00b when it comes to making calls to DLLs.
Thanks
The catch is that I cannot use VBScript, WiseScript, or any other kind of script to grab it.
Is there any way I can call a DLL or something to pull the server name into a property?
e.g. netapi32.dll
I am a n00b when it comes to making calls to DLLs.
Thanks
0 Comments
[ + ] Show comments
Answers (11)
Please log in to answer
Posted by:
bheers
18 years ago
Posted by:
timmsie
18 years ago
Posted by:
OldWiseMan
18 years ago
Posted by:
timmsie
18 years ago
You'd have to parse them off with wise script or vb script.
The variable I included will give you the domain not the domain controller. Sorry I misread the question, I guess your using [%LOGONSERVER].
You can get the PDC by calling the netapi32.dll the function is NetGetDCName. But that's as far as I go with dll calls I'm afraid!!
The variable I included will give you the domain not the domain controller. Sorry I misread the question, I guess your using [%LOGONSERVER].
You can get the PDC by calling the netapi32.dll the function is NetGetDCName. But that's as far as I go with dll calls I'm afraid!!
Posted by:
OldWiseMan
18 years ago
Posted by:
timmsie
18 years ago
Posted by:
aogilmor
18 years ago
Posted by:
aogilmor
18 years ago
Posted by:
OldWiseMan
18 years ago
Posted by:
aogilmor
18 years ago
cheers mate [;)] i think your sol. is tighter actually (relies less on vbscript, which really kinda sux).
MSFT recommends agains vbscript in custom actions because you can't guarantee a roll back.
MSFT recommends agains vbscript in custom actions because you can't guarantee a roll back.
Posted by:
Foleymon
18 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.