# Define the name or IP address of the target machine $targetMachine = "surfaits" # Enable Remote Assistance on the target machine Invoke-Command -ComputerName $targetMachine -ScriptBlock { # Enable Remote Assistance Enable-RemoteAssistance -Force }