The logged-on user doesn't have admin rights #212
-
Hello, I am trying to run the script in the admin powershell but this warning comes and script exits:
That's because it thinks that current user is not admin. It checks that with equality of $CurrentUserName = (Get-Process -Id $PID -IncludeUserName).UserName | Split-Path -Leaf
$CurrentSessionId = (Get-Process -Id $PID -IncludeUserName).SessionId
$LoginUserName = (Get-Process -IncludeUserName -ErrorAction SilentlyContinue | Where-Object -FilterScript {($_.Name -eq "explorer") -and ($_.SessionId -eq $CurrentSessionId)}).UserName | Select-Object -Index 1 | Split-Path -Leaf The Should I just delete the lines for checking if user is admin or not, or should I do something else? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 22 replies
-
Hi. Yes, you're right. I fixed it, re-released 2 hours later with the same version. Please, try again and let me know. |
Beta Was this translation helpful? Give feedback.
-
Why not to use a proprietary app?.. google for screen to gif |
Beta Was this translation helpful? Give feedback.
-
It would be possible to use OBS. instead of streaming you simply configure the screen as the source and send the output as a file.
https://obsproject.com/
Sent with [ProtonMail](https://protonmail.com/) Secure Email.
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
…On Tuesday, July 13th, 2021 at 16:28, Murad Bashirov ***@***.***> wrote:
Is there an easy way to record screen? All the sites say I should use a third party software and xbox gaming bar can't record powershell screen.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, [view it on GitHub](#212 (reply in thread)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/ATBPDKYP26SBC56H4VU6BZTTXRLSZANCNFSM5AJKD6OQ).
|
Beta Was this translation helpful? Give feedback.
-
Sophia Script v5.11.1.zip |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
5.11.1
https://github.com/farag2/Windows-10-Sophia-Script/releases/latest