Object Required Error 
Author Message
 Object Required Error

When trying to run a script on a Windows 2000 SP3 server, we get the
following error below:

Command typed in a command-line window to list printers on the local server:

cscript prnmgr.vbs -l

Error we get:

Unable to list printers, error code: 0x1A8. Object Required.

We get the same error when we try run a different script "cscript clone.vbs"

We have MS Windows Script Host Version 5.6.



Mon, 05 Sep 2005 04:28:53 GMT  
 Object Required Error
Code and line number of error?

Ray at work


Quote:
> When trying to run a script on a Windows 2000 SP3 server, we get the
> following error below:

> Command typed in a command-line window to list printers on the local
server:

> cscript prnmgr.vbs -l

> Error we get:

> Unable to list printers, error code: 0x1A8. Object Required.

> We get the same error when we try run a different script "cscript
clone.vbs"

> We have MS Windows Script Host Version 5.6.



Mon, 05 Sep 2005 04:45:20 GMT  
 Object Required Error
Forgive me, I'm not a vbasic programmer although I know how to program in
visual NWN script. I'm not sure how to answer your question.  All I did was
type the command at the C prompt in a command line window, hit the Return
key, and the reply we get at the next C prompt is "Unable to list printers,
error code: 0x1A8. Object Required." It looks like this:

(What I Type)
c:\cscript prnmgr.vbs -l

(What we get back)
c:\Unable to list printers, error code: 0x1A8. Object Required.

If you want me to list the whole code source of prnmgr.vbs, that would take
a couple pages. We get prnmgr.vbs from the Windows 2000 resource kit (more
info at
http://www.microsoft.com/technet/treeview/default.asp?url=/technet/co...
rofwin/pw0102.asp ). There is an example of a command line using prnmgr.vbs
at the page.  The command line switch "-l" we are using above just makes the
prnmgr.vbs list the printers that the local server has.



Quote:
> Code and line number of error?

> Ray at work



> > When trying to run a script on a Windows 2000 SP3 server, we get the
> > following error below:

> > Command typed in a command-line window to list printers on the local
> server:

> > cscript prnmgr.vbs -l

> > Error we get:

> > Unable to list printers, error code: 0x1A8. Object Required.

> > We get the same error when we try run a different script "cscript
> clone.vbs"

> > We have MS Windows Script Host Version 5.6.



Mon, 05 Sep 2005 05:50:20 GMT  
 Object Required Error
Oh, I didn't realize this was a script from the Reskit.  Let me see if I
have it...  I do.  It works fine for me.  There's 734 lines in that script.
Damn.  Nothing gives you a line number, huh?  What OS are you running this
on?  It seems that the only objects that are created are
PrintMaster.PrintMaster and Printer.Printer.  Whatever they are...

What OS?  Service pack level?  When I run this on NT4 SP6a, I get the same
error.

Ray at work


Quote:
> Forgive me, I'm not a vbasic programmer although I know how to program in
> visual NWN script. I'm not sure how to answer your question.  All I did
was
> type the command at the C prompt in a command line window, hit the Return
> key, and the reply we get at the next C prompt is "Unable to list
printers,
> error code: 0x1A8. Object Required." It looks like this:

> (What I Type)
> c:\cscript prnmgr.vbs -l

> (What we get back)
> c:\Unable to list printers, error code: 0x1A8. Object Required.

> If you want me to list the whole code source of prnmgr.vbs, that would
take
> a couple pages. We get prnmgr.vbs from the Windows 2000 resource kit (more
> info at

http://www.microsoft.com/technet/treeview/default.asp?url=/technet/co...

- Show quoted text -

Quote:
> rofwin/pw0102.asp ). There is an example of a command line using
prnmgr.vbs
> at the page.  The command line switch "-l" we are using above just makes
the
> prnmgr.vbs list the printers that the local server has.



> > Code and line number of error?

> > Ray at work



> > > When trying to run a script on a Windows 2000 SP3 server, we get the
> > > following error below:

> > > Command typed in a command-line window to list printers on the local
> > server:

> > > cscript prnmgr.vbs -l

> > > Error we get:

> > > Unable to list printers, error code: 0x1A8. Object Required.

> > > We get the same error when we try run a different script "cscript
> > clone.vbs"

> > > We have MS Windows Script Host Version 5.6.



Mon, 05 Sep 2005 06:06:14 GMT  
 Object Required Error

Quote:

> When trying to run a script on a Windows 2000 SP3 server, we get the
> following error below:

> Command typed in a command-line window to list printers on the local server:

> cscript prnmgr.vbs -l

> Error we get:

> Unable to list printers, error code: 0x1A8. Object Required.

Hi

prnmgr.vbs -l works ok for me (Win2k SP2).

Make a copy of the file, and substitute all
   on error resume next
with
   'on error resume next

Run the script again and see what line the error is at.

I guess you will get this result:

F:\>cscript F:\prnmgr.vbs -l
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

F:\prnmgr.vbs(307, 5) Microsoft VBScript runtime error: ActiveX component
can't create object: 'PrintMaster.PrintMaster.1'

If you do, I have no idea of how you can "repair" PrintMaster.PrintMaster.1 (I
would think it comes as a part of the OS, and it works ok on my computer).

--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter



Mon, 05 Sep 2005 06:11:54 GMT  
 Object Required Error
Perhaps try this at the command prompt:

regsvr32 C:\PROGRA~1\RESOUR~1\prnadmin.dll

(Assuming your system drive is C, and you installed the reskit at the
default location.)

Ray at work



Quote:

> > When trying to run a script on a Windows 2000 SP3 server, we get the
> > following error below:

> > Command typed in a command-line window to list printers on the local
server:

> > cscript prnmgr.vbs -l

> > Error we get:

> > Unable to list printers, error code: 0x1A8. Object Required.

> Hi

> prnmgr.vbs -l works ok for me (Win2k SP2).

> Make a copy of the file, and substitute all
>    on error resume next
> with
>    'on error resume next

> Run the script again and see what line the error is at.

> I guess you will get this result:

> F:\>cscript F:\prnmgr.vbs -l
> Microsoft (R) Windows Script Host Version 5.6
> Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

> F:\prnmgr.vbs(307, 5) Microsoft VBScript runtime error: ActiveX component
> can't create object: 'PrintMaster.PrintMaster.1'

> If you do, I have no idea of how you can "repair"

PrintMaster.PrintMaster.1 (I

- Show quoted text -

Quote:
> would think it comes as a part of the OS, and it works ok on my computer).

> --
> torgeir
> Microsoft MVP Scripting and WMI, Porsgrunn Norway
> Administration scripting examples and an ONLINE version of the 1328 page
> Scripting Guide: http://www.microsoft.com/technet/scriptcenter



Mon, 05 Sep 2005 06:17:39 GMT  
 Object Required Error

Quote:

> Perhaps try this at the command prompt:

> regsvr32 C:\PROGRA~1\RESOUR~1\prnadmin.dll

> (Assuming your system drive is C, and you installed the reskit at the
> default location.)

Ahh, yes, if I unregister the prnadmin.dll, I get the error that Joseph got:

"Unable to list printers, error: 0x1A8. Object required"

--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter



Mon, 05 Sep 2005 07:10:00 GMT  
 Object Required Error
That fixed the problem!  We needed to register the dll.  Thank you both very
very much for all your help!  We truly appreciate the troubleshooting and
assistance you both provided.

Joseph Litherland
Network System Administrator
VA



Quote:

> > Perhaps try this at the command prompt:

> > regsvr32 C:\PROGRA~1\RESOUR~1\prnadmin.dll

> > (Assuming your system drive is C, and you installed the reskit at the
> > default location.)

> Ahh, yes, if I unregister the prnadmin.dll, I get the error that Joseph
got:

> "Unable to list printers, error: 0x1A8. Object required"

> --
> torgeir
> Microsoft MVP Scripting and WMI, Porsgrunn Norway
> Administration scripting examples and an ONLINE version of the 1328 page
> Scripting Guide: http://www.microsoft.com/technet/scriptcenter



Tue, 06 Sep 2005 05:28:31 GMT  
 
 [ 8 post ] 

 Relevant Pages 

1. Object required error

2. Object required error with FSO

3. Getting Object Required error

4. Object required error (posted w/html)

5. Now it's an object required error, you all are awesome

6. Object Required Error

7. Object required error is killing me!!!

8. Object Required Error

9. Object required (Error 424)

10. 424 Object Required Error

11. 424 Object Required error

12. Object Required error

 

 
Powered by phpBB® Forum Software