Skip to main content

3 posts tagged with "profile"

View All Tags

· One min read
Hannes Palmquist

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

· One min read
Hannes Palmquist

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