Products
Design Models and Databases
ER/Studio Data Modeling Tools
DB PowerStudio
Aqua Data Studio
All DESIGN Products >>
Monitor Database Performance
SQL Diagnostic Manager for SQL Server
SQL Diagnostic Manager for MySQL
Precise for Oracle, Db2, and Sybase
All MONITOR Products >>
Protect Database Integrity
SQL Compliance Manager
SQL Secure
SQL Safe Backup
ALL PROTECT Products >>
Free Tools
Design Databases
SQL Data Profiler
Rapid Database Extractor
MONITOR DATABASE PERFORMANCE
SQL Check
SQL Query Store Optimizer
SQL Fragmentation Analyzer
Protect Database Integrity
SQL Permissions Extractor
SQL Column Search
Manage Databases
PowerShell Scripts for SQL Server
PowerShell Plus
Solutions
FOR ENTERPRISES
Database Monitoring
Diagnostics Solutions
Security Solutions
Data Governance
Compliance
IT Performance
FOR DATABASES
SQL Server
Oracle
Sybase
DB2
MySQL
Multi Platforms
FOR CLOUD SERVICES
Cloud
Amazon RDS & S3
Azure SQL Database & Blob Storage
Google Database Service
Oracle MySQL Cloud Service
Snowflake
FOR APPLICATIONS
Application Performance
.NET(including SharePoint)
PeopleSoft
FOR DATA FABRIC
ER/Studio
Wherescape
Qubole
Resources
SUPPORT
Support Plans
Product Support
Product Documentation
Trial Support
Legal
RESOURCES
Resource Center
Blog
News
Partners
EVENTS
All Events >>
Newsletter Signup
Contact Sales
Customer
BUY NOW
FREE TRIALS
Accessing Current PowerShell Process
by
ps1
Aug 31, 2009
If you ever want to access the process that is executing your current PowerShell session, use the $pid automatic variable which tells you the Process ID, and feed it to Get-Process:
Get-Process
-id
$pid
ReTweet this Tip!
Search for:
Categories
Free tools
SQL Admin Toolset
SQL Compliance Manager
SQL Defrag Manager
SQL Diagnostic Manager for MySQL
SQL Diagnostic Manager for SQL Server
SQL Diagnostic Manager Pro
SQL Doctor
SQL Enterprise Job Manager
SQL Inventory Manager
SQL Query Tuner for SQL Server
SQL Safe Backup
SQL Secure
SQL Workload Analysis for SQL Server
Uptime Infrastructure Monitor Formerly Uptime