PC Review


Reply
Thread Tools Rate Thread

change log off into restart

 
 
Ahmed
Guest
Posts: n/a
 
      30th Oct 2009
helloo
is there any way that we can change log off behaviour into restart. in other
words if a user press log off the computer will restart.
i tried to put a batch file in the log off policy with the command shutdown
-r but it didnt work coz the user does not have permission for some reason.

 
Reply With Quote
 
 
 
 
SPAMCOP User
Guest
Posts: n/a
 
      30th Oct 2009
From a programming point of view you can do it in 2 ways:

1) Hook the keyboard
2) Disallow the logoff privilege then use token privileges to turn that into
restart using the ExitWindowsEx API

--
SPAMCOP User




"Ahmed" <(E-Mail Removed)> wrote in message
news:0D4B78B0-3646-408E-BD64-(E-Mail Removed)...
> helloo
> is there any way that we can change log off behaviour into restart. in
> other
> words if a user press log off the computer will restart.
> i tried to put a batch file in the log off policy with the command
> shutdown
> -r but it didnt work coz the user does not have permission for some
> reason.
>


 
Reply With Quote
 
Bernd
Guest
Posts: n/a
 
      31st Oct 2009


-------- Original-Nachricht --------

> helloo
> is there any way that we can change log off behaviour into restart. in other
> words if a user press log off the computer will restart.
> i tried to put a batch file in the log off policy with the command shutdown
> -r but it didnt work coz the user does not have permission for some reason.
>


There was a tip from MS for Win2K, don't know if it works for XP:

Setting the Default Logoff Choice

You can configure the default option implemented when the user selects
logoff. The following list shows the option and the value you would use.

0 Logoff

1 Shutdown

2 Shutdown and Restart

3 Shutdown and Power Off*

Root Key: HKEY_CURRENT_USER
Key: SOFTWARE\Microsoft\Windows NT\CurrentVersion\Shutdown
Entry: LogoffSetting
Data Type: REG_DWORD

It's from

http://technet.microsoft.com/en-us/l.../bb742541.aspx

Bernd
Bernd
 
Reply With Quote
 
Ahmed
Guest
Posts: n/a
 
      31st Oct 2009
does not work on XP

"Bernd" wrote:

>
>
> -------- Original-Nachricht --------
>
> > helloo
> > is there any way that we can change log off behaviour into restart. in other
> > words if a user press log off the computer will restart.
> > i tried to put a batch file in the log off policy with the command shutdown
> > -r but it didnt work coz the user does not have permission for some reason.
> >

>
> There was a tip from MS for Win2K, don't know if it works for XP:
>
> Setting the Default Logoff Choice
>
> You can configure the default option implemented when the user selects
> logoff. The following list shows the option and the value you would use.
>
> 0 Logoff
>
> 1 Shutdown
>
> 2 Shutdown and Restart
>
> 3 Shutdown and Power Off*
>
> Root Key: HKEY_CURRENT_USER
> Key: SOFTWARE\Microsoft\Windows NT\CurrentVersion\Shutdown
> Entry: LogoffSetting
> Data Type: REG_DWORD
>
> It's from
>
> http://technet.microsoft.com/en-us/l.../bb742541.aspx
>
> Bernd
> Bernd
> .
>

 
Reply With Quote
 
Ahmed
Guest
Posts: n/a
 
      31st Oct 2009
dont understand what you are talking about actually. if u think it can be
done so please explain it.

"SPAMCOP User" wrote:

> From a programming point of view you can do it in 2 ways:
>
> 1) Hook the keyboard
> 2) Disallow the logoff privilege then use token privileges to turn that into
> restart using the ExitWindowsEx API
>
> --
> SPAMCOP User
>
>
>
>
> "Ahmed" <(E-Mail Removed)> wrote in message
> news:0D4B78B0-3646-408E-BD64-(E-Mail Removed)...
> > helloo
> > is there any way that we can change log off behaviour into restart. in
> > other
> > words if a user press log off the computer will restart.
> > i tried to put a batch file in the log off policy with the command
> > shutdown
> > -r but it didnt work coz the user does not have permission for some
> > reason.
> >

>
> .
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Restart numbering after change in heading LossManiac Microsoft Word Document Management 1 21st Jul 2008 12:31 PM
XP Icons change on restart PKCHRISJ Windows XP Basics 1 17th Oct 2005 08:42 PM
Change of settings on restart =?Utf-8?B?YWJuZXdhbGxv?= Microsoft Outlook 2 13th Mar 2005 04:17 AM
Do I need to restart IIS after change in global.asax? =?Utf-8?B?S2VubmV0aCBQ?= Microsoft ASP .NET 4 20th Jan 2005 06:21 PM
web config change and IIS restart Microsoft ASP .NET 1 6th May 2004 05:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:29 AM.