Highlighted
Absent Member.
Absent Member.
838 views

User logged in Bundle - no user session available

I'm trying to create a Bundle that will run shutdown.exe on a nightly schedule to power off idle machines. The process behind this should be simple:

- if user is logged in display a message advising user to save their work
- if user is not logged in (i.e. machine stuck on logon screen) execute the command with no message
- wait 10 minutes
- shut down

However this seems to be much more difficult than it needs to be as ZCM seems to offer no way to tell if a user is logged in (not a Primary User as our classroom machines get used by *lots* of different people!) As a result any attempt to use the message portion either as part of shutdown.exe or in a Bundle leads to failures in the log as there's no user session to display the message in!

Any suggestions? Have already raised a feature request but that won't happen in the very near future so is there a workaround I could use in the meantime :confused:
Labels (2)
0 Likes
2 Replies
Highlighted
Absent Member.
Absent Member.

Re: User logged in Bundle - no user session available

havering,

It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.

Has your problem been resolved? If not, you might try one of the following options:

- Visit http://support.novell.com and search the knowledgebase and/or check all
the other self support options and support programs available.
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://forums.novell.com)

Be sure to read the forum FAQ about what to expect in the way of responses:
http://forums.novell.com/faq.php

If this is a reply to a duplicate posting, please ignore and accept our apologies
and rest assured we will issue a stern reprimand to our posting bot.

Good luck!

Your Novell Product Support Forums Team
http://forums.novell.com/

0 Likes
Highlighted
Knowledge Partner
Knowledge Partner

Re: User logged in Bundle - no user session available

havering;2272300 wrote:
I'm trying to create a Bundle that will run shutdown.exe on a nightly schedule to power off idle machines. The process behind this should be simple:

- if user is logged in display a message advising user to save their work
- if user is not logged in (i.e. machine stuck on logon screen) execute the command with no message
- wait 10 minutes
- shut down

However this seems to be much more difficult than it needs to be as ZCM seems to offer no way to tell if a user is logged in (not a Primary User as our classroom machines get used by *lots* of different people!) As a result any attempt to use the message portion either as part of shutdown.exe or in a Bundle leads to failures in the log as there's no user session to display the message in!

Any suggestions? Have already raised a feature request but that won't happen in the very near future so is there a workaround I could use in the meantime :confused:


Haven't tried this, but as a suggestion: How about simply running the shutdown command 'shutdown -s -t 600 -f -c "Please save your work, the system is set to shutdown in a couple of minutes"' (should run whether someone is logged in or not), and maybe also offer a bundle that can be run to abort the shutdown procedure -if needed which just calls "shutdown -a"?

-Willem
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.