mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-14 06:48:46 +02:00
Added the #requires statement
This commit is contained in:
@ -12,6 +12,8 @@
|
||||
Author: Markus Fleschutz | License: CC0
|
||||
#>
|
||||
|
||||
#requires -version 5.1
|
||||
|
||||
function GetCurrentUserSID { [CmdletBinding()] param()
|
||||
Add-Type -AssemblyName System.DirectoryServices.AccountManagement
|
||||
return ([System.DirectoryServices.AccountManagement.UserPrincipal]::Current).SID.Value
|
||||
|
Reference in New Issue
Block a user