dEEpEst
☣☣ In The Depths ☣☣
Staff member
Administrator
Super Moderator
Hacker
Specter
Crawler
Shadow
- Joined
- Mar 29, 2018
- Messages
- 13,859
- Solutions
- 4
- Reputation
- 27
- Reaction score
- 45,545
- Points
- 1,813
- Credits
- 55,080
7 Years of Service
56%
Get-PsProfileDetails is a simple function that enumerates the four standard PowerShell profile paths, checks which ones exist, and displays their locations along with basic info like parent folders. This overview can be invaluable for understanding where your PowerShell startup scripts live, spotting potential misconfigurations or leftover code, and quickly assessing whether profiles are actively used in your environment. Might also contain some hard coded credentials.
Syntax
Script
Syntax
Code:
$profiles = Get-PsProfileDetails
Script