Re: Map network drive using SYSTEM account?

From: rgp (rgp_at_discussions.microsoft.com)
Date: 10/20/04


Date: Wed, 20 Oct 2004 10:31:03 -0700

I map to a specific account with user name and password using the IP address
of the target. This works fine when the owner of the job is an
administrator. The servers the batch job will be running on are all
stand-alone workgroup servers, remotely administered thru MS Transaction
Server.

"Torgeir Bakken (MVP)" wrote:

> rgp wrote:
>
> > Whenever my batch files run as a scheduled task on W2K Server using the
> > 'system' account I get the error; "System error 1312 has occurred. A
> > specified logon session does not exist. It may already have been terminated."
> > when attempting to map (net use) a drive to a remote machine. It also
> > generates an Event ID: 3034 in the event log.
> >
> > I've found alot of 'almost' answers but not THE answer to the question:
> > Is it possible to map a network drive (net use) while running a batch file
> > in the system security context and if so, how?
> >
> > Any help would be appreciated.
> Hi
>
> Do you map with explicit user account and password like this:
>
> If the computers are members of the same domain:
>
> net use y: \\<server>\<share> <password> /user:<domain\user>
>
>
> if not:
> net use y: \\<server>\<share> <password> /user:<remote computer\user>
>
>
> --
> torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
> Administration scripting examples and an ONLINE version of
> the 1328 page Scripting Guide:
> http://www.microsoft.com/technet/scriptcenter/default.mspx
>



Relevant Pages

  • Re: SP failing with access denied error message
    ... created another account on this PC, with administrator ... The app event viewer has: ... >torgeir, Microsoft MVP Scripting and WMI, Porsgrunn ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: Disabled regedit
    ... > administrator. ... I am in an admin account and also if I go to onother user ... The Parasite Fight Quick Fix Protocol ... -- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
    (microsoft.public.windowsxp.general)
  • Re: Renaming the local Administrator account on Windows XP Pro
    ... > the local Administrator account with a randomly generated name. ... The script below will generate a 15 characters long random user name ... torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway ...
    (microsoft.public.windowsxp.security_admin)
  • Re: disabled admin account
    ... >>disabled the Administrator account. ... >>user account from Administrator rights to a limited ... -- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Event 1202 Warnings after Renaming Administrator Acct on SBS2003
    ... policy to rename the account although it is not really necessary or useful. ... Did I check Group Policies for references to the Administrator ... Failed to perform redirection of folder Desktop. ...
    (microsoft.public.windows.server.general)

Quantcast