vbs: enum Printer drivers Share on Facebook Tweet on Twitter Share on LinkedIn Home › Forums › Scripting › Windows Script Host › vbs: enum Printer drivers This topic contains 0 replies, has 1 voice, and was last updated by Dumber 15 years, 3 months ago. Viewing 1 post (of 1 total) Author Posts DumberParticipant April 16, 2004 at 12:41 pm #98851 Gentleman (and ladies?) i wrote the following script to enum the print drivers: Code: dim objMaster, objDriver set objMaster = CreateObject(”PrintMaster.PrintMaster.1″) for each objDriver in objMaster.Drivers(”\server”) wscript.echo “DriverName : ” & objDriver.ModelName wscript.echo “Version : ” & objDriver.Version wscript.echo “DriverVersion : ” & objDriver.DriverVersion wscript.echo “DriverPath : ” & objDriver.Path wscript.echo “Environment : ” & objDriver.Environment wscript.echo “DriverEnv : ” & objDriver.DriverArchitecture wscript.echo “MonitorName : ” & objDriver.MonitorName next its a great script to enum the printerdrivers on a remote machine, but now i want to modify this script to use this for a local computer, but that doesn’t work. i only replaced the \server for a . (dot) the following error is what i got: the parameter is incorrect. when i replaced the \server for \computername is the following error i got: The environment specified is invalid. even when i used the FQDN thnx for the support! anyone got a clue what or why this happens here? edit: im using the prnadmin.dll from the windows 2000 resource kit (xp client) Author Posts Viewing 1 post (of 1 total) You must be logged in to reply to this topic.