I'm in the process of learning powershell (no admin background either, I've just stumbled across it whilst studying Python and thought it was interesting), and I'm completely stuck on remoting.
I'm trying to remote from my Desktop computer("DAVE-PC") to my laptop("DAVE").
- They have a connection (Test-Connection cmdlet)
- Toth computers have "DAVE" AND "DAVE-PC" in their trusted hosts lists.
- Remoting enabled on both computers
:
PS C:\> get-item WSMan:\localhost\Client\TrustedHosts
WSManConfig: Microsoft.WSMan.Management\WSMan::localhost\Client
Type Name SourceOfValue Value
---- ---- ------------- -----
System.String TrustedHosts DAVE-PC, DAVE
PS C:\> Enter-PSSession -ComputerName DAVE -Credential Administrator
At this point, I'm prompted for a password, which I do not know:
Enter-PSSession : Connecting to remote server DAVE failed with the following error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:1
+ Enter-PSSession -ComputerName DAVE -Credential administrator
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (DAVE:String) [Enter-PSSession], PSRemotingTransportException
+ FullyQualifiedErrorId : CreateRemoteRunspaceFailed
What are my options now to get remoting up and running?
Google seems to suggest I run a few scripts to change the password?
I've attempted to follow methods suggested in this link with no luck: Cannot create remote powershell session after Enable-PSRemoting. I'm really not confident I know what I'm doing though as you might expect.