Hi everyone!
I've always been a fan of the Powershell even though it's a touch intimidating ... despite this my Google-fu usually allows me to get around most roadblocks.
Today however I cannot seem to make this work, and I think I finally need to step back and defer to the experts :)
I run an office with Windows PC's (HP Laptops) running Windows 8 or 8.1. There's no fancy network structures - I've just got a Cisco 48-port switch in between my router and all my desks (with proper CAT5 wiring, of course).
Each laptop in use in this office has three users: "CompanyName Administrator", "CompanyName Training User", and "CompanyName 00 (UserName)" where 00 is the "Unit Number" of the PC (ranging from 01 to 60). Each PC's "Name" is CompanyName00, ranging from 01 to 60.
I would like to use Powershell and PSSession to be able to execute remote commands on these machines from my desk when necessary. Most of the time this would be used to simply give me the ability to remotely kill and reset an application that we use that has a tendency to hang (and I get sent ZenDesk tickets about it all the time).
So far, I've been reading the ScriptCenter's about_Remote_Troubleshooting document and the "Running Remote Commands" document. I've run enable-psremoting on my PC and the test PC (My PC is unit 34, the test PC is unit 45), I've set the TrustedHosts to * (allowing all hosts), and I've also tried to fiddle with Set-PSSessionConfiguration -ShowSecurityDescriptorUI -Name Microsoft.PowerShell so that my specific username is present (aside from simply "Administrators" and "Remote Management Users".
The string I am using to attempt to connect now is:
enter-pssession CompanyName45 -Credential "CompanyName Administrator"
That pops up a credentials window which asks me for a password, which I supply. Then I am greeted with:
enter-pssession: Connecting to remote server CompanyName45 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
+ ~~~~~~~~~
+ CategoryInfo : InvalidArgument: (CompanyName45:String) [Enter-PSSession], PSRemotingTransportException
+ FullyQualifiedErrorID : CreateRemoteRunspaceFailed
I even tried to use the machine's IP address (192.168.0.10), which failed with the same error.
I feel like there's something major that I haven't set, like a domain host user or something like that, because the "Credentials" ask for domain/user, and I haven't specified a domain. I don't even have one - this is totally local, the machine is sitting right next to me!
Any help you guys can give is much appreciated and I thank you for reading all of this. <3