PADT – System Commands

PowerShell Application Deployment Toolkit is a tool very powerful to manage systems:

  • Silent install commands
  • Start or stop services
  • Kill processes
  • Wait a process not existing anymore before continuing
  • Manage scheduled tasks
  • Environment variables

There are many possibilities, not forgetting that all old batch commands are compatible with PowerShell too.

Here is a memento of useful commands.

 

1. EXE + Parameters

 

Sometimes the .exe process exit directly after launched. In this case, it’s necessary to wait until the process .exe not be there anymore to validate that the command is executed correctly

Use the “wait-process” command with the name of the process without extension (.exe)

 

2. Environment Variables

 

3. Services

Stop Service

 

Start Service

 

Remove Service

 

4. Kill Process

Do not include the .exe extension

 

5. Scheduled Tasks