| |||
Just reading between the lines - you're having to re-establish the connection between the server and the printer each time around? Does that mean it affects all users who use the printer in question? If you were simply mapping a printer through to a server, then you'd just use the AddWindowsPrinterConnection method on wshnetwork like: Code: Option Explicit Dim strPrinterUNC, objNet On Error Resume Next strPrinterUNC="\\server\printer" set objNet= CreateObject("Wscript.Network") objNet.AddWindowsPrinterConnection strPrinterUNC If Err.Number <> 0 Then wscript.echo "Printer mapping failed with " & Err.Number
__________________ Last edited by Áedán; 10th December, 2010 at 05:02 PM. Reason: stupid tags |
| |||
Over a VPN? If so, then I suspect you also have issues with the way that name resolution is configured. Windows does permit NetBIOS name lookups to occur over DNS - avoiding the issues that the old broadcast style lookups have. There isn't any reason why you can't use UNC (\\server) style lookups across different networks as long as you have name lookups sorted.
__________________ |
| ||||
Aidan's right; if your client is running over a VPN and the VPN and network name resolution are properly configured, then you should be able to ping the server by either NetBIOS or DNS name and it should work just fine, meaning that you should also be able to map network resources using \\servername\resourcename format. If you can't, then you need to investigate the name resolution configuration. If you have a configuration where they are logging onto the VPN AFTER they log onto the local workstation (like they run the Cisco VPN client when the login), well that's gonna be a bit different problem because you aren't going to have a connection to the server at the point where the logon script runs. Last edited by Gizmo; 13th December, 2010 at 06:25 PM. |
| ||||
No VPN, terminal server user only. Port 3389 is open to the firewall. Remote user starts PC, logs into local account, runs Remote Desktop Connection, types in the public IP of the Internet connection that has the server running. Connects. Which is where my problem lies, a remote user not apart of the local network with no VPN connectivity. Which means, no DNS so \\server doesnt exist (as far as the remote workstation is concerned anyway). |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Rate This Thread | |
| |
![]() | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Awaiting terminal freeze up. | cloasters | CRASHED! | 31 | 11th April, 2012 10:53 PM |
SMP Client update, current client expires July 4 | ThunderRd | ThunderRd's AOA FOLDING@HOME Team | 0 | 24th June, 2009 06:09 PM |
Scripting | Toro | ThunderRd's AOA FOLDING@HOME Team | 4 | 15th February, 2005 10:07 PM |
The Terminal, with Tom Hanks. | mookydooky | Random Nonsense! | 0 | 18th June, 2004 06:55 AM |