Calling all techies, calling all techies...
Moderator: Forum Moderators
-
Woo Elephant Yeah
- Heavy

- Posts: 5433
- Joined: October 10th, 2004, 17:36
- Location: Bristol, UK
- Contact:
Calling all techies, calling all techies...
Anybody here know how to export a list of shared windows printers along with their Location, Comments details into a spreadsheet file such as *.csv or *.xls?
I really really don't want to type this out manually for over a hundred printers, and I'm pretty sure you guys would have had to do this at some point in your career.
If it helps, we have Active Directory and the printers are installed on a clustered 2003 server, but I assume that should make no odds.
Thanks in advance
I really really don't want to type this out manually for over a hundred printers, and I'm pretty sure you guys would have had to do this at some point in your career.
If it helps, we have Active Directory and the printers are installed on a clustered 2003 server, but I assume that should make no odds.
Thanks in advance
On the "Windows 2000 Server Resource Kit Supplement" CD there is a vbs script named share.vbs.
You want this.
You want this.
Code: Select all
The Kit Supplement contains Share.VBS, which can list, create, or delete shares from a local or remote computer. The syntax is:
1. Share.vbs /L [/S <server>] [/U <username>] [/W <password>]
[/O <outputfile>]
2. Share.vbs /C /N <name> /P <path> [/T <type>] [/V <description>]
[/S <server>] [/U <username>] [/W <password>]
[/O <outputfile>]
3. Share.vbs /D /N <name>
[/S <server>] [/U <username>] [/W <password>]
[/O <outputfile>]
PARAMETER SPECIFIERS:
/L Lists all shares on a machine.
/C Creates a share on a machine.
/D Deletes a share from a machine.
name Name of the share to be created or deleted.
path Path of the share to be created.
description A description for the share.
type Type of the share to be created. Must be one
one of Disk, Printer, IPC, Special.
server A machine name.
username The current user's name.
password Password of the current user.
outputfile The output file name.
EXAMPLE:
1. cscript Share.vbs /l /s MyMachine2
List the shares on the machine MyMachine2.
2. cscript Share.vbs /c /n scratch /p c:\scratch /t Disk /v "Scratch Directory"
Creates a file share called "scratch" on the local machine.
3. cscript Share.vbs /d /n scratch /s MyMachine2.
Deletes the share named "scratch" on the machine MyMachine2.-
Woo Elephant Yeah
- Heavy

- Posts: 5433
- Joined: October 10th, 2004, 17:36
- Location: Bristol, UK
- Contact:
Had to use Google to find the bloody things on M$'s website but here be downlaods of said resource kit tools 
http://download.microsoft.com/download/2/0/C/20C1B0F7-B803-4BAB-BA2F-27DDCADAD68E/sp4supporttools.exe
Otherwise this should do it
http://download.microsoft.com/download/2/0/C/20C1B0F7-B803-4BAB-BA2F-27DDCADAD68E/sp4supporttools.exe
Otherwise this should do it
-
Woo Elephant Yeah
- Heavy

- Posts: 5433
- Joined: October 10th, 2004, 17:36
- Location: Bristol, UK
- Contact:
-
Woo Elephant Yeah
- Heavy

- Posts: 5433
- Joined: October 10th, 2004, 17:36
- Location: Bristol, UK
- Contact:
This may be what you're after
http://www.microsoft.com/windows2000/do ... tools.mspx
*WARNING* THE ABOVE LINK DOES NOT CONTAIN HORSES
ARSE, and looks like it may be the same thing
http://www.microsoft.com/windows2000/do ... tools.mspx
*WARNING* THE ABOVE LINK DOES NOT CONTAIN HORSES
ARSE, and looks like it may be the same thing
-
Woo Elephant Yeah
- Heavy

- Posts: 5433
- Joined: October 10th, 2004, 17:36
- Location: Bristol, UK
- Contact:
Try sitting on the server which shares the printers and typing:
This will give you a list you can cut and paste and will probably be a lot quicker than hand writing them. It does not exclude non-printer shares tho.
Code: Select all
net shareCode: Select all
Share name Resource Remark
-------------------------------------------------------------------------------
print$ C:\WINDOWS\system32\spool\drivers
Printer Drivers
C$ C:\ Default share
ADMIN$ C:\WINDOWS Remote Admin
IPC$ Remote IPC
EPSON880 USB001 Spooled EPSON Stylus COLOR 880
The command completed successfully.-
Woo Elephant Yeah
- Heavy

- Posts: 5433
- Joined: October 10th, 2004, 17:36
- Location: Bristol, UK
- Contact:
-
Woo Elephant Yeah
- Heavy

- Posts: 5433
- Joined: October 10th, 2004, 17:36
- Location: Bristol, UK
- Contact:
-
Dr. kitteny berk
- Morbo

- Posts: 19676
- Joined: December 10th, 2004, 21:53
- Contact:
would something similar be possible dumping to text file using Gonad?
-
Woo Elephant Yeah
- Heavy

- Posts: 5433
- Joined: October 10th, 2004, 17:36
- Location: Bristol, UK
- Contact:
-
Woo Elephant Yeah
- Heavy

- Posts: 5433
- Joined: October 10th, 2004, 17:36
- Location: Bristol, UK
- Contact:
Cast Resurrect Thread Level 111eleventyone!
I need to do the same thing again, and I'm really reluctant to save printscreens and OCR them again
Anyone have any other suggestions, as I still can't find that Share.vbs script Fear mentioned anywhere.
Surely there must be an easy way to output every printer on a file and print server into a file in some way? I'm googled out, but I wondered if any of you techies new any decent sites for posting questions such as this?
I need to do the same thing again, and I'm really reluctant to save printscreens and OCR them again
Anyone have any other suggestions, as I still can't find that Share.vbs script Fear mentioned anywhere.
Surely there must be an easy way to output every printer on a file and print server into a file in some way? I'm googled out, but I wondered if any of you techies new any decent sites for posting questions such as this?



