Menu

Lab Core | The Lab of MrNetTek

A blog about IT, technical solutions, and code.


  -   All Posts
  -   Current Releases
  -   Windows Category
  -   MacOS Category

  -   Artificial Intelligence Category
  -   Algorithms Category
  -   Assembly Category
  -   Bash Category
  -   Batch Category
  -   C# Category
  -   C# Mathematics Category
  -   C++ Category
  -   Fortran Category
  -   JavaScript Category
  -   Pascal Category
  -   PowerShell Category
  -   Python Category
  -   Reversing Category
  -   VBScript Category

  -   Programming Questions
  -   IT Organizations

  -   Azure AZ-103 Certification
  -   Azure AZ-104 Certification
  -   Azure AZ-900 Certification
  -   SQL Certification

  -  User Feedback
Facebook Twitter Email GitHub LinkedIn Tumblr Instagram Reddit

Primary Menu

Skip to content
  • Home
  • Azure
  • SCCM
  • PowerShell
  • C#
  • Windows
  • Mathematics
  • About
  • Contact
  • Pro
Search

  -   All Posts
  -   Current Releases
  -   Windows Category
  -   MacOS Category

  -   Artificial Intelligence Category
  -   Algorithms Category
  -   Assembly Category
  -   Bash Category
  -   Batch Category
  -   C# Category
  -   C# Mathematics Category
  -   C++ Category
  -   Fortran Category
  -   JavaScript Category
  -   Pascal Category
  -   PowerShell Category
  -   Python Category
  -   Reversing Category
  -   VBScript Category

  -   Programming Questions
  -   IT Organizations

  -   Azure AZ-103 Certification
  -   Azure AZ-104 Certification
  -   Azure AZ-900 Certification
  -   SQL Certification

  -  User Feedback

PowerShell – Return Current User

Posted onNovember 4, 2020July 15, 2022AuthorMrNetTek

email me

[System.Security.Principal.WindowsIdentity]::GetCurrent().Name

 

Notes

WindowsIdentity Class

System.Security.Principal Namespace

CategoriesPowerShell, Scripting

Post navigation

← Previous Previous post: PowerShell – Speech Synthesizer
Next → Next post: Windows – Install Assemblies

What are you looking for?


  -   All Posts
  -   Current Releases
  -   Windows Category
  -   MacOS Category

  -   Artificial Intelligence Category
  -   Algorithms Category
  -   Assembly Category
  -   Bash Category
  -   Batch Category
  -   C# Category
  -   C# Mathematics Category
  -   C++ Category
  -   Fortran Category
  -   JavaScript Category
  -   Pascal Category
  -   PowerShell Category
  -   Python Category
  -   Reversing Category
  -   VBScript Category

  -   Programming Questions
  -   IT Organizations

  -   Azure AZ-103 Certification
  -   Azure AZ-104 Certification
  -   Azure AZ-900 Certification
  -   SQL Certification

  -  User Feedback

Support


Facebook Twitter Email LinkedIn Tumblr Instagram Reddit Github
Created by Eddie Jackson | 1994-2025



Scroll Up
  • Home
  • Azure
  • SCCM
  • PowerShell
  • C#
  • Windows
  • Mathematics
  • About
  • Contact
  • Pro