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

Popular posts from this blog

2008 Windows Deployment Server Properties Error

Can no longer user MS Update - Files required to use Microsoft Update are no longer registered

How do a find data in one file, search for it in another file and if not found, write a custom message to another file