IT Management Suite

 View Only
  • 1.  User notifications

    Posted Dec 06, 2022 08:24 AM
    Hi everyone.

    Due to a recent exploited vulnerability in Chrome we are deploying an update that will restart the browser.  So I woud like to display a notification to users to warn them.  I have been able to display a message by selecting the "prompt user before running" option within the advanced options in the policy.  However the message only shows like the below example.  Is there any way to customise the message and also remove the "Don't run" button?


  • 2.  RE: User notifications

    Broadcom Employee
    Posted Dec 07, 2022 09:59 AM
    Hello Ian!
    The "Don't run"  button should only appear if  User triggers the policy for run before the schedule from the agent UI. This is not a typical use-case.
    In this case "Don't Run" button is just another way to close the notification dialog,  it will not  popup back  automatically to suggest a deferral until the next schedule is due.

    The policy WILL be kicked off on its planned schedule.
    To avoid appearance of 'Dont Run' button don't run the policy manually from the agent UI.
    To disallow running the policy from the agent UI - uncheck the "Allow user to interact" option on the policy - see below.
    Hope this helps,
    Artur




    ------------------------------
    Software Engineer 5
    Broadcom Inc.
    ------------------------------



  • 3.  RE: User notifications

    Broadcom Employee
    Posted Dec 07, 2022 10:42 AM
    Hello Ian,

    There is not a way to customize the Delay window, and so naming the Package / Policy as you've done, is the best way to 'customize' the text.

    The Don't Run button only is visible when you start the SWD job from the Agent UI.  If you let the normal schedule fire the button is not shown.  The button is great for testing delays but a normal user won't see that unless they start the job the same way.

    Roy


  • 4.  RE: User notifications

    Broadcom Employee
    Posted Dec 08, 2022 01:18 PM
    Have you considered adding an End User Notification task to a Managed Software Delivery policy?  You can customize the text of such notifications.


  • 5.  RE: User notifications

    Posted Dec 09, 2022 04:29 AM
    Edited by Ian Wilcox Dec 09, 2022 04:42 AM
    Hello all

    Thank you very much for the information.  It is greatly appreaciated!

    I was indeed running the policy from the agent UI as I was testing it. 

    As it is not currently possible to customise the text in the notification, I have added a task to my policy to run the attached script.  However it would be good to have the ability to customise the message on a per policy basis as this will apepar on the users screen first so it needs to be clear to the user what is happening because if it is not clear they may not know it is safe.


  • 6.  RE: User notifications

    Posted Sep 29, 2023 02:01 AM
    Edited by Damjan Breg Sep 29, 2023 02:02 AM

    I am using End User Notification task but it do not know, how to setup it in Managed Software Delivery. I have two actions (ACCEPT and REJECT) in List of actions. Before some software update we always warn user about update and user has option to Accept installation or Postpone. If we use End User Notification task, both actions are treated as successful, so next task will start even user click on REJECT and exit code is 1. There is not possible to config as in other tasks: The task is succeeded if its return code is: 0




  • 7.  RE: User notifications

    Broadcom Employee
    Posted Sep 29, 2023 03:11 AM

    Hello Damjan!

    It turns out that currently there is no way to force "End user Notification" task to fail in case the notification itself is properly shown.

    I would suggest 2 workarounds:

    1) Implement end user notification via script task (with UI ) where you may define success/failure codes. Managed delivery will fail on task failure and stop execution.

    2) If the purpose on the agent side is "not to disturb for a while ", you may setup managed delivery policy to show a notification message with an option to defer for a predefined period of time. Before software is installed the popup will appear that will allow user to defer the installation.

    This is the UI that will appear on the agent side

    Hope this helps.

    Artur



    ------------------------------
    Software Engineer 5
    Broadcom Inc.
    ------------------------------



  • 8.  RE: User notifications

    Posted Sep 29, 2023 03:23 AM

    Thank you Arthur for a fast response. I am using first suggestion because I like to edit notification on my own with my text, company logo, ... etc.




  • 9.  RE: User notifications

    Posted Sep 29, 2023 03:31 AM
    Hello Damjan,

    The fact of customizing the notification with logo, etc is interesting for
    me, COuld you please share the script you are using? It would be much
    appreciated..
    Thanks!

    Best Regards / Saludos
    ___________________________

    PABLO LLORENTE ABAD
    EMEA Workplace Services , Workplace Specialist

    Calle Albasanz 14, 4th floor
    Madrid , Spain
    Mobile +34 672746460
    *pablo.llorente@holcim.com <pablo.llorente@holcim.com>**
    <http: www.holcim.com/="">*
    *www.holcim.com <http: www.holcim.com/="">*

    Follow us on Facebook <https: www.facebook.com/lafargeholcimitemea/=""> |
    Twitter <https: twitter.com/lhitemea=""> | LinkedIn
    <https: www.linkedin.com/company/lafargeholcimitemea/="">

    *To visit our Workplace Connect site click here
    <https: connect.lafargeholcim.com/emea-digital-center/functions/it-security/emea-workplace-services="">*

    This email is confidential and intended only for the use of the above named
    addressee. If you have received this email in error, please delete it
    immediately and notify us by email or telephone.


    On Fri, Sep 29, 2023 at 9:23 AM Damjan Breg via Broadcom <mail@broadcom.com>
    wrote:

    > Thank you Arthur for a fast response. I am using first suggestion because
    > I like to edit notification on my own with my text, company logo, ... etc.
    > -posted to the "IT Management Suite" community
    > [image: Broadcom] <https: community.broadcom.com="">
    > IT Management Suite
    > <https: community.broadcom.com/symantecenterprise/communities/community-home/digestviewer?communitykey="bf23126f-6eab-4bbe-965d-e26838c079e0">
    > Post New Message <broadcom-itmanagementsuite@connectedcommunity.org>
    > Re: User notifications
    > <https: community.broadcom.com/symantecenterprise/discussion/user-notifications#bmd4c802db-6ba0-48ed-a3b7-018ae0a1025f="">
    > Reply to Group
    > <broadcom_itmanagementsuite_d4c802db-6ba0-48ed-a3b7-018ae0a1025f@connectedcommunity.org?subject=re:+user+notifications> Reply
    > to Sender
    > <https: community.broadcom.com/symantecenterprise/communities/all-discussions/postreply?messagekey="d4c802db-6ba0-48ed-a3b7-018ae0a1025f&ListKey=ad954693-81d5-45f1-b537-10e91ba3a313&SenderKey=42d83ee8-d275-4e8a-a87b-28be55d599da">
    > [image: Damjan Breg]
    > <https: community.broadcom.com/network/members/profile?userkey="42d83ee8-d275-4e8a-a87b-28be55d599da">
    > Sep 29, 2023 3:23 AM
    > Damjan Breg
    > <https: community.broadcom.com/network/members/profile?userkey="42d83ee8-d275-4e8a-a87b-28be55d599da">
    >
    > Thank you Arthur for a fast response. I am using first suggestion because
    > I like to edit notification on my own with my text, company logo, ... etc.
    > *Reply to Group Online
    > <https: community.broadcom.com/symantecenterprise/communities/all-discussions/postreply?messagekey="d4c802db-6ba0-48ed-a3b7-018ae0a1025f&ListKey=ad954693-81d5-45f1-b537-10e91ba3a313">*
    > *Reply to Group via Email
    > <broadcom_itmanagementsuite_d4c802db-6ba0-48ed-a3b7-018ae0a1025f@connectedcommunity.org?subject=re:+user+notifications>*
    > *View Thread
    > <https: community.broadcom.com/symantecenterprise/discussion/user-notifications#bmd4c802db-6ba0-48ed-a3b7-018ae0a1025f="">*
    > *Recommend
    > <https: community.broadcom.com:443/symantecenterprise/discussion/user-notifications?messagekey="d4c802db-6ba0-48ed-a3b7-018ae0a1025f&cmd=rate&cmdarg=add#bmd4c802db-6ba0-48ed-a3b7-018ae0a1025f">*
    > *Forward
    > <https: community.broadcom.com/symantecenterprise/communities/all-discussions/forwardmessages?messagekey="d4c802db-6ba0-48ed-a3b7-018ae0a1025f&ListKey=ad954693-81d5-45f1-b537-10e91ba3a313">*
    > *Flag as Inappropriate
    > <https: community.broadcom.com/symantecenterprise/discussion/user-notifications?markappropriate="d4c802db-6ba0-48ed-a3b7-018ae0a1025f#bmd4c802db-6ba0-48ed-a3b7-018ae0a1025f">*
    >
    > -------------------------------------------
    > Original Message:
    > Sent: Sep 29, 2023 03:11 AM
    > From: Arthur Prosso
    > Subject: User notifications
    >
    > Hello Damjan!
    >
    > It turns out that currently there is no way to force "End user
    > Notification" task to fail in case the notification itself is properly
    > shown.
    >
    > I would suggest 2 workarounds:
    >
    > 1) Implement end user notification via script task (with UI ) where you
    > may define success/failure codes. Managed delivery will fail on task
    > failure and stop execution.
    >
    > 2) If the purpose on the agent side is "not to disturb for a while ", you
    > may setup managed delivery policy to show a notification message with an
    > option to defer for a predefined period of time. Before software is
    > installed the popup will appear that will allow user to defer the
    > installation.
    >
    > This is the UI that will appear on the agent side
    >
    > Hope this helps.
    >
    > Artur
    >
    >
    > ------------------------------
    > Software Engineer 5
    > Broadcom Inc.
    >
    >
    >
    >
    > You are subscribed to "IT Management Suite" as
    > pablo.llorente@lafargeholcim.com. To change your subscriptions, go to My
    > Subscriptions
    > <http: community.broadcom.com/preferences?section="Subscriptions">. To
    > unsubscribe from this community discussion, go to Unsubscribe
    > <http: community.broadcom.com/higherlogic/egroups/unsubscribe.aspx?userkey="278d1fe0-fb09-485d-bc03-377654f3d842&sKey=KeyRemoved&GroupKey=ad954693-81d5-45f1-b537-10e91ba3a313">.
    >
    >
    > Copyright © 2005-2023 Broadcom. All Rights Reserved. The term "Broadcom"
    > refers to Broadcom Inc. and/or its subsidiaries.
    >
    > Hosted by Higher Logic, LLC on the behalf of Broadcom - Privacy Policy
    > <https: www.broadcom.com/company/legal/privacy-policy=""> | Cookie Policy
    > <https: www.higherlogic.com/legal/privacy=""> | Supply Chain Transparency
    > <https: www.broadcom.com/company/citizenship/governance-and-ethics#supply="">
    > | Terms of Use <http: termsandconditions="">
    >




  • 10.  RE: User notifications

    Posted Oct 02, 2023 12:13 AM

    Hello Pablo.

    I prepared a script in PowerShell, but it is not perfect, because it opens a PowerShell window for a second, before my custom notification is shown.
    You can also try: https://psappdeploytoolkit.com/

    Add-Type -AssemblyName System.Windows.Forms
    $currentUser = [System.Security.Principal.WindowsIdentity]::GetCurrent().Name.Split('\')[1]
    $computerName = $env:COMPUTERNAME
    $title = "Software Title"
    $text = "We would like to update Software Title on your computer $computerName`r`nDuring the update, Software title will be closed.`r`nIf you agree, please click on the Accept button.`r`nIf you do not agree, then click on the Decline button.`r`nIf you decline, you will be prompted for an update later again."
    
    # Create the form
    $form = New-Object System.Windows.Forms.Form
    $form.Text = $title
    $form.Size = New-Object System.Drawing.Size(632, 632)
    $form.BackColor = "#F4F4F4"
    $form.Font = New-Object System.Drawing.Font("Tahoma", 10)
    
    # Create a PictureBox to display the GIF
    $picturebox = New-Object System.Windows.Forms.PictureBox
    $picturebox.Size = New-Object System.Drawing.Size(620, 350)
    $picturebox.Location = New-Object System.Drawing.Point(0, 0)
    $picturebox.SizeMode = [System.Windows.Forms.PictureBoxSizeMode]::Zoom
    $url = "Link to gif file"
    $gif = [System.Drawing.Image]::FromStream((New-Object System.Net.WebClient).OpenRead($url))
    $picturebox.Image = $gif
    $form.Controls.Add($picturebox)
    
    # Create a Label for the text
    $additionalTextLabel = New-Object System.Windows.Forms.Label
    $additionalTextLabel.Text = $text
    $additionalTextLabel.Size = New-Object System.Drawing.Size(600, 120)
    $additionalTextLabel.Location = New-Object System.Drawing.Point(10, 425)
    $additionalTextLabel.Font = New-Object System.Drawing.Font("Tahoma", 11)
    $additionalTextLabel.ForeColor = "#5d5d5c"
    $additionalTextLabel.AutoSize = $true
    $form.Controls.Add($additionalTextLabel)
    
    # Create a Label for the username
    $usernameLabel = New-Object System.Windows.Forms.Label
    $usernameLabel.Text = "Dear $currentUser"
    $usernameLabel.Size = New-Object System.Drawing.Size(400, 20)
    $usernameLabel.Location = New-Object System.Drawing.Point(10, 375)
    $usernameLabel.Font = New-Object System.Drawing.Font("Tahoma", 13, [System.Drawing.FontStyle]::Bold)
    $usernameLabel.ForeColor = "#990000"
    $form.Controls.Add($usernameLabel)
    
    # Create "Accept" button
    $acceptButton = New-Object System.Windows.Forms.Button
    $acceptButton.Text = "Accept"
    $acceptButton.Size = New-Object System.Drawing.Size(100, 30)
    $acceptButton.Location = New-Object System.Drawing.Point(300, 530)
    $acceptButton.Add_Click({
        $form.DialogResult = [System.Windows.Forms.DialogResult]::OK
        $form.Close()
    })
    $form.Controls.Add($acceptButton)
    
    # Create "Decline" button
    $declineButton = New-Object System.Windows.Forms.Button
    $declineButton.Text = "Decline"
    $declineButton.Size = New-Object System.Drawing.Size(100, 30)
    $declineButton.Location = New-Object System.Drawing.Point(490, 530)
    $declineButton.Add_Click({
        $form.DialogResult = [System.Windows.Forms.DialogResult]::Cancel
        $form.Close()
    })
    $form.Controls.Add($declineButton)
    
    # Create a Label for the last line
    $lastLineLabel = New-Object System.Windows.Forms.Label
    $lastLineLabel.Text = "Company IT Team."
    $lastLineLabel.Size = New-Object System.Drawing.Size(300, 20)
    $lastLineLabel.Location = New-Object System.Drawing.Point(10, 530)
    $lastLineLabel.Font = New-Object System.Drawing.Font("Tahoma", 11, [System.Drawing.FontStyle]::Bold)
    $lastLineLabel.ForeColor = "#990000"
    $form.Controls.Add($lastLineLabel)
    
    # Show the form
    $result = $form.ShowDialog()
    
    # Check the result and set the exit code accordingly
    if ($result -eq [System.Windows.Forms.DialogResult]::OK) {
        exit 0  # User clicked "Accept"
    } else {
        exit 1  # User clicked "Decline" or closed the form
    }
    
    # Dispose of the form
    $form.Dispose()