/ _ \ \_\(_)/_/ _//"\\_ more on JOHLEM.net / \ 0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0 Program/Application Management Commands: ----------------------------------------- 1. **Get-InstalledModule** List all installed PowerShell modules. Syntax: Get-InstalledModule 2. **Install-Module** Install a PowerShell module from the PowerShell Gallery. Syntax: Install-Module -Name "ModuleName" -Scope CurrentUser Example: Install-Module -Name "Az" -Scope CurrentUser 3. **Uninstall-Module** Uninstall a PowerShell module. Syntax: Uninstall-Module -Name "ModuleName" Example: Uninstall-Module -Name "Az" 4. **Get-Package** List installed software packages. Syntax: Get-Package 5. **Install-Package** Install a software package using a package provider (e.g., Chocolatey, NuGet). Syntax: Install-Package -Name "PackageName" -ProviderName "Provider" Example: Install-Package -Name "GoogleChrome" -ProviderName "Chocolatey" 6. **Uninstall-Package** Uninstall a software package. Syntax: Uninstall-Package -Name "PackageName" Example: Uninstall-Package -Name "GoogleChrome" 7. **Get-Process** Display running processes. Syntax: Get-Process 8. **Start-Process** Start a new process or application. Syntax: Start-Process -FilePath "PathToExecutable" -ArgumentList "Arguments" Example: Start-Process -FilePath "notepad.exe" -ArgumentList "C:\Temp\file.txt" 9. **Stop-Process** Stop a running process. Syntax: Stop-Process -Name "ProcessName" -Force Example: Stop-Process -Name "notepad" -Force 10. **Get-InstalledApplication** (Requires Custom Script) List installed applications on the system (Windows 10/11). Syntax: Get-InstalledApplication Example (Custom Script): $applications = Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate $applications | Format-Table -AutoSize 11. **Remove-AppxPackage** Remove a built-in Windows Store app. Syntax: Get-AppxPackage -Name "AppName" | Remove-AppxPackage Example: Get-AppxPackage -Name "Microsoft.XboxApp" | Remove-AppxPackage 12. **Get-AppxPackage** List all installed Windows Store apps. Syntax: Get-AppxPackage 13. **Install-WindowsFeature** (Requires Windows Server) Install a Windows feature or role. Syntax: Install-WindowsFeature -Name "FeatureName" Example: Install-WindowsFeature -Name "Web-Server" 14. **Uninstall-WindowsFeature** (Requires Windows Server) Uninstall a Windows feature or role. Syntax: Uninstall-WindowsFeature -Name "FeatureName" 15. **Get-WmiObject** (Alias: `gwmi`) Query installed applications via WMI. Syntax: Get-WmiObject -Query "SELECT * FROM Win32_Product" +----------------------------------------------------------+ | Note: Application management commands enable install- | | ation, uninstallation, and process management for | | both traditional and Windows Store applications. | +----------------------------------------------------------+