Closed Natbugasaurus closed 2 months ago
I've also updated the execution policy
Execution Policy Change
The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose
you to the security risks described in the about_Execution_Policies help topic at
https:/go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): Y
PS C:\Windows\system32> Get-ExecutionPolicy -List
Scope ExecutionPolicy
----- ---------------
MachinePolicy Undefined
UserPolicy Undefined
Process Undefined
CurrentUser Undefined
LocalMachine RemoteSigned
Hi, can you show me the content of these directories ?
And a screenshot of your device manager window ?
I am running into the same issue:
From my sunvdm.log:
File C:\Users\dmwin\Setup\sunshine-virtual-monitor-main\setup_sunvdm.ps1 cannot be loaded. The file
C:\Users\dmwin\Setup\sunshine-virtual-monitor-main\setup_sunvdm.ps1 is not digitally signed. You cannot run this
script on the current system. For more information about running scripts and setting execution policy, see
about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
+ CategoryInfo : SecurityError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnauthorizedAccess
Get-ExecutionPolicy -List
Scope ExecutionPolicy
----- ---------------
MachinePolicy Undefined
UserPolicy Undefined
Process Undefined
CurrentUser Undefined
LocalMachine RemoteSigned
sunshine-virutal-monitor-main
:
scripts
:
device manager
:
@drewmullen I had a similar issue.
If you follow the link provided in the error code, it'll take you to the Microsoft page discussing Execution Policies.
In there is a section that says
- RemoteSigned
- ...
- Runs scripts that are downloaded from the internet and not signed, if the scripts are unblocked, such as by using the
Unblock-File
cmdlet.- ...
So you need to run the Unblock-File
cmdlet on the ps scripts you downloaded from the sunshine-virtual-monitor repo. For you, it's probably something like:
Unblock-File C:\Users\dmwin\Setup\sunshine-virtual-monitor-main\setup_sunvdm.ps1
and
Unblock-File C:\Users\dmwin\Setup\sunshine-virtual-monitor-main\teardown_sunvdm.ps1
.
That should at least get you by that specific error.
@Choco786 that helped me get to the next error :) thanks for the assist
@drewmullen
device manager
:
Hi, i can see you don’t have any Virtual Display Driver. Please see the steps at
https://github.com/LeGeRyChEeSe/Sunshine-AIO#virtual-display-driver and make sure to correctly disable
the driver after you installed it. (not uninstall
)
@Choco786
So you need to run the Unblock-File cmdlet on the ps scripts you downloaded from the sunshine-virtual-monitor repo. For you, it's probably something like: Unblock-File C:\Users\dmwin\Setup\sunshine-virtual-monitor-main\setup_sunvdm.ps1 and Unblock-File C:\Users\dmwin\Setup\sunshine-virtual-monitor-main\teardown_sunvdm.ps1.
Thank you for the info, i'll add up this command to the guide. I forgot to mention it.
@LeGeRyChEeSe
Hi, i can see you don’t have any Virtual Display Driver. Please see the steps at https://github.com/LeGeRyChEeSe/Sunshine-AIO#virtual-display-driver and make sure to correctly
disable
the driver after you installed it. (notuninstall
)
Good catch. Not sure what happened because i definitely did that... maybe it just failed to install the first time?
This morning when I added the driver it DID take and it took over my screen - might be a good idea to add a note about this possibility... all I had to do was boot into safe mode, disable the driver, and restart
thanks for the guide. i ran into another issue but ill open another GH issue to not distract from this one
@drewmullen I'm developing an all-in-one script to install everything correctly, so I prefer to focus on that for now since that was the number one goal of the repository.
Amazing guide! I am getting this error whenever I try to connect though. Hoping maybe I've jsut got a spelling mistake or something?
[2024:08:21:19:33:08]: Error: [cmd /C powershell.exe -File C:\Users\natha\Documents\sunshine-virtual-monitor-main\setup_sunvdm.ps1 %SUNSHINE_CLIENT_WIDTH% %SUNSHINE_CLIENT_HEIGHT% %SUNSHINE_CLIENT_FPS% %SUNSHINE_CLIENT_HDR% > C:\Users\natha\Documents\sunshine-virtual-monitor-main\sunvdm.log 2>&1] failed with code [1]
Longer logs: