PowerShell – Return Current User – System Account
This will return the current user, even from the system account security content. Highly useful, if you’re trying to apply settings, configs, or run processes from the security context of the current user, but initially starting from the system account, like when using desktop management systems like SCCM or Intune. Code.ps1 # MrNetTek Read More …