I have question about regedit, when i add file to autostart using powershell:
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run /v WindowsRTCP /d “C:\Windows\SomeFile.exe” /f
Default it’s disabled in TaskManager/Startup
How can i enable it from powershell?
If you don’t have administrative rights you cannot write to the LOCAL_MACHINE hive. And you cannot enable it by Powershell because you would need to have administrative rights for it. But you can always write to the CURRENT_USER hive if you want to.