CompTIA PenTest+ PT0-001 – Question03

A penetration tester has compromised a Windows server and is attempting to achieve persistence. Which of the following would achieve that goal?

schtasks.exe /create/tr powershell.exe Sv.ps1 /run
B. net session server | dsquery -user | net use c$
C. powershell && set-executionpolicy unrestricted
D. reg save HKLMSystemCurrentControlSetServicesSv.reg

Section: CompTIA PenTest+ Certification PT0-001

Correct Answer: D