We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee64859 commit 922e1faCopy full SHA for 922e1fa
Download_Sophia.ps1
@@ -12,8 +12,6 @@ Clear-Host
12
13
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
14
15
-Remove-Variable * -ErrorAction Ignore
16
-
17
# Checking whether the logged-in user is an admin
18
$CurrentUserName = (Get-CimInstance -ClassName Win32_Process -Filter ProcessId=$PID | Invoke-CimMethod -MethodName GetOwner | Select-Object -First 1).User
19
$LoginUserName = (Get-CimInstance -ClassName Win32_Process -Filter "name='explorer.exe'" | Invoke-CimMethod -MethodName GetOwner | Select-Object -First 1).User
0 commit comments