![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Networking Support General Networking Support Forum |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Jul 2005
Posts: 3
OS: XP
|
Hey.
I'm currently working on trying to map a drive when I am logged off, and then running a batch program. This because I want to run programs on other computers at night. The prosedure I run know (net use) requires the user to be logged onto the computer, and I want to work around this, probably using a method which can take username and password as an input. Any idea? This is what I have now: @rem --- Check H:\Pdmsuser ----------------------------------------------- @ If exist H:\folder goto hok @ If Exist H:\ ( @ Net Use H: /DELETE @ ) @ Net use H: \\%computername\ @ If NOT exist H:\Pdmsuser ( @ Echo Unable to connect H: to \\%computername\ @ Pause @ Exit /B @ ) @ :hok @ Exit /B I have also tried making a vbscript with WshNetwork.MapNetworkDrive and calling that, but it does not work. Is it at all possible to map a drive when offline/logged off?
|
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#2 (permalink) |
|
Manager, Networking Forums
Join Date: Sep 2002
Location: S.E. Pennsylvania, US
Posts: 41,940
OS: Windows 7, XP-Pro, Vista, Linux
Blog Entries: 1
|
I know of no way to connect to a remote computer when you're logged off. You can access shares on a remote computer with nobody logged in.
__________________
If TSF has helped you, Tell us about it! or Donate to help keep the site up! Microsoft MVP - Windows Desktop Experience |
|
|
|
|
|
#4 (permalink) |
|
Manager, Networking Forums
Join Date: Sep 2002
Location: S.E. Pennsylvania, US
Posts: 41,940
OS: Windows 7, XP-Pro, Vista, Linux
Blog Entries: 1
|
Well, by "remote computer", I'm talking about one on a local LAN.
__________________
If TSF has helped you, Tell us about it! or Donate to help keep the site up! Microsoft MVP - Windows Desktop Experience |
|
|
|
|
|
#5 (permalink) |
|
Registered User
Join Date: Jul 2005
Location: West Texas
Posts: 10
OS: Windows XP
|
You can use the following command thru the command prompt:
net use * \\computername\sharename /user:computername\username e.g. net use * \\Computer1\downloads /user:computer1\jdoe The above command would be used if the machine you're logging into is not on a domain. If the computer is part of the domain then you would use the following syntax: net use * \\computer1\downloads /user:domainname\jdoe e.g. net use * \\computer1\downloads /user:widgets\jdoe widgets would be an example of a domain name. The asterick would be used for the drive letter. The * would pick the next available drive letter |
|
|
|
|
|
#6 (permalink) |
|
Manager, Networking Forums
Join Date: Sep 2002
Location: S.E. Pennsylvania, US
Posts: 41,940
OS: Windows 7, XP-Pro, Vista, Linux
Blog Entries: 1
|
He's trying to connect while being logged out. How does he run those NET commands unless he's logged in?
__________________
If TSF has helped you, Tell us about it! or Donate to help keep the site up! Microsoft MVP - Windows Desktop Experience |
|
|
|
|
|
#7 (permalink) |
|
Registered User
Join Date: Jul 2005
Location: West Texas
Posts: 10
OS: Windows XP
|
In a way it logs you in but you really don't have to press the normal ctrl+alt+del to log in. There isn't a way to map a drive unless you give a username and password to authenticate with.
I can take a computer that isn't part of a domain and as long as I can access it thru a network connection and I have a username and password for that domain then I can map a drive on that system. |
|
|
|
|
|
#9 (permalink) | |
|
Registered User
Join Date: Jul 2005
Posts: 3
OS: XP
|
Quote:
|
|
|
|
|
![]() |
| Thread Tools | |
|
|