Skip to content

Commit 922e1fa

Browse files
authored
Update Download_Sophia.ps1
1 parent ee64859 commit 922e1fa

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Download_Sophia.ps1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ Clear-Host
1212

1313
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
1414

15-
Remove-Variable * -ErrorAction Ignore
16-
1715
# Checking whether the logged-in user is an admin
1816
$CurrentUserName = (Get-CimInstance -ClassName Win32_Process -Filter ProcessId=$PID | Invoke-CimMethod -MethodName GetOwner | Select-Object -First 1).User
1917
$LoginUserName = (Get-CimInstance -ClassName Win32_Process -Filter "name='explorer.exe'" | Invoke-CimMethod -MethodName GetOwner | Select-Object -First 1).User

0 commit comments

Comments
 (0)