I want remotely to change login screen for a couple of laptops. I manage to do everything beside copy the image from my PC to the target PC.
All the laptops have setup of the fallowing
Enable-PSRemoting -Force
set-item wsman:\localhost\Client\TrustedHosts -Value 192.168.10.10
Restart-service WinRM
I have try to enable CredSSP to perform the copy-item
command, but it seems to work only on PowerShell v3.0 or I miss configured something for Powershell v2.0
To make this work on v2.0 I have to manually enter Enable-WSManCredSSP -role server
on my target computer (the client role does not seems to work like in v3.0)
On v3.0 I make this possible by the following commands
$cred = Get-Credential
Invoke-Command -ScriptBlock { Enable-WSManCredSSP -Role Client -DelegateComputer * } -ComputerName 192.168.10.12 -Credential $cred
And I get
Do you want to enable CredSSP authentication?
[Y] Yes [N] No [?] Help (default is "Y"): y
Access is denied.
+ CategoryInfo : InvalidOperation: (System.String[]:String[]) [Enable-WSManCredSSP], InvalidOperationExce ption
+ FullyQualifiedErrorId : WsManError,Microsoft.WSMan.Management.EnableWSManCredSSPCommand
+ PSComputerName : 192.168.30.81
But if I try that on windows 8 with Powershell v3.0 it does the command without giving me Access Denied. If there is any other way to do the task on PowerShell v2.0 its still relevent for me.