Re: RPC error with Logon Script

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hello aaron,

Did you check "Always wait for the network at computer startup and logon" for the clients in GPO. Maybe this helps. Seems tht the network is not complete prepared before the script runs.

Best regards

Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and confers no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm

We have a simple three line vbscript that adds a default printer for a
user when they log in:

Set objWSHNet = CreateObject("WScript.Network")
objWSHNet.AddWindowsPrinterConnection "\\PRINTSERVER\A_Printer"
objWSHNet.SetDefaultPrinter "\\PRINTSERVER\A_Printer"

We have used this script successfully for years and years. Today,
though, we moved printing services on to a new server. The only
change we made to the script is changing the server name to the new
server. Now, when a user logs in for the first time, it attempts to
run that script and we get a "Remote Procedure Call Failed Error
#800706BE".

If the user, after getting to the desktop, runs this VERY SAME script
by hand...it works. Further, if that user logs out, and another user
logs in, the script will run at log in for that second user just
fine!! o_0

It's almost as if, the first time it attempts it, it can't find the
server, but then it can on the second and subsequent attempts, but I'm
unsure why that would be. Anyone have any thoughts?



.



Relevant Pages

  • RE: KB958644 Disables RDP Connections to Server2K3 SE
    ... If you aren't seeing any errors in the system or application logs relating to ... It has to be something network related ... The server rebooted this morning at ... states "This computer can't connect to the remote computer. ...
    (microsoft.public.windowsupdate)
  • Re: DHCP Reservation issues
    ... but what about your login script details/reasons for doing this/etc? ... You may be able to set up your network more efficiently if you provide ... new problem I have is that the SBS server where the DHCP ... even though I set a reservation for them in the DHCP console ...
    (microsoft.public.windows.server.sbs)
  • Re: DHCP Problem
    ... Select the Internal network, and edit it to include .255 ... Server the week before. ... Denied Connections started showing up in the ISA logs seconds later. ... Ethernet adapter Server Local Area Connection: ...
    (microsoft.public.backoffice.smallbiz)
  • Re: HTTPS; SSL-Tunnel
    ... This is another sample of the ISA logs. ... is the DNS server on the internal network. ...
    (microsoft.public.isa)
  • RE: Logon Script Issues
    ... The network still has the same subnets. ... Yes we have a new dns server. ... The script does have mappings and uses AD groups to do mapping. ... We have tried a Kixtart script and a VBS script with the same results. ...
    (microsoft.public.windows.server.scripting)