IderaBlog
  • Home
  • Performance Monitoring & Tuning
    • SQL Diagnostic Manager for SQL Server
    • SQL Defrag Manager
    • SQL Diagnostic Manager for MySQL
    • Precise
    • SQL Doctor
    • SQL Query Tuner for SQL Server
    • SQL Workload Analysis for SQL Server
    • Uptime Infrastructure Monitor Formerly Uptime
  • Database Administration
    • SQL Admin Toolset
    • SQL Enterprise Job Manager
    • SQL Inventory Manager
    • SQL Safe Backup
  • Database Security
    • SQL Compliance Manager
    • SQL Secure
  • Data Modeling
    • ER/Studio Business Architect
    • ER/Studio Data Architect
    • ER/Studio Team Server
  • Database Development & Management
    • Aqua Data Studio
    • DB PowerStudio
  • More
    • Powershell
    • Free tools
    • Events
  • U
Select Page

Stopping a Program Whenever You Feel Like It

by ps1Mar 2, 2010

When you launch a program using Start-Process with -passThru, you will get back the process object representing the started program. You can then use this object later to kill the program whenever necessary.

$notepad = Start-Process notepad -passthru
Start-Sleep 2
Stop-Process -inputObject $notepad

Twitter This Tip! ReTweet this Tip!

Tags

Aqua Data Studio cloud compliance data architecture database database administration database management database monitoring database performance database tools data governance data modeling DBA DBArtisan diagnostics ER/Studio ER/Studio Data Architect ER/Studio Enterprise Team Edition events IDERA interbase Microsoft SQL Server monitoring Monyog MySQL news Oracle performance Precise product updates Rapid SQL real time monitoring Release releases SQL SQL Compliance Manager SQL Diagnostic Manager SQL Diagnostic Manager for MySQL SQL Diagnostic Manager for SQL Server SQL Doctor SQL Safe Backup SQL Secure SQL Server Uptime Infrastructure Monitor webinar
  • Facebook
  • Twitter
  • LinkedIn
  • YouTube

Idera uses cookies to improve user experience. By using our community you consent to all cookies in accordance with our Cookie policy.