T

his Automox Worklet™ lets you set a title and message for your users when they login. This can be used as a required legal acceptance of your AUP or for a critical notification that all users need to see.

To deploy this endpoint hardening worklet, do the following:

  1. Log in to your Automox Console.
  2. Navigate to the System Management page, and click Create Policy in the upper right-hand section of the screen.
  3. Choose Windows under Worklet.

Create policy within the Automox console
  1. On the create Worklet page, enter a worklet title in Name under Policy Info. For example, "Legal-Acknwlgmnt-Login."
  2. Copy and paste the Evaluation and Remediation code scripts from below. The evaluation code keeps you aware of each device’s ongoing compliance, as well as flags the device for remediation. The remediation code enforces this setting on the schedule you define.

    IMPORTANT NOTE: Change the values as described in the code so that they match your needs.

Evaluation:

# Define Registry Key and sub-value to evaluate#############################################$regPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System"$regPropertyText = "LegalNoticeText"$regPropertyCaption = "LegalNoticeCaption"$desiredCaptionValue = 'PutYourCaptionHere'$desiredTextValue = 'PutYourTextHere'############################################## Retrieve current value for comparison$currentValue = (Get-ItemProperty -Path $regPath -Name $regPropertyCaption).$regPropertyCaption# Compare current with desired and exit accordingly.# 0 for Compliant, 1 for Non-Compliantif ($currentValue -eq $desiredCaptionValue) {   Exit 0} else { Exit 1 }

Remediation:

# Define Registry Key and sub-value to modify#############################################$regPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System"$regPropertyText = "LegalNoticeText"$regPropertyCaption = "LegalNoticeCaption"$desiredCaptionValue = 'PutYourCaptionHere'$desiredTextValue = 'PutYourTextHere#############################################try {   Set-ItemProperty -Path $regPath -Name $regPropertyCaption -Value $desiredCaptionValue   Set-ItemProperty -Path $regPath -Name $regPropertyText -Value $desiredTextValue   Exit 0} catch {   Write-Output "Unable to update $regProperty"   Exit 1}

6. After you paste and update the evaluation and remediation codes for your needs, click Create Worklet.
7. Assign the worklet to a group or multiple groups, and click Save Changes.
8. Execute the worklet by clicking the Execute Policy Now button.

Your users will now see the title and message you designated when they login.

If you need technical assistance, contact our support team at support@automox.com.

About Automox

Facing growing threats and a rapidly expanding attack surface, understaffed and alert-fatigued organizations need more efficient ways to eliminate their exposure to vulnerabilities. Automox is a modern cyber hygiene platform that closes the aperture of attack by more than 80% with just half the effort of traditional solutions.

Cloud-native and globally available, Automox enforces OS & third-party patch management, security configurations, and custom scripting across Windows, Mac, and Linux from a single intuitive console. IT and SecOps can quickly gain control and share visibility of on-prem, remote and virtual endpoints without the need to deploy costly infrastructure.

Experience modern, cloud-native patch management today with a 15-day free trial of Automox and start recapturing more than half the time you're currently spending on managing your attack surface. Automox dramatically reduces corporate risk while raising operational efficiency to deliver best-in-class security outcomes, faster and with fewer resources.