Check-ProfileStatus
· One min read
This function can be used to show the status of the Powershell profile scripts on the computer.
function Check-ProfileStatus {
($profile | Get-Member -MemberType NoteProperty).Name |
ForEach-Object {
$CurrentProfile = $_
$path = $profile.$_
[pscustomobject]([Ordered]@{Profile=$CurrentProfile;Path=$Path;Exists=(Test-Path $Path)})
}
}
Check-ProfileStatus