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:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* 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
Go Back   Tech Support Forum > Networking Forum > Networking Support
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Networking Support General Networking Support Forum

Reply
 
LinkBack Thread Tools
Old 07-18-2005, 02:10 AM   #1 (permalink)
Registered User
 
Join Date: Jul 2005
Posts: 3
OS: XP


Question Mapping a drive when logged off

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?
NeVrBorn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
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

Old 07-18-2005, 06:05 PM   #2 (permalink)
Manager, Networking Forums
 
johnwill's Avatar
 
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
johnwill is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-19-2005, 12:19 AM   #3 (permalink)
Registered User
 
Join Date: Jul 2005
Posts: 3
OS: XP


okay,....What about with a local machine?
NeVrBorn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-19-2005, 06:50 PM   #4 (permalink)
Manager, Networking Forums
 
johnwill's Avatar
 
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
johnwill is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-20-2005, 09:46 AM   #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
BishopNB is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-20-2005, 06:43 PM   #6 (permalink)
Manager, Networking Forums
 
johnwill's Avatar
 
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
johnwill is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-22-2005, 09:07 AM   #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.
BishopNB is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-22-2005, 10:13 PM   #8 (permalink)
Tech, Networking Forums
 
Squashman's Avatar
 
Join Date: Apr 2005
Location: 1265 Lombardi Ave.
Posts: 1,148
OS: All of the above


I would look into using PSEXEC from SysInternals.
Squashman is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-26-2005, 12:55 AM   #9 (permalink)
Registered User
 
Join Date: Jul 2005
Posts: 3
OS: XP


Quote:
Originally Posted by BishopNB
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.
Sounds alot like what I'm trying to do actually. Could you describe how you do it?
NeVrBorn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 12:49 AM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85