Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Another AD formatting quirk / bug

Reply
 
Old 06-28-2006   #1 (permalink)
Andrew Watt [MVP]


 
 

Another AD formatting quirk / bug

I found this while trying to repro Chris's bug/quirk re AD.

Try the following:

$domain =
[System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain()

$DCs = $domain.DomainControllers

$DCs | format-list

It always displays as a table, not a list.

Default formatting as a table is all wrong. There is so much that is
cut off.

Thoughts?

Thanks

Andrew Watt MVP

My System SpecsSystem Spec
Old 06-28-2006   #2 (permalink)
Aspa


 
 

RE: Another AD formatting quirk / bug

PS C:\Beheer\powershell> $dcs|ft

Forest Current Highest OSVersi Roles Domain IPAddre SiteNam SyncFro
Inbound
Time Committ on ss e mAllSer
Connect
edUsn versCal ions
lback
------ ------- ------- ------- ----- ------ ------- ------- -------
-------
aspa... 28-0... 329160 Wind... {Pdc... apsa... 192.... ****...
{4fd...
aspa... 28-0... 288951 Wind... {Sch... aspa... 192.... ****...
{86d...


PS C:\Beheer\powershell> $dcs|fl


Forest : ****.****.nl
CurrentTime : 28-06-2006 13:21:08
HighestCommittedUsn : 329160
OSVersion : Windows 2000 Server
Roles : {PdcRole, RidRole}
Domain : ****.****.nl
IPAddress : 192.168.10.135
SiteName : *******
SyncFromAllServersCallback :
InboundConnections : {4fda05c5-972b-4826-9c9e-5b35567b8813}
OutboundConnections : {86dfe296-4cb4-47d4-89f9-7e4a0ebf9898}
Name : ******-****.****.****.nl
Partitions : {CN=Schema,CN=Configuration,DC=****,DC=****,DC
=nl, CN=Configuration,DC=****,DC=****,DC=nl, D
C=****,DC=****,DC=nl}

Forest : ****.****.nl
CurrentTime : 28-06-2006 13:21:08
HighestCommittedUsn : 288951
OSVersion : Windows 2000 Server
Roles : {SchemaRole, NamingRole, InfrastructureRole}
Domain : ****.****.nl
IPAddress : 192.168.10.136
SiteName : *******
SyncFromAllServersCallback :
InboundConnections : {86dfe296-4cb4-47d4-89f9-7e4a0ebf9898}
OutboundConnections : {4fda05c5-972b-4826-9c9e-5b35567b8813}
Name : ******-****.****.****.nl
Partitions : {CN=Schema,CN=Configuration,DC=****,DC=****,DC
=nl, CN=Configuration,DC=****,DC=****,DC=nl, D
C=****,DC=****,DC=nl}



doing:
PS> $dcs
this returns a list asswell

grt
Dennis
My System SpecsSystem Spec
Old 06-28-2006   #3 (permalink)
Andrew Watt [MVP]


 
 

Re: Another AD formatting quirk / bug

Thanks, Dennis.

It's consistent in the shell I was using.

I opened a new shell on the same machine and it works correctly. There
must be some bug somewhere but I suspect it would be a devil of a job
to track down.

Andrew Watt MVP

On Wed, 28 Jun 2006 06:35:01 -0700, Aspa
<Aspa@discussions.microsoft.com> wrote:

>PS C:\Beheer\powershell> $dcs|ft
>
>Forest Current Highest OSVersi Roles Domain IPAddre SiteNam SyncFro
>Inbound
> Time Committ on ss e mAllSer
>Connect
> edUsn versCal ions
> lback
>------ ------- ------- ------- ----- ------ ------- ------- -------
>-------
>aspa... 28-0... 329160 Wind... {Pdc... apsa... 192.... ****...
>{4fd...
>aspa... 28-0... 288951 Wind... {Sch... aspa... 192.... ****...
>{86d...
>
>
>PS C:\Beheer\powershell> $dcs|fl
>
>
>Forest : ****.****.nl
>CurrentTime : 28-06-2006 13:21:08
>HighestCommittedUsn : 329160
>OSVersion : Windows 2000 Server
>Roles : {PdcRole, RidRole}
>Domain : ****.****.nl
>IPAddress : 192.168.10.135
>SiteName : *******
>SyncFromAllServersCallback :
>InboundConnections : {4fda05c5-972b-4826-9c9e-5b35567b8813}
>OutboundConnections : {86dfe296-4cb4-47d4-89f9-7e4a0ebf9898}
>Name : ******-****.****.****.nl
>Partitions : {CN=Schema,CN=Configuration,DC=****,DC=****,DC
> =nl, CN=Configuration,DC=****,DC=****,DC=nl, D
> C=****,DC=****,DC=nl}
>
>Forest : ****.****.nl
>CurrentTime : 28-06-2006 13:21:08
>HighestCommittedUsn : 288951
>OSVersion : Windows 2000 Server
>Roles : {SchemaRole, NamingRole, InfrastructureRole}
>Domain : ****.****.nl
>IPAddress : 192.168.10.136
>SiteName : *******
>SyncFromAllServersCallback :
>InboundConnections : {86dfe296-4cb4-47d4-89f9-7e4a0ebf9898}
>OutboundConnections : {4fda05c5-972b-4826-9c9e-5b35567b8813}
>Name : ******-****.****.****.nl
>Partitions : {CN=Schema,CN=Configuration,DC=****,DC=****,DC
> =nl, CN=Configuration,DC=****,DC=****,DC=nl, D
> C=****,DC=****,DC=nl}
>
>
>
>doing:
>PS> $dcs
>this returns a list asswell
>
>grt
>Dennis

My System SpecsSystem Spec
Old 06-28-2006   #4 (permalink)
Abhishek Agrawal [MSFT]


 
 

Re: Another AD formatting quirk / bug

Andrew,
Please open a bug. I will follow-up

--
Abhishek Agrawal [MSFT]
http://spaces.msn.com/abhishek225
Windows PowerShell Team
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.


"Andrew Watt [MVP]" <SVGDeveloper@aol.com> wrote in message
news:jv25a2153ej3001b96on2gfnirslum9aa9@4ax.com...
> Thanks, Dennis.
>
> It's consistent in the shell I was using.
>
> I opened a new shell on the same machine and it works correctly. There
> must be some bug somewhere but I suspect it would be a devil of a job
> to track down.
>
> Andrew Watt MVP
>
> On Wed, 28 Jun 2006 06:35:01 -0700, Aspa
> <Aspa@discussions.microsoft.com> wrote:
>
>>PS C:\Beheer\powershell> $dcs|ft
>>
>>Forest Current Highest OSVersi Roles Domain IPAddre SiteNam SyncFro
>>Inbound
>> Time Committ on ss e mAllSer
>>Connect
>> edUsn versCal
>> ions
>> lback
>>------ ------- ------- ------- ----- ------ ------- ------- -------
>>-------
>>aspa... 28-0... 329160 Wind... {Pdc... apsa... 192.... ****...
>>{4fd...
>>aspa... 28-0... 288951 Wind... {Sch... aspa... 192.... ****...
>>{86d...
>>
>>
>>PS C:\Beheer\powershell> $dcs|fl
>>
>>
>>Forest : ****.****.nl
>>CurrentTime : 28-06-2006 13:21:08
>>HighestCommittedUsn : 329160
>>OSVersion : Windows 2000 Server
>>Roles : {PdcRole, RidRole}
>>Domain : ****.****.nl
>>IPAddress : 192.168.10.135
>>SiteName : *******
>>SyncFromAllServersCallback :
>>InboundConnections : {4fda05c5-972b-4826-9c9e-5b35567b8813}
>>OutboundConnections : {86dfe296-4cb4-47d4-89f9-7e4a0ebf9898}
>>Name : ******-****.****.****.nl
>>Partitions :
>>{CN=Schema,CN=Configuration,DC=****,DC=****,DC
>> =nl, CN=Configuration,DC=****,DC=****,DC=nl,
>> D
>> C=****,DC=****,DC=nl}
>>
>>Forest : ****.****.nl
>>CurrentTime : 28-06-2006 13:21:08
>>HighestCommittedUsn : 288951
>>OSVersion : Windows 2000 Server
>>Roles : {SchemaRole, NamingRole, InfrastructureRole}
>>Domain : ****.****.nl
>>IPAddress : 192.168.10.136
>>SiteName : *******
>>SyncFromAllServersCallback :
>>InboundConnections : {86dfe296-4cb4-47d4-89f9-7e4a0ebf9898}
>>OutboundConnections : {4fda05c5-972b-4826-9c9e-5b35567b8813}
>>Name : ******-****.****.****.nl
>>Partitions :
>>{CN=Schema,CN=Configuration,DC=****,DC=****,DC
>> =nl, CN=Configuration,DC=****,DC=****,DC=nl,
>> D
>> C=****,DC=****,DC=nl}
>>
>>
>>
>>doing:
>>PS> $dcs
>>this returns a list asswell
>>
>>grt
>>Dennis



My System SpecsSystem Spec
Old 06-29-2006   #5 (permalink)
Andrew Watt [MVP]


 
 

Re: Another AD formatting quirk / bug

Done.

https://www.connect.microsoft.com/fe...1092&SiteID=99

BTW the faulty PowerShell instance is still open (just checked) so if
you want some trace done in it to narrow down the cause of the problem
I can do that (at least I can at the moment). Email me off list if you
want me to do that.

Andrew Watt MVP

On Wed, 28 Jun 2006 16:50:48 -0700, "Abhishek Agrawal [MSFT]"
<abhiag@online.microsoft.com> wrote:

>Andrew,
> Please open a bug. I will follow-up

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Attachments quirk Vista mail
Printer Quirk Vista hardware & devices
Annoying quirk... can you help? Vista performance & maintenance
More.com?? Quirk PowerShell
Cert quirk or bug? PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46