|
#1
|
|||
|
|||
|
I am trying to make a screensaver shutdown the computers in our domain.
I have found several screensavers on the Internet, and they all claim to make use of Force Shutdown. When a user is logged on, it works all right, even when the user has open apps and/or files. BUT: When no user is logged on at all, nothing hapens. The screensaver starts all right, makes it's specific kind of countdown, and then, for some reason, it can not shutdown the computer. By guess is that it has to do with the setting of some kind of local user rights. Anyone - any ideas ? Regards, Bjørn, Denmark |
|
#2
|
|||
|
|||
|
When no user is logged on to the system, there are no credentials in use to validate whether the system is allowed to be shut down, or not. This can be controlled through Group Policies. Computer Configuration, Windows Settings, Security Settings, Local Policies, User Rights Assignment. Look in the right pane for Shut down the system. Add System to the list of users/groups that are allowed to shutdown the computer and see if that resolves your problem.
-- Doug Knox, MS-MVP Windows Media Center\Windows Powered Smart Display\Security Win 95/98/Me/XP Tweaks and Fixes http://www.dougknox.com -------------------------------- Per user Group Policy Restrictions for XP Home and XP Pro http://www.dougknox.com/xp/utils/xp_securityconsole.htm -------------------------------- Please reply only to the newsgroup so all may benefit. Unsolicited e-mail is not answered. "BUR" <bur@jellingnet.dk> wrote in message news:dj5iol$t9i$1@news.net.uni-c.dk... >I am trying to make a screensaver shutdown the computers in our domain. > I have found several screensavers on the Internet, and they all claim to > make use of Force Shutdown. > When a user is logged on, it works all right, even when the user has open > apps and/or files. > BUT: When no user is logged on at all, nothing hapens. The screensaver > starts all right, makes it's specific kind of countdown, and then, for some > reason, it can not shutdown the computer. > By guess is that it has to do with the setting of some kind of local user > rights. > > Anyone - any ideas ? > > Regards, Bjørn, Denmark > > |
|
#3
|
|||
|
|||
|
Why don’t you write a "screen saver" your self?
I will even give you the code I would use (asuming your writing it in C++ and then Visual C++ 6). >#include <iostream> >using namespace std; > >int main() >{ >system("shutdown -s -f"); >return 0; >} > Once compiled to exe, rename the exe file to scr (scrs are exes), put it in the system32 directory, specifie the screen saver. Hay presto! when ever the screen saver activiats, the computer shuts down! You will also have to specifie this as the default screen saver for when no one is logged in, this can be changed in registray key HKEY_USERS.DEFAULTControl PanelDesktop. -- Posted using the http://www.windowsforumz.com interface, at author's request Articles individually checked for conformance to usenet standards Topic URL: http://www.windowsforumz.com/Shutdow...ict434469.html Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.windowsforumz.com/eform.php?p=1461057 |
|
#4
|
|||
|
|||
|
Tanks, that was also my guess.
But it does not work. I have given SYSTEM the right to Shut down the system, it didn't work, then I also gave Everyone the permission. Still it does not work. Any other ideas ? Regards Bjørn, Denamrk "Doug Knox MS-MVP" <dknox@mvps.org> skrev i en meddelelse news:etrrgBN1FHA.3376@TK2MSFTNGP14.phx.gbl... When no user is logged on to the system, there are no credentials in use to validate whether the system is allowed to be shut down, or not. This can be controlled through Group Policies. Computer Configuration, Windows Settings, Security Settings, Local Policies, User Rights Assignment. Look in the right pane for Shut down the system. Add System to the list of users/groups that are allowed to shutdown the computer and see if that resolves your problem. -- Doug Knox, MS-MVP Windows Media Center\Windows Powered Smart Display\Security Win 95/98/Me/XP Tweaks and Fixes http://www.dougknox.com -------------------------------- Per user Group Policy Restrictions for XP Home and XP Pro http://www.dougknox.com/xp/utils/xp_securityconsole.htm -------------------------------- Please reply only to the newsgroup so all may benefit. Unsolicited e-mail is not answered. "BUR" <bur@jellingnet.dk> wrote in message news:dj5iol$t9i$1@news.net.uni-c.dk... >I am trying to make a screensaver shutdown the computers in our domain. > I have found several screensavers on the Internet, and they all claim to > make use of Force Shutdown. > When a user is logged on, it works all right, even when the user has open > apps and/or files. > BUT: When no user is logged on at all, nothing hapens. The screensaver > starts all right, makes it's specific kind of countdown, and then, for > some > reason, it can not shutdown the computer. > By guess is that it has to do with the setting of some kind of local user > rights. > > Anyone - any ideas ? > > Regards, Bjørn, Denmark > > |
|
#5
|
|||
|
|||
|
Thanks, but the idea is not user-friendly enough.
I think that if a user is actually logged in, he/she should have some kind of warning (1 to 2 minutes), before shutdown. Regards, Bjørn "Sparda" <UseLinkToEmail@www.windowsforumz.com> skrev i en meddelelse news:1461057_190456d0e04f437ff8bb4ba3e663b19a@wind owsforumz.com... > Why donâ?Tt you write a "screen saver" your self? > I will even give you the code I would use (asuming your writing it in > C++ and then Visual C++ 6). > >>#include <iostream> >>using namespace std; >> >>int main() >>{ >>system("shutdown -s -f"); >>return 0; >>} >> > Once compiled to exe, rename the exe file to scr (scrs are exes), put > it in the system32 directory, specifie the screen saver. Hay presto! > when ever the screen saver activiats, the computer shuts down! You > will also have to specifie this as the default screen saver for when > no one is logged in, this can be changed in registray key > HKEY_USERS.DEFAULTControl PanelDesktop. > > -- > Posted using the http://www.windowsforumz.com interface, at author's > request > Articles individually checked for conformance to usenet standards > Topic URL: > http://www.windowsforumz.com/Shutdow...ict434469.html > Visit Topic URL to contact author (reg. req'd). Report abuse: > http://www.windowsforumz.com/eform.php?p=1461057 |
|
#6
|
|||
|
|||
|
Nothing comes to mind, right now.
-- Doug Knox, MS-MVP Windows Media Center\Windows Powered Smart Display\Security Win 95/98/Me/XP Tweaks and Fixes http://www.dougknox.com -------------------------------- Per user Group Policy Restrictions for XP Home and XP Pro http://www.dougknox.com/xp/utils/xp_securityconsole.htm -------------------------------- Please reply only to the newsgroup so all may benefit. Unsolicited e-mail is not answered. "BUR" <bur@jellingnet.dk> wrote in message news:dj7ddr$q2i$1@news.net.uni-c.dk... > Tanks, that was also my guess. > But it does not work. I have given SYSTEM the right to Shut down the system, > it didn't work, then I also gave Everyone the permission. Still it does not > work. > > Any other ideas ? > > Regards Bjørn, Denamrk > > > "Doug Knox MS-MVP" <dknox@mvps.org> skrev i en meddelelse > news:etrrgBN1FHA.3376@TK2MSFTNGP14.phx.gbl... > When no user is logged on to the system, there are no credentials in use to > validate whether the system is allowed to be shut down, or not. This can be > controlled through Group Policies. Computer Configuration, Windows > Settings, Security Settings, Local Policies, User Rights Assignment. Look > in the right pane for Shut down the system. Add System to the list of > users/groups that are allowed to shutdown the computer and see if that > resolves your problem. > > -- > Doug Knox, MS-MVP Windows Media Center\Windows Powered Smart > Display\Security > Win 95/98/Me/XP Tweaks and Fixes > http://www.dougknox.com > -------------------------------- > Per user Group Policy Restrictions for XP Home and XP Pro > http://www.dougknox.com/xp/utils/xp_securityconsole.htm > -------------------------------- > Please reply only to the newsgroup so all may benefit. > Unsolicited e-mail is not answered. > > "BUR" <bur@jellingnet.dk> wrote in message > news:dj5iol$t9i$1@news.net.uni-c.dk... >>I am trying to make a screensaver shutdown the computers in our domain. >> I have found several screensavers on the Internet, and they all claim to >> make use of Force Shutdown. >> When a user is logged on, it works all right, even when the user has open >> apps and/or files. >> BUT: When no user is logged on at all, nothing hapens. The screensaver >> starts all right, makes it's specific kind of countdown, and then, for >> some >> reason, it can not shutdown the computer. >> By guess is that it has to do with the setting of some kind of local user >> rights. >> >> Anyone - any ideas ? >> >> Regards, Bjørn, Denmark >> >> > > |
|
#7
|
|||
|
|||
|
"" wrote:
> Thanks, but the idea is not user-friendly enough. > I think that if a user is actually logged in, he/she should > have some kind > of warning (1 to 2 minutes), before shutdown. > > Regards, Bjørn > > > > "Sparda" <UseLinkToEmail@www.windowsforumz.com> skrev i en > meddelelse > news:1461057_190456d0e04f437ff8bb4ba3e663b19a@wind owsforumz.com... > > Why donâ?Tt you write a "screen saver" your self? > > I will even give you the code I would use (asuming your > writing it in > > C++ and then Visual C++ 6). > > > >>#include <iostream> > >>using namespace std; > >> > >>int main() > >>{ > >>system("shutdown -s -f"); > >>return 0; > >>} > >> > > Once compiled to exe, rename the exe file to scr (scrs are > exes), put > > it in the system32 directory, specifie the screen saver. > Hay presto! > > when ever the screen saver activiats, the computer shuts > down! You > > will also have to specifie this as the default screen saver > for when > > no one is logged in, this can be changed in registray key > > HKEY_USERS.DEFAULTControl PanelDesktop. > > > > -- > > Posted using the http://www.windowsforumz.com interface, at author's > > request > > Articles individually checked for conformance to usenet > standards > > Topic URL: > > http://www.windowsforumz.com/Shutdow...ict434469.html > > Visit Topic URL to contact author (reg. req'd). Report > abuse: > > http://www.windowsforumz.com/eform.php?p=1461057 You could write one in Visual basic then, using the same method, except, you have a single form, that has one button on it (the cancle button) then a timer on that form that counts down from 2 moniets to zero seconds, and once it’s got to zero seconds, it executes the shell command to forcivly shut down (shutdown -s -f). The problem using this is that it will forcivly close programs, so if it shutsdown the computer and a user dosnt notice, then it will lose any work they havent saved. |
|
#8
|
|||
|
|||
|
Thanks a lot!.
My colleague returns from holiday on monday. I will ask him to program it. He programs both .NET and VB6. The interesting thing is: Will it work? What i mean: All the other screensaver worked fine with someone logged in. But not at the login screen. For some reason the screensaver is not allowed to shutdown the computer. I have tried to use shutdown from my one client to remotely shutdown another client, it works fine. So my guess still is that is has to do with some kind of user rights. Regard, Bjørn, Denmark "Sparda" <DoNotEmail@www.windowsforumz.com> skrev i en meddelelse news:1462610_1415929c75898c3133c90a019cfc0b76@wind owsforumz.com... > "Sparda" wrote: > > You could write one in Visual basic then, using the same > > method, except, you have a single form, that has one button on > > it (the cancle button) then a timer on that form that counts > > down from 2 moniets to zero seconds, and once it's got to zero > > seconds, it executes the shell command to forcivly shut down > > (shutdown -s -f). The problem using this is that it will > > forcivly close programs, so if it shutsdown the computer and a > > user dosnt notice, then it will lose any work they havent > > saved. > > Infact, just to see how easy it is, I just wrote it now, itâ?Ts faily > simple, and looks like this: > Version 0.5 (origional desighn): > http://sparda.hopto.org/shutdown.png > > Version 1.0 (better desighn): > http://sparda.hopto.org/shutdown1.png > > I wrote it in VB .NET, if you donâ?Tt have VB .net, I can rewrite it > for VB 6, if you donâ?Tt have either, then I can give you the compiled > exe (along with the source), but one, (at least from your point of > view) it should be classed as untrust worthy (since Iâ?Tm not an > expert programmer, nor am I a company that publishes programs), and > two if you need to edit the shutdown timer, you would have to ask some > one with VB 6 or .NET to change it in the source. |
|
#9
|
|||
|
|||
|
You could also try a Scheduled Task which can be done from the command line
[see link below] for XP Pro computers and distributed via Group Policy "startup" script. For instance try schtasks /create /tn autoshutdown /tr "shutdown -s" /sc onidle /i 60 /ru "system" which would shutdown a computer that has been idle for 60 minutes . --- Steve http://support.microsoft.com/default...b;en-us;814596 "BUR" <bur@jellingnet.dk> wrote in message news:dj5iol$t9i$1@news.net.uni-c.dk... >I am trying to make a screensaver shutdown the computers in our domain. > I have found several screensavers on the Internet, and they all claim to > make use of Force Shutdown. > When a user is logged on, it works all right, even when the user has open > apps and/or files. > BUT: When no user is logged on at all, nothing hapens. The screensaver > starts all right, makes it's specific kind of countdown, and then, for > some reason, it can not shutdown the computer. > By guess is that it has to do with the setting of some kind of local user > rights. > > Anyone - any ideas ? > > Regards, Bjørn, Denmark > > |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ScreenSaver Policies | Peter Smick | Windows XP Security Admin | 1 | 01-05-2006 05:05 AM |
| Re: Re: Shutdown via Screensaver | Sparda | Windows XP Security Admin | 0 | 01-05-2006 04:16 AM |
| Problem During Shutdown | Narayan_Bhat | Windows XP Help and Support | 18 | 01-05-2006 02:48 AM |
| RE: XP pro will not complete shutdown procedure | ceedee | Windows XP Help and Support | 0 | 01-05-2006 02:47 AM |
| RE: DWWIN.EXE During Shutdown | 1ajb | Windows XP General | 6 | 01-05-2006 02:30 AM |