Skip to content

Update references to [System.Security.Principal.WindowsIdentity]::GetCurrent().Name to be Cross-Platform #21

@jswright91

Description

@jswright91

[string] $currentUser = [System.Security.Principal.WindowsIdentity]::GetCurrent().Name

Can we please update these references to get the username from whoami, vs The WindowsIdentity principal?

Other ways to get the current user in powershell

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions