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
LVL 1
defreyAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

oBdACommented:
You didn't tell Set-Item to what to concatenate the current value of TrustedHosts with.
The -Value argument got lost in the page, but is still visible in the screenshot: http://www.vkernel.ro/blog/wp-content/uploads/2013/01/Add-2012-Servers-to-Server-Manager-19.gif
Set-Item -Path wsman:\localhost\Client\TrustedHosts -Value ServerName -Concatenate -Force

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
defreyAuthor Commented:
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
oBdACommented:
You need to run this from an elevated PS console.
defreyAuthor Commented:
There is always something :-)

Thanks, it worked!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Powershell

From novice to tech pro — start learning today.