Installed WMF 5 production preview on Windows 2012 server and now I cannot reach the server using remoting (was working prior to the upgrade):
Enter-PSSession -Computername The_Server
Enter-PSSession : The term ‘Measure-Object’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
Invoke-Command {gwmi win32_bios} -cn The_Server
The term ‘Get-WmiObject’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and
try again.
+ CategoryInfo : ObjectNotFound: (Get-WmiObject:String) , CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
+ PSComputerName : The_Server
Prior to the upgrade to WMF 5 I was unable to create workflow sessions (getting access denied), was hoping this might resolve that but it’s just caused more problems :).
Have been searching the event logs and not found anything useful as yet, have checked out about_Remote_Troubleshooting, restarted server, disabled and re-enabled remoting, no obvious difference between the setup between a working server wsman config and this broken one.
Wondering if there is a way to rebuild the PS session configuration or something.
PSRemoting works across my entire domain except for one machine, our MS Dynamics CRM server. For reasons I have yet to determine I can remote into that machine by IP address, but not by any variations on name. So you may want to give that a try.
I have this same issue, and get the same error returns
that Aaron received. The one thing I wanted to add
to help is that I can remote to Windows 7 Pro, and Windows 8.1 Pro machines just fine, it is only when I try to remote to Windows 10 Enterprise machines that this error happens.
Had the same issue. Fixed it by checking what PSModulePath is set to on Machine Level. It has UNC path specified which is known to break bunch of stuff. Removed it and it works fine now.
I updated another 2012 server to PS5 and grumbled as had same issue and came searching for a fix again.
I’ve got an smb powershell repository (aka file shares) that works great. I put in the UNC paths in the machine environmentals to make it easier for colleagues to get access.
Kinda sucks cause its very useful, wonder if it’s worth lodging as a bug or if its by design for some kind of security reasons.