Topic Options
#1 - 12/21/00 10:40 AM How to use a mounted drive when wincron is loaded as service
jbarger Offline
Junior Member

Registered: 12/21/00
Posts: 1
We are using WinCron as a Service.

one of our executables that run win wincron requires a mapped drive which seems to be unavailable from wincron when run as a service.

How can we get the WinCron Environment to See a Mapped Drive on another computer?

Joe Barger US Census Bureau

Top
#2 - 12/21/00 10:41 AM Re: How to use a mounted drive when wincron is loaded as service
Luke Tomasello Administrator Offline
Member

Registered: 09/17/00
Posts: 740
Loc: San Jose, CA., USA
You will need to map drives for use by the "LocalSystem" account (where WinCron runs.) The built-in "LocalSystem" account doesn't see the drives you have mapped in your USER account.

# run once script to map drives into the "LocalSystem" account # Other WinCron scripts will then be able to access these drives

{
-start
-stop
-action -print ** Map some drives into the "LocalSystem" account
-command -detach net use P: \\BUGS\p MyPassword /USER:MyDomain\MyUserid /PERSISTENT:YES
-command -detach net use W: \\Fox1\Data MyPassword /USER:MyDomain\MyUserid /PERSISTENT:YES
-command -detach net use Q: \\Fox1\Data2 MyPassword /USER:MyDomain\MyUserid /PERSISTENT:YES
-command -detach net use R: \\Fox2\Data2 MyPassword /USER:MyDomain\MyUserid /PERSISTENT:YES
-command -detach net use S: \\Fox3\Data3 MyPassword /USER:MyDomain\MyUserid /PERSISTENT:YES
-command -detach net use T: \\Fox4\Data4 MyPassword /USER:MyDomain\MyUserid /PERSISTENT:YES
-command -detach net use U: \\Fox5\Data5 MyPassword /USER:MyDomain\MyUserid /PERSISTENT:YES
-command -detach net use Y: \\Fox6\Data6 MyPassword /USER:MyDomain\MyUserid /PERSISTENT:YES
-command -detach net use O: \\Fox7\Data7 MyPassword /USER:MyDomain\MyUserid /PERSISTENT:YES
-action -print ** Okay, drives are now available!
}

Luke Tomasello
_________________________
Regards,
Luke Tomasello

Top


Moderator:  Luke Tomasello