• Earn real money by being active: Hello Guest, earn real money by simply being active on the forum — post quality content, get reactions, and help the community. Once you reach the minimum credit amount, you’ll be able to withdraw your balance directly. Learn how it works.

Source Code Powershell Profile Details

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
Code:
$profiles = Get-PsProfileDetails

Script
 
Back
Top