Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #to run cemu as admin simply run this script as admin
- $CemuPath = "$PSScriptRoot/Cemu.exe" #!!! CHANGE PATH TO CEMU EXE or run from cemu folder!!!
- $GLCachePath = "$env:USERPROFILE\AppData\Local\AMD\GLCache" #Path to AMD GLCache Folder
- #deny write
- $Acl = Get-ACL $GLCachePath
- $AccessRule= New-Object System.Security.AccessControl.FileSystemAccessRule("everyone","Write","ContainerInherit,Objectinherit","none","Deny")
- $Acl.AddAccessRule($AccessRule)
- Set-Acl $GLCachePath $Acl
- Start-Process $CemuPath -NoNewWindow -Wait
- #remove deny
- $Acl.RemoveAccessRule($AccessRule)
- Set-Acl $GLCachePath $Acl
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement