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:
Tags
Amazon Web Services (AWS)
Aqua Data Studio
Azure SQL Database
big data
cloud
compliance
data architecture
database
database administration
database management
database monitoring
database performance
database tools
data governance
data modeling
DBA
DBArtisan
diagnostics
ER/Studio
events
IDERA
interbase
Microsoft SQL Server
monitoring
Monyog
MySQL
news
Oracle
performance
performance tuning
Precise
Precise for Databases
Rapid SQL
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