SynopsisRemoves the logon message on a local or remote computer.
- Remove-LogonNotice [-ComputerName] [-Credential]
DescriptionThe 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.
InputsRemove-LogonNotice accepts pipeline input only for the ComputerName parameter and requires that the input object contain a property named either Computer, CN or ComputerName.
OutputsRemove-LogonNotice makes changes directly to the Windows registry and does not output any Powershell objects.
NotesThe 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 1This command will remove the logon notice on the local computer:
Example 2This command will clear the logon notice on the remote computer PC01:
C:\PS>Remove-LogonNotice -ComputerName PC01