This cmdlet is part of the Vexasoft Cmdlet Library. You can download it now or click here to find out more.



Removes the logon message on a local or remote computer.


  • Remove-LogonNotice [-ComputerName] [-Credential]


The Remove-LogonNotice cmdlet is used to remove the logon message, displayed before the user is presented with the logon box, on a local or remote computer.


  • ComputerName The computer against which to run the cmdlet. By default this parameter will be populated with the name of the local computer.
  • Credential The credentials under which to run the cmdlet. By default this cmdlet will run as the current user. Using this parameter and the Get-PSCredential cmdlet you can specify an alternate set of credentials under which to execute this command.


Remove-LogonNotice accepts pipeline input only for the ComputerName parameter and requires that the input object contain a property named either Computer, CN or ComputerName.


Remove-LogonNotice makes changes directly to the Windows registry and does not output any Powershell objects.


The Remove-LogonNotice cmdlet requires that the RPC service is started on the computer it is trying to access and that DNS services are available to resolve target host names.

Example 1

This command will remove the logon notice on the local computer:


Example 2

This command will clear the logon notice on the remote computer PC01:

C:\PS>Remove-LogonNotice -ComputerName PC01