A Windows Vista forum. Vista Banter

Welcome to Vista Banter.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to ask questions and reply to others posts, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

Go Back   Home » Vista Banter forum » Microsoft Windows Vista » Networking with Windows Vista
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Networking with Windows Vista Networking issues and questions with Windows Vista. (microsoft.public.windows.vista.networking_sharing)

WshNetwork.AddWindowsPrinterConnection



 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old August 30th 06, 08:00 AM posted to microsoft.public.windows.vista.networking_sharing
Robert Fischer
external usenet poster
 
Posts: 16
Default WshNetwork.AddWindowsPrinterConnection

Hello

Does any body know why the (under Windows XP properly working) vbs-script

Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\\servername\printername"

fails under Windows Vista with the following error message?:

"Windows Script Host"
Script: ...\scriptname.vbs
Line: 2
Char: 1
Error: The specified procedure could not be found
Code: 8007007F

Thanks for any support in advance.
Best regards


Robert Fischer
(University of Applied Sciences Nuremberg, Department Computer Scienes,
Windows Administration)

P.S.: I've written an error report to Microsoft


  #2 (permalink)  
Old September 1st 06, 03:06 AM posted to microsoft.public.windows.vista.networking_sharing
John [MS]
external usenet poster
 
Posts: 13
Default WshNetwork.AddWindowsPrinterConnection

What build are you running? Line 2 is WshNetwork.AddWindowsPrinterConnection
"\\servername\printername"
Can you browse to the share? Can u install the printer by going to that
share? Try disabling UAC

John
Microsoft Windows Beta Team


"Robert Fischer" wrote in
message ...
Hello

Does any body know why the (under Windows XP properly working) vbs-script

Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\\servername\printername"

fails under Windows Vista with the following error message?:

"Windows Script Host"
Script: ...\scriptname.vbs
Line: 2
Char: 1
Error: The specified procedure could not be found
Code: 8007007F

Thanks for any support in advance.
Best regards


Robert Fischer
(University of Applied Sciences Nuremberg, Department Computer Scienes,
Windows Administration)

P.S.: I've written an error report to Microsoft



  #3 (permalink)  
Old September 1st 06, 08:47 AM posted to microsoft.public.windows.vista.networking_sharing
Robert Fischer
external usenet poster
 
Posts: 16
Default WshNetwork.AddWindowsPrinterConnection

Hello John

This error occurs with BUILD 5536, 5472.5 and 5384.

Network-Browsing is disabled in our network for security reasons.
But running the command "net view \\servername" enumerates the printershare \\servername\printername properly.

Trying to install the printer by going to that share leads to the following error messages:
"The printer name is invalid"
"The printer cannot be found"
"Spooler Subsystem App stopped working and was closed"

Then I've tried to apply the following script after restarting the local "Print Spooler" service a lot of times:
rundll32 printui.dll,PrintUIEntry /in /c\\servername /n\\servername\printername /u /q
And suddenly the printer has been installed properly.

I've tried to reproduce the behaviour but I canīt find any rule:
Very often the Printer Spooler crashes and there is no way to connect to that network printer; but sometimes it works properly?!

Disabling UAC (HKLM\Software\Microsoft\Windows\CurrentVersion\Po licies\System\EnableLUA=0) causes the same problems.

These printer shares are part of our Windows Server 2003/Windows XP network and are doing their job for about 4 years without any problems (these shares are assigned via AD Group Policies)!
There are concurrent IPsec-based connections from my workstation to the server \\servername because this server also acts as a file server for the home directories; could this be a problem for Windows Vista?

Any ideas?

Best regards


Robert


"John [MS]" wrote in message ...
What build are you running? Line 2 is WshNetwork.AddWindowsPrinterConnection
"\\servername\printername"
Can you browse to the share? Can u install the printer by going to that
share? Try disabling UAC

John
Microsoft Windows Beta Team


"Robert Fischer" wrote in
message ...
Hello

Does any body know why the (under Windows XP properly working) vbs-script

Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\\servername\printername"

fails under Windows Vista with the following error message?:

"Windows Script Host"
Script: ...\scriptname.vbs
Line: 2
Char: 1
Error: The specified procedure could not be found
Code: 8007007F

Thanks for any support in advance.
Best regards


Robert Fischer
(University of Applied Sciences Nuremberg, Department Computer Scienes,
Windows Administration)

P.S.: I've written an error report to Microsoft



 




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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:50 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.Search Engine Optimization by vBSEO 3.0.0 RC6
Copyright Đ2004-2012 Vista Banter.
The comments are property of their posters.