Limitations when running shutdown script

  • Thread starter Thread starter Lars Olsson
  • Start date Start date
L

Lars Olsson

What limitations apply when one is running a shutdown script?
We can't get get a (home brewn) application to access a share on another
machine if we're running the application as a shutdown script.
The network is up though.
 
Lars Olsson said:
What limitations apply when one is running a shutdown script?
We can't get get a (home brewn) application to access a share on another
machine if we're running the application as a shutdown script.
The network is up though.


I don't know if this is fully documented but one must recognize
that the computer is shuting down even while the script runs so
that network services (like file shares in use) may disappear and
there is a limited time period in which to complete your program.

I would consider about 30 seconds the max but my experience
says even that may not be available.

Perhaps there is some sort of registry settings that cover the
behavior and another poster will give us more info.
[/QUOTE]
 
Herb Martin said:
I don't know if this is fully documented but one must recognize
that the computer is shuting down even while the script runs so
that network services (like file shares in use) may disappear and
there is a limited time period in which to complete your program.

I would consider about 30 seconds the max but my experience
says even that may not be available.

Perhaps there is some sort of registry settings that cover the
behavior and another poster will give us more info.

Shutdown scripts also run in the Local System context, and have no rights to
network shares or any other resource that requires domain credentials.
 
Are you sure? I thought that it uses the computer account for remote
authentication? So by default, you'd have access to auth users, everyone,
etc. and it would just be a matter of using a group of computer accounts for
more specific rights...

--

Paul Williams

http://www.msresource.net
http://forums.msresource.net


Herb Martin said:
I don't know if this is fully documented but one must recognize
that the computer is shuting down even while the script runs so
that network services (like file shares in use) may disappear and
there is a limited time period in which to complete your program.

I would consider about 30 seconds the max but my experience
says even that may not be available.

Perhaps there is some sort of registry settings that cover the
behavior and another poster will give us more info.

Shutdown scripts also run in the Local System context, and have no rights to
network shares or any other resource that requires domain credentials.
 
ptwilliams said:
Are you sure? I thought that it uses the computer account for remote
authentication? So by default, you'd have access to auth users,
everyone, etc. and it would just be a matter of using a group of
computer accounts for more specific rights...

Sorry. That's correct. It uses the machine account, so you would need to give
the machine account access to whatever resources you want the shutdown script
to access.
 
Back
Top