• rtxn@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    9 months ago

    No, it really is super simple, just:

    Set-HostElevatedPrivilege -SubstituteUser Administrator -Privilege [Microsoft.Automation.HostPrivilege]::new("Administrators", $(hostname)) -Credential $(Get-Credential) -Command "ping 1.1.1.1"