Link to home
Start Free TrialLog in
Avatar of defrey
defreyFlag for Australia

asked on

PowerShell error ( -Concatenate -Force)

Hi,

I have just installed the RSAT on a Windows 8.1.
To be able to managed servers, I had to add the following ps command to Windows 8:

 "Set-Item wsman:\localhost\Client\TrustedHosts  -Concatenate -Force"

This command returns an error, & I have no clue why it is wrong, the error is:

"Set-Item : This command cannot be used because the parameter Value is not supplied. Check the value again and run your command"

I have followed by the letter 2 differents tutorials, could you please help?

One of the tutorial is:
http://www.vkernel.ro/blog/add-windows-2012-servers-to-server-manager

Thanks
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of defrey

ASKER

still no luck!!!

here my line:


Set-Item wsman:\localhost\Client\TrustedHosts pcname-Concatenate -Force

error is:

Set-Item access is denied

Any ideas?

Thanks
Avatar of oBdA
oBdA

You need to run this from an elevated PS console.
Avatar of defrey

ASKER

There is always something :-)

Thanks, it worked!