SynopsisRemoves programs or executables that have been set to run at user logon, for specific users or all users of a local or remote computer.
- Remove-StartUpApplication [-Name] [-User] [-ComputerName] [-Credential] [-WhatIf] [-Confirm]
- Remove-StartUpApplication [-Executable] [-User] [-ComputerName] [-Credential] [-WhatIf] [-Confirm]
DescriptionThe Remove-StartUpApplication cmdlet is used to remove programs that have previously been set to run at user logon on a local or remote computer. This can be for specific users or all users of the machine.
- Name A user defined name for the program. This name will be used when writing to the registry and when referencing the program in the Remove-FromStartup cmdlet.
- Executable The launch string of the program to be run at logon, including the full path, executable name and any switches required.
- User Run the program at logon for the specified user only. Cannot be used with the CurrentUser parameter. If neither this parameter or the CurrentUser parameter are specified the program will launch for all users of the computer at logon.
- 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 computer against which to run the cmdlet. By default this parameter will be populated with the name of the local computer.
InputsRemove-StartUpApplication accepts the output of the Get-StartUpApplication cmdlet as an input object.In addition, the Name, Executable and ComputerName parameters each accept pipeline input by property name.
OutputsRemove-StartUpApplication makes changes directly to the Windows registry and does not output any Powershell objects.
NotesThe Remove-StartUpApplication 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 application 'MyApp' from running at logon if it is set to do so on the local computer:
Remove-StartUpApplication -Name MyApp
Example 2This command will remove the executable 'MyApp.exe' from running at logon if it is set to do so on the remote computer PC01:
Remove-StartUpApplication -Executable 'C:\Program Files\MyApp\MyApp.exe' -Computer PC01
Example 3This command will remove the application 'MyApp' from running at logon of the user ASmith if it is set to do so on the remote computer PC01:
Remove-StartUpApplication -Name MyApp -User ASmith -Computer PC01
Example 4The Get-StartUpApplication cmdlet can be used in conjunction with Remove-StartUpApplication. In this example all startup applications are removed from the local computer:
Get-StartupApplication | Remove-StartUpApplication