[THIN] Re: OT: VBScript/WSH/WMI question.

  • From: "Braebaum, Neil" <neil.braebaum@xxxxxxxxxxxxxxxxxxxxxxxx>
  • To: "'thin@xxxxxxxxxxxxx'" <thin@xxxxxxxxxxxxx>
  • Date: Fri, 15 Nov 2002 20:29:18 -0000

You could use much the same convention as you're currently using, and open
the accounts for the computers (filter on users, and append a '$' to the end
of the computer name - that's the convention, computer accounts end in a
'$').

So if enumerating all the user objects in the domain (using the WinNT)
provider, then only opening / accessing objects with a '$' at the end, then
you can parse the userflags, could probably be useable.

However, you / your script actually accessed the computer object, and you
mentioned that this wasn't necessarily the full script, so you may /
probably have call to access properties of the computer object, which
probably (almost certainly) won't be available through the user object (they
are different objects, but from a scripting perspective, tend to be
overlooked).

I guess it really depends on what else the script needs to do, once it's
enumerated the correct computer objects.

However, I still feel you have some underlying problem - because I can't
think of any obvious reason why the PDC shouldn't enumerate using your
current method - you may not be able to currently distinguish it, but I
think it should evaluate just like any other computer object.

Neil

> -----Original Message-----
> From: Chris Lynch [mailto:lynch00@xxxxxxx] 
> Sent: 15 November 2002 20:17
> To: thin@xxxxxxxxxxxxx
> Subject: [THIN] Re: OT: VBScript/WSH/WMI question.
> 
> 
> 
> =20
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Ok, so then how would I script this?  Would I use what Larry 
> posted, or = do you have a better way Neil?
> 
> Thanks,
> 
> Chris Lynch, MCSE CCNA CCA
> Network Engineer
> Axcent Solutions
> clynch@xxxxxxxxxxxxxxxxxxx
> (949) 338-1904=20
> 
> - -----Original Message-----
> From: thin-bounce@xxxxxxxxxxxxx 
> [mailto:thin-bounce@xxxxxxxxxxxxx] On = Behalf Of Nail, Larry
> Sent: Friday, November 15, 2002 10:15 AM
> To: 'thin@xxxxxxxxxxxxx'
> Subject: [THIN] Re: OT: VBScript/WSH/WMI question.
> 
> 
> 
> OK, That's why I'm a scripter & not a programmer...  I have 
> to learn = things the hard way... Thanks for the education!
> 
> Larry
> 
> - -----Original Message-----
> From: Braebaum, Neil 
> [mailto:neil.braebaum@xxxxxxxxxxxxxxxxxxxxxxxx]=20
> Sent: Friday, November 15, 2002 11:38 AM
> To: 'thin@xxxxxxxxxxxxx'
> Subject: [THIN] Re: OT: VBScript/WSH/WMI question.
> 
> 
> 
> > -----Original Message-----
> > From: Nail, Larry [mailto:lnail@xxxxxx]
> > Sent: 15 November 2002 16:39
> > To: 'thin@xxxxxxxxxxxxx'
> > Subject: [THIN] Re: OT: VBScript/WSH/WMI question.
> >=20
> > Neil,
> >=20
> > A computer account is just a user account with a $ appended to it.
> 
> I know - that's why I wrote:-
> 
> "Presumably they are accessible, when actually opening the=20
> *user* account object for the computer in the same - but=20 
> that's not what's being accessed / filtered here."
> 
> I actually script the creation of computer accounts / objects 
> in AD, and = I use the computer account, in scripts, plus the 
> nametranslate object, = so that I don't have to search AD for 
> the computer object (ie I can = 'zip' straight to it)
> 
> I only pointed this out, because it's an attribute of the 
> *user* object = (ie the actual account, as opposed to the 
> computer object), and Chris's = script uses a filter on 
> *computer* objects, when evaluating the = computers within the domain.
> 
> Neil

***********************************************************************
This e-mail and its attachments are intended for the above named 
recipient(s) only and are confidential and may be privileged.
If they have come to you in error you must take no action based 
on them, nor must you copy or disclose them or any part of 
their contents to any person or organisation; please notify the 
sender immediately and delete this e-mail and its attachments from 
your computer system.

Please note that Internet communications are not necessarily secure 
and may be changed, intercepted or corrupted. We advise that 
you understand and observe this lack of security when e-mailing us 
and we will not accept any liability for any such changes, 
interceptions or corruptions. 

Although we have taken steps to ensure that this e-mail and its 
attachments are free from any virus, we advise that in keeping 
with good computing practice the recipient should ensure they 
are actually virus free.

Copyright in this e-mail and attachments created by us belongs 
to Littlewoods. 

Littlewoods takes steps to prohibit the transmission of offensive, 
obscene or discriminatory material.  If this message contains 
inappropriate material please forward the e-mail intact to 
postmaster@xxxxxxxxxxxxxxxxx and it will be investigated. 
Statements and opinions contained in this e-mail may not 
necessarily represent those of Littlewoods.

Please note that e-mail communication may be monitored.

Registered office: 
Littlewoods Retail Limited, 
Sir John Moores Building, 
100 Old Hall Street, 
Liverpool,
L70 1AB 
Registered no: 421258  

http://www.littlewoods.com 
***********************************************************************

*********************************************** 
For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link.

http://thethin.net/citrixlist.cfm

Other related posts: