Skip to main content

3 posts tagged with "check-profilestatus"

View All Tags

How to verify group membership

· One min read
Hannes Palmquist
Senior Consultant Cloud

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

Check-ProfileStatus

· One min read
Hannes Palmquist
Senior Consultant Cloud

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