A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » Printing and Faxing with Windows XP
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

VB Code / Script to list all the printers in active directory.



 
 
Thread Tools Display Modes
  #1  
Old May 2nd 04, 09:12 PM
MIke C
external usenet poster
 
Posts: n/a
Default VB Code / Script to list all the printers in active directory.

Hi

In the days of NT, I would use net view \\printserver and
get a list of all the nt served printer queues on the
named print server. In my company, each printer had a
comment field with it, who had the building/floor number
where the printer was - this was great, I could create a
list which my dos scripts could use.

When we moved to XP and the printer people decided that
they would store the location in a different field in AD,
so the net view command still lists the queue name, bur
no longer lists the location/comment of the printer.

I'm told that a very simple bit of VB code / script can
be used to extract the required data, but I not a VB
coder, so have no idea how to start

Can anyone provide me with code which can extract printer
info from active directory

Thanks

MIke

Ads
  #2  
Old May 3rd 04, 08:40 PM
Cari \(MS-MVP\)
external usenet poster
 
Posts: n/a
Default VB Code / Script to list all the printers in active directory.

You'll probably need to ask this either in a VB newsgroup or the Servers
newsgroup.

Sorry,

Cari
www.coribright.com

"MIke C" wrote in message
...
Hi

In the days of NT, I would use net view \\printserver and
get a list of all the nt served printer queues on the
named print server. In my company, each printer had a
comment field with it, who had the building/floor number
where the printer was - this was great, I could create a
list which my dos scripts could use.

When we moved to XP and the printer people decided that
they would store the location in a different field in AD,
so the net view command still lists the queue name, bur
no longer lists the location/comment of the printer.

I'm told that a very simple bit of VB code / script can
be used to extract the required data, but I not a VB
coder, so have no idea how to start

Can anyone provide me with code which can extract printer
info from active directory

Thanks

MIke



  #3  
Old May 4th 04, 02:52 AM
Cari \(MS-MVP\)
external usenet poster
 
Posts: n/a
Default VB Code / Script to list all the printers in active directory.

You'll probably need to ask this either in a VB newsgroup or the Servers
newsgroup.

Sorry,

Cari
www.coribright.com

"MIke C" wrote in message
...
Hi

In the days of NT, I would use net view \\printserver and
get a list of all the nt served printer queues on the
named print server. In my company, each printer had a
comment field with it, who had the building/floor number
where the printer was - this was great, I could create a
list which my dos scripts could use.

When we moved to XP and the printer people decided that
they would store the location in a different field in AD,
so the net view command still lists the queue name, bur
no longer lists the location/comment of the printer.

I'm told that a very simple bit of VB code / script can
be used to extract the required data, but I not a VB
coder, so have no idea how to start

Can anyone provide me with code which can extract printer
info from active directory

Thanks

MIke



  #4  
Old May 4th 04, 03:04 AM
Cari \(MS-MVP\)
external usenet poster
 
Posts: n/a
Default VB Code / Script to list all the printers in active directory.

You'll probably need to ask this either in a VB newsgroup or the Servers
newsgroup.

Sorry,

Cari
www.coribright.com

"MIke C" wrote in message
...
Hi

In the days of NT, I would use net view \\printserver and
get a list of all the nt served printer queues on the
named print server. In my company, each printer had a
comment field with it, who had the building/floor number
where the printer was - this was great, I could create a
list which my dos scripts could use.

When we moved to XP and the printer people decided that
they would store the location in a different field in AD,
so the net view command still lists the queue name, bur
no longer lists the location/comment of the printer.

I'm told that a very simple bit of VB code / script can
be used to extract the required data, but I not a VB
coder, so have no idea how to start

Can anyone provide me with code which can extract printer
info from active directory

Thanks

MIke



  #5  
Old May 4th 04, 04:56 AM
Cari \(MS-MVP\)
external usenet poster
 
Posts: n/a
Default VB Code / Script to list all the printers in active directory.

You'll probably need to ask this either in a VB newsgroup or the Servers
newsgroup.

Sorry,

Cari
www.coribright.com

"MIke C" wrote in message
...
Hi

In the days of NT, I would use net view \\printserver and
get a list of all the nt served printer queues on the
named print server. In my company, each printer had a
comment field with it, who had the building/floor number
where the printer was - this was great, I could create a
list which my dos scripts could use.

When we moved to XP and the printer people decided that
they would store the location in a different field in AD,
so the net view command still lists the queue name, bur
no longer lists the location/comment of the printer.

I'm told that a very simple bit of VB code / script can
be used to extract the required data, but I not a VB
coder, so have no idea how to start

Can anyone provide me with code which can extract printer
info from active directory

Thanks

MIke



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 06:05 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.