Client Management Suite

 View Only
  • 1.  Desktop/Laptop shutdown policy

    Posted Apr 04, 2012 03:09 AM

    Hi

    We want to deploy desktop or laptop shutdown policy, but before shutdown the computer user get promt of yes or No

    So that user decide whether he wants to shutdown or not

    Can we do this in Altiris CMS 7.1



  • 2.  RE: Desktop/Laptop shutdown policy

    Posted Apr 04, 2012 09:56 AM

    Yes, you can do it.

    But you will need to create a custom shutdown task using VBS script.


    There is an example:

    Option Explicit
    Dim objShell, intShutdown
    Dim strShutdown, strAbort

    ' -s = shutdown, -t 120 = 2 minutes, -f = force programs to close
    strShutdown = "shutdown.exe -s -t 120 -f"
    set objShell = CreateObject("WScript.Shell")
    objShell.Run strShutdown, 0, false

    'go to sleep so message box appears on top
    WScript.Sleep 100

    ' Input Box to abort shutdown
    intShutdown = (MsgBox("Computer will shutdown in 2 minutes. Do you want to cancel computer shutdown?",vbYesNo+vbExclamation+vbApplicationModal,"Cancel Shutdown"))
    If intShutdown = vbYes Then
    ' Abort Shutdown
    strAbort = "shutdown.exe -a"
    set objShell = CreateObject("WScript.Shell")
    objShell.Run strAbort, 0, false
    End if

    Wscript.Quit



  • 3.  RE: Desktop/Laptop shutdown policy

    Posted Apr 04, 2012 10:05 AM

    Here is another option for you as well... It's actually an article here on Connect:

     

    https://www-secure.symantec.com/connect/articles/shutdown-windows-7-message-and-cancel-option-logged-user

     

     



  • 4.  RE: Desktop/Laptop shutdown policy

    Posted Apr 04, 2012 10:56 AM

    Hi 

    Thanks for the reply

    but where we get shutdown.exe



  • 5.  RE: Desktop/Laptop shutdown policy

    Posted Apr 04, 2012 11:15 AM

    shutdown.exe is a component of windows.



  • 6.  RE: Desktop/Laptop shutdown policy

    Posted Aug 02, 2012 06:11 AM

    I have a problem that once it has ran once the policy goes compliant and even though it should check for compliancy the next day / hour etc it doesnt retry if it was previously successful.

    has anyone else had this issue?



  • 7.  RE: Desktop/Laptop shutdown policy

    Posted Aug 03, 2012 05:12 AM

    Hi

    The runs successfully as i am expected. but the problem is when we going to check report Reports --- All reports --- Task Status --- status summary by jobs/task here i am getting successfull and failed count but if i drill down this report in computer name it showing NS Server name instead of Client system name.