Forum Search:
Forum.Brain-Cluster.com: Brain Cluster Technical Forum
Ultimate forum for Technical Discussions

Home » Microsoft » Windows Server » Active Directory » How does Local System Account maintain persistent connections?
How does Local System Account maintain persistent connections? [message #161492] Tue, 29 September 2009 07:24 Go to next message
MC Murphy  is currently offline MC Murphy
Messages: 9
Registered: September 2009
Junior Member
I've taken on an application that runs as a service, with Local System
Account credentials, on an XP client in a Windows Server 2003 domain. I'm
trying to undertand and modify some behavior. This service has one
persistent connection to a folder on a Domain Member Server. The connection
shows up in its profile, in the Registry key
HKEY_USERS\.DEFAULT\Network\'drive-letter'. This key has a string-value
property, "UserName", which is 'domain'\'computer'$. I think this is where
the Local System Account gets it file rights to the folder. The application
can run a Net Use command or DIR command in a command file and get good
results.
I want to make a couple more such persistent connections, but can't find how
to create them. The application claims to run a startup batch file with net
use commands, but they never take effect. I've tried creating another key
for another drive in the Registry, but though it looks good, when I run the
Net Use or DIR command files I get empty results, like the Registry entry has
not really created the connection. I assume I could Delete the key and get
rid of the one connection, but I haven't tried, I don't want to get rid of
it. So I'm trying to learn how to create and delete these Persistent
Connections for the Local System Account running this application as a
service. Anyone with advice, KB articles to point to, eetc? Thanks.
Re: How does Local System Account maintain persistent connections? [message #161525 is a reply to message #161492] Tue, 29 September 2009 18:33 Go to previous messageGo to next message
Marcin  is currently offline Marcin  United States
Messages: 273
Registered: July 2009
Senior Member
You can launch a command prompt in the security context of the Local System
account by scheduling it via at command with /interactive switch.
Once this is running, try creating persistent drive mappings with net use...

hth
Marcin

"MC Murphy" <MCMurphy@discussions.microsoft.com> wrote in message
news:334EEC8D-C32F-4242-A23C-CDB1AA66D908@microsoft.com...
> I've taken on an application that runs as a service, with Local System
> Account credentials, on an XP client in a Windows Server 2003 domain. I'm
> trying to undertand and modify some behavior. This service has one
> persistent connection to a folder on a Domain Member Server. The
> connection
> shows up in its profile, in the Registry key
> HKEY_USERS\.DEFAULT\Network\'drive-letter'. This key has a string-value
> property, "UserName", which is 'domain'\'computer'$. I think this is
> where
> the Local System Account gets it file rights to the folder. The
> application
> can run a Net Use command or DIR command in a command file and get good
> results.
> I want to make a couple more such persistent connections, but can't find
> how
> to create them. The application claims to run a startup batch file with
> net
> use commands, but they never take effect. I've tried creating another key
> for another drive in the Registry, but though it looks good, when I run
> the
> Net Use or DIR command files I get empty results, like the Registry entry
> has
> not really created the connection. I assume I could Delete the key and
> get
> rid of the one connection, but I haven't tried, I don't want to get rid
> of
> it. So I'm trying to learn how to create and delete these Persistent
> Connections for the Local System Account running this application as a
> service. Anyone with advice, KB articles to point to, eetc? Thanks.
Re: How does Local System Account maintain persistent connections? [message #161556 is a reply to message #161525] Wed, 30 September 2009 14:36 Go to previous message
MC Murphy  is currently offline MC Murphy
Messages: 9
Registered: September 2009
Junior Member
Key insight was using the AT command to run the Net Use commands. I haven't
found yet how to use the /interactive, but I run a net use command in a batch
file with output to a log file, and found how to get control of the
connections.

"Marcin" wrote:

> You can launch a command prompt in the security context of the Local System
> account by scheduling it via at command with /interactive switch.
> Once this is running, try creating persistent drive mappings with net use...
>
> hth
> Marcin
>
> "MC Murphy" <MCMurphy@discussions.microsoft.com> wrote in message
> news:334EEC8D-C32F-4242-A23C-CDB1AA66D908@microsoft.com...
> > I've taken on an application that runs as a service, with Local System
> > Account credentials, on an XP client in a Windows Server 2003 domain. I'm
> > trying to undertand and modify some behavior. This service has one
> > persistent connection to a folder on a Domain Member Server. The
> > connection
> > shows up in its profile, in the Registry key
> > HKEY_USERS\.DEFAULT\Network\'drive-letter'. This key has a string-value
> > property, "UserName", which is 'domain'\'computer'$. I think this is
> > where
> > the Local System Account gets it file rights to the folder. The
> > application
> > can run a Net Use command or DIR command in a command file and get good
> > results.
> > I want to make a couple more such persistent connections, but can't find
> > how
> > to create them. The application claims to run a startup batch file with
> > net
> > use commands, but they never take effect. I've tried creating another key
> > for another drive in the Registry, but though it looks good, when I run
> > the
> > Net Use or DIR command files I get empty results, like the Registry entry
> > has
> > not really created the connection. I assume I could Delete the key and
> > get
> > rid of the one connection, but I haven't tried, I don't want to get rid
> > of
> > it. So I'm trying to learn how to create and delete these Persistent
> > Connections for the Local System Account running this application as a
> > service. Anyone with advice, KB articles to point to, eetc? Thanks.
>
>
>
Previous Topic:Creating a trust between 2 AD domains
Next Topic:Control "push mail" by GPO
Goto Forum:
  


Current Time: Fri Jan 19 00:39:06 MST 2018

Total time taken to generate the page: 0.07550 seconds
.:: Contact :: Home ::Sitemap::.

Powered by: FUDforum 3.0.0RC2.
Copyright ©2001-2009 FUDforum Bulletin Board Software