How to set up a static drivemapping ?

Hi ! I been trying to setup a drivemapping on a win2k server without the need of a user to be logged on. I have tried to schedule a batchfile (net use blablabla) to be started when the computer start and tried to make a service of the batchfi...




Topic Options
#87240 - 12/10/01 03:45 PM How to set up a static drivemapping ?
Toby Offline
enthusiast

Registered: 01/17/00
Posts: 313
Loc: Stockholm, Sweden
Hi !

I been trying to setup a drivemapping on a win2k server without the
need of a user to be logged on. I have tried to schedule a batchfile (net use blablabla) to be started when the computer start
and tried to make a service of the batchfile without any success....

Anyone know how to do this? A thirdparty app perhaps? If thirdparty it would be great if it was freeware since this is a just a testserver...The server is a
member of a domian and I was planning to use a domainaccount for this mapping.

Thanks in advance.

/Toby

Top
Advertisement
#87242 - 12/10/01 03:53 PM Re: How to set up a static drivemapping ?
kgeissler Offline
enthusiast

Registered: 03/16/00
Posts: 362
Loc: Dallas, TX
You can always use the administrative shares. Like C$...

Top
#87244 - 12/10/01 04:37 PM Re: How to set up a static drivemapping ?
Toby Offline
enthusiast

Registered: 01/17/00
Posts: 313
Loc: Stockholm, Sweden
Won't work, c$ is just a share like anyone else. Need to logon before connecting to it.

The application that runs on the server is a Lotus-server and that shitty piece of crap can't use UNC paths. It can only access the data on another server through a driveletter. I want the share to be mapped without anyone need to be logged on locally.

Hope this clear it up a bit smile

Cheers!

/Toby

Top
#87268 - 12/10/01 09:43 PM Re: How to set up a static drivemapping ?
clutch Offline
Carpal Tunnel

Registered: 03/29/00
Posts: 3859
I think you can run your mapping batch file at startup via your group policy editor. Open "gpedit.msc", and go here:



and when you double click on "startup", you will get this window here:



I haven't fiddled with it, but I was under the impression that this will behave in the manner you are looking for (runs scripts when system launches, not user). The logon/logoff companion to this is under the User Config half below the Windows settings.

HTH

Top
#87272 - 12/10/01 09:59 PM Re: How to set up a static drivemapping ?
Toby Offline
enthusiast

Registered: 01/17/00
Posts: 313
Loc: Stockholm, Sweden
Thanks for the tip !

I'll try it tomorrow when I get back to work and I'll let you know how it worked out. smile

/Toby

Top
#87273 - 12/10/01 10:00 PM Re: How to set up a static drivemapping ?
clutch Offline
Carpal Tunnel

Registered: 03/29/00
Posts: 3859
Cool. Good luck.

cool

Top
#87308 - 12/11/01 01:40 PM Re: How to set up a static drivemapping ?
Toby Offline
enthusiast

Registered: 01/17/00
Posts: 313
Loc: Stockholm, Sweden
It did work !

The only problem with this method is that there is no way to choose
under what user the script should run. So I ended up with the password i clear text in the batchfile. No big deal, but something to think about when looking trough the ntfs-permissions on the batchfiles.

Thanks smile

/Toby

Top
#87900 - 12/19/01 12:25 AM Re: How to set up a static drivemapping ?
BenZeKat Offline
stranger

Registered: 12/19/01
Posts: 6
Personnaly I'd have made it a service using SrvAny.exe (from the resource kit utilities) & a "Cmd.exe c:\path_to\script.cmd". The service would have been running as a domain user account, with access perms to that share.

Top
#87918 - 12/19/01 01:44 AM Re: How to set up a static drivemapping ?
clutch Offline
Carpal Tunnel

Registered: 03/29/00
Posts: 3859
Have you done this before? It sounds like it would actually be launching the running the script under the system account, rather than a user account. Is that something that you can configure separately using srvany (I haven't fiddled with it, but I have adjusted running permissions in other services in the past)?

Top
#88048 - 12/20/01 01:14 AM Re: How to set up a static drivemapping ?
BenZeKat Offline
stranger

Registered: 12/19/01
Posts: 6
Yup I've done this.
Simply configure the server to start using a domain account (restricted to this machine if needed) so it will use this account credentials instead of LOCALSYSTEM built-in acount (which has obviously no access to domain-shared resources)

Top
#88049 - 12/20/01 01:22 AM Re: How to set up a static drivemapping ?
BenZeKat Offline
stranger

Registered: 12/19/01
Posts: 6
Oh, BTW, use instsrv.exe (from sresource kit, still) to install SrvAny as a service. To configure SrvAny.exe, go into the registry and create a _KEY_ named Parameters under the Service's key and two value :

Application --> REG_SZ (REG_EXPAND_SZ won't work (dumbass))
Value: C:\WINNT\System32\cmd.exe

AppParameters --> REG_SZ
Value: /C C:\Scripts\mapdrives.cmd

The script will probably shutdown the service itself (because of /C).
Keep in mind that the credentials used are those associated to the domain user account, so services like RSH will use that credentials to validate permissions to the network drive, files & directories.

Anyhow, the domain user account may be also required to open a session on the remote computer (depending if it's a domain controller or not) smile

Top
#88050 - 12/20/01 01:31 AM Re: How to set up a static drivemapping ?
clutch Offline
Carpal Tunnel

Registered: 03/29/00
Posts: 3859
Cool, I have seen this request before but I only knew of the more advanced scripting policy controls in Win2K (as NT was quite limited). Thanks for the info.

Top


Forums
Windows Support Forums
Everything New Technology
Legacy OS
Hardware
Software
Games
Networking
Customization & Tweaking
Security

Linux Support Forums
Everything Linux
Linux Hardware
Linux Software
Linux Games
Linux Networking
Linux Customization & Tweaking
Linux Security

Apple Support Forums
Everything Apple
Recent Topics
Full Reviews: All Popular iPod Tools Review and Do
by amanda963
Today at 05:01 AM
x86 OS, RAM, & Virtual Machines
by Myke
Yesterday at 08:16 PM
Ram Question
by JohnnyAshes
12/21/09 09:50 PM
NEWBIE needs help with REALTEK
by SerryJW
12/21/09 06:09 AM
What version of Linux is this?
by DxxLinux
12/15/09 07:59 PM
Who's Online
1 Registered (JohnnyAshes), 142 Guests and 34 Spiders online.
Key: Admin, Global Mod, Mod
Forum Stats
91368 Members
24 Forums
59158 Topics
189677 Posts

Max Online: 1079 @ 03/12/08 01:36 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22