|
Replies:
10
-
Pages:
1
-
Last Post:
Nov 23, 2009 9:30 AM
by: Paul Chavez
|
|
|
Posts:
6
Registered:
9/11/09
|
|
|
|
connect-qadservice which DC ?
Posted:
Nov 20, 2009 12:55 PM
|
|
|
if I run $conn = connect-qadservice -service domain.com $conn
I get the connection but how do find which actual DC is being connected to?
Thanks, Steve---
|
|
|
Posts:
178
Registered:
9/3/08
|
|
|
|
Re: connect-qadservice which DC ?
Posted:
Nov 20, 2009 2:30 PM
in response to: Steve_J
|
 |
Helpful |
|
|
$conn.Directory.ServerName
OR, if you didn't save to variable it'll be in the $QADConnection session variable.
And in the spirit of 'teach a man to fish' I figured this out by inspecting the $conn variable.
First: $conn | fl *
This showed a Directory property that looked interesting, then I ran: $conn.Directory | fl *
However, if you do the same you'll notice other tasty properties wrapped up in custom Quest object that may be interesting.
Message was edited by: Paul Chavez
|
|
|
Posts:
6
Registered:
9/11/09
|
|
|
|
Re: connect-qadservice which DC ?
Posted:
Nov 23, 2009 4:50 AM
in response to: Paul Chavez
|
|
|
I don't get "directory" listed as a property.
here's my output:
[PS] C:\>$conn = Connect-QADService -Service 'mercer.com' [PS] C:\>$conn | fl *
Type : ActiveDirectory TerminalServicesProperties : {TsBrokenConnectionAction, TsAllowLogon, TsReconnectionAction, TsEnableRemoteControl...} Domain : mercer.com Parameters : Quest.ActiveRoles.ArsPowerShellSnapIn.ConnectionParameters RootDSE : rootDSE BindFlags : Secure, Signing, Sealing, ServerBind Schema : Quest.ActiveRoles.ArsPowerShellSnapIn.Data.ArsDirectorySchema DefaultNamingContext : DC=mercer,DC=com ConfigurationNamingContext : CN=Configuration,DC=mercerinc,DC=com
I've also gone through and inspected these and wasn't able to find the DC I was connected to.
do I need another library loaded or something? also I'm on XP sp3, .NET 3.5, QAD 1.1, powergui 1.9
|
|
|
Posts:
1,919
Registered:
1/31/08
|
|
|
Posts:
6
Registered:
9/11/09
|
|
|
|
Re: connect-qadservice which DC ?
Posted:
Nov 23, 2009 5:34 AM
in response to: Shay Levy
|
|
|
that returns
[PS] C:\>$conn.RootDSE.path LDAP://mercer.com/rootDSE
I'm trying to get the actual domain controller
|
|
|
Posts:
1,919
Registered:
1/31/08
|
|
|
Posts:
6
Registered:
9/11/09
|
|
|
|
Re: connect-qadservice which DC ?
Posted:
Nov 23, 2009 6:15 AM
in response to: Shay Levy
|
|
|
that did it, upgrading to 1.3
Thanks, greatly appreciated.
|
|
|
Posts:
1,919
Registered:
1/31/08
|
|
|
Posts:
178
Registered:
9/3/08
|
|
|
|
Re: connect-qadservice which DC ?
Posted:
Nov 23, 2009 8:58 AM
in response to: Shay Levy
|
|
|
How do you check QAD cmdlet versions?
|
|
|
Posts:
1,919
Registered:
1/31/08
|
|
|
Posts:
178
Registered:
9/3/08
|
|
|
|
Re: connect-qadservice which DC ?
Posted:
Nov 23, 2009 9:30 AM
in response to: Shay Levy
|
|
|
Thanks, Shay.
I'm running 1.2.2.1254.
|
|
|
|
Legend
|
|
MVP: 2501
+
pts
|
|
Guru: 2001
- 2500
pts
|
|
Expert: 751
- 2000
pts
|
|
Enthusiast: 31
- 750
pts
|
|
Novice: 0
- 30
pts
|
|
Moderators
|
|
Helpful answer
(5 pts)
|
|
Answered
(10 pts)
|
|