View all Worklets
Windows

Windows - Security - Rename Built-In Guest Account

Renames local Guest account, bolstering Windows endpoints security.

Worklet Details

Introduction to the PowerShell Based Windows - Security - Rename Built-In Guest Account Worklet

The Rename Built-In Guest Account Worklet is a useful tool for enhancing security on a Windows device. It is a PowerShell-based solution that allows administrators to rename the built-in local Guest account, which is a user account common on Windows systems. 

By default, this account does not require a password and can provide unauthorized users with access to system resources. Renaming the built-in Guest account to an unidentified name improves account protection and overall system security.

Why would you use the Rename Built-In Guest Account Worklet?

System administrators need effective ways to manage and maintain security settings, including naming conventions for user accounts. Renaming guest accounts can help prevent unauthorized access by making it more difficult for attackers to guess the correct password combination. 

The Rename Built-In Guest Account Worklet offers an efficient solution for renaming local accounts, including the commonly targeted guest and administrator accounts.

 Components of the Windows - Security - Rename Built-In Guest Account Worklet

The Worklet consists of two primary components: evaluation code and remediation code. The evaluation code checks if an old or default account name exists (e.g., "Guest" or "Administrator"). 

If it does, the device is flagged for remediation, which triggers the renaming process. If not, the device is considered compliant and no further action is taken.

How does the Rename Built-In Guest Account Worklet work?

Administrators can customize this Worklet by specifying their desired old and new account names in variables $oldAccountName and $newAccountName. An optional feature allows users to rename any local Windows account by simply changing these variables accordingly. 

This Worklet searches for matching user accounts and performs the necessary renaming operations.

What is the expected outcome when you use the Windows - Security - Rename Built-In Guest Account Worklet?

When executed, this Worklet will search for the specified old account name (default is "Guest") and, if found, rename it to the new account name provided. As a result, unauthorized persons attempting to access system resources using well-known privileged user names like "Guest" or "Administrator" will be thwarted. 

By implementing the Rename Built-In Guest Account Worklet, administrators can fortify their security settings and protect against potential risks associated with default or well-known local group policy accounts.

View in app

Consider Worklets your easy button

What's a Worklet?

A Worklet is an automation script, written in Bash or PowerShell, designed for seamless execution on endpoints – at scale – within the Automox platform. Worklet automation scripts perform configuration, remediation, and the installation or removal of applications and settings across Windows, macOS, and Linux.

do more with worklets