beol Posted October 14, 2005 Share Posted October 14, 2005 Like the Topic..Is its possible to run a script when the user makes a shutdown ?(Start -> shutdown)I know i can make a script that shutdown the pc when its done but can it run automatically ?Best regardBenjamin Link to comment Share on other sites More sharing options...
Gouki Posted October 14, 2005 Share Posted October 14, 2005 As you can see, English is not my native language, therefor I didnt understand exactly what you wanted.However, if you want to make a script to shutdown a computador, all you have to do is something like this:shutdown -pAnd save the .txt file as .CMDHope this helps. Link to comment Share on other sites More sharing options...
net_user Posted October 14, 2005 Share Posted October 14, 2005 beolwhat is it your trying to acheive? delete some settings, some temp files then shutdown?Gouki the -p option is not available in the shutdown command. Link to comment Share on other sites More sharing options...
beol Posted October 14, 2005 Author Share Posted October 14, 2005 beolwhat is it your trying to acheive? delete some settings, some temp files then shutdown?i wanna copy a file from the client computer to a netdriveI know in Microsoft AD there is a policie thats enable "logoff" scriptsBut i don't run AD i run Novell Link to comment Share on other sites More sharing options...
net_user Posted October 14, 2005 Share Posted October 14, 2005 actually..i think you can run a shutdown script.run gpedit.msccomputer configuration\windows settings\scripts Link to comment Share on other sites More sharing options...
Nex6 Posted October 14, 2005 Share Posted October 14, 2005 gpedit.msccreate a local policy, and modify it there.-Nex6 Link to comment Share on other sites More sharing options...
perinouk Posted March 9, 2008 Share Posted March 9, 2008 Hey,My corporate computer got a logoff script. This is not a problem when I'm on the network or offline without having wifi access. However, when I have VPN connected with wifi access and then logoff, then it takes 10+ minutes to logoff... what can I do to rectify this problem?Thanks for all your help! Link to comment Share on other sites More sharing options...
IcemanND Posted March 9, 2008 Share Posted March 9, 2008 instead of waking a 3 year old thread it would be better to have started a new thread.But since it has been done, if you have control of the logoff script add code to check what network you system sees and don't run if the vpn is active. By the sound of it it is timing out while trying to contact your domain controller or a filer which is not properly contactable when on the VPN Ten minutes is the default timeout for startup.login.logoff scripts on a domain. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now