power shell command to for "enable-psremoting -force" on a remote machine
hi,
i want use "enable-psremoting -force" via powershell on remote machine.
i've tried following
invoke-command -computername $compname -credential $compcred -scriptblock {enable-psremoting -force} but doesnt work.
is possible? cmdlet needed?
greetings
that can't work, because invoke-command requires psremoting in first place. have run command (with elevated priveliges) locally on target machine.
grant ward, a.k.a. bigteddy
Windows Server > Windows PowerShell
Comments
Post a Comment