Sziasztok,
Harom darab tavoli Win8 gepet hasznalok, egyikrol kerdezem le a masik kettot.
A Client-en beallitom a Set-WsManQuickConfig -ot SkipNetworkProfileCheck-es kapcsoloval,
belovom az Auth/Basic -et es az AllowUnencrypted -et is -Value true -ra,
majd a TrustedHosts -ot is az osszekonkatenalt IP-kkel (vesszovel elvalasztva)
majd a Servive-en
Set-WsManQuickConfig -Skip..
Enable-PSRemoting -Skip..
es meg az Auth/Basic -et is hagyja true -ra allitani, ellenben az AllowUnEncrypted -re a kovetkezot dobja
Set-Item : WinRM firewall exception will not work since one of the network connection types on this machine is set to P
ublic. Change the network connection type to either Domain or Private and try again.
At C:\Users\32193\desktop\Set-Service.ps1:6 char:1
+ Set-Item wsman:/localhost/service/AllowUnEncrypted -Value true -Force
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Set-Item], InvalidOperationException
+ FullyQualifiedErrorId : System.InvalidOperationException,Microsoft.PowerShell.Commands.SetItemCommand
ezzel meg annyi a baj, hogy utana a Test-WsMan is elszall Auth Basic-re, hiaba adok meg neki credential-t, majd a Get-WsManInstance is, pedig annak is atadom a credential-t. A hibauzenet pedig emliti, hogy az a baja, hogy a Service oldalakon nincs engedelyezve az Unencrypted forgalom.
(A gepek latjak egymast, ha siman hivok test-wsman-t, akkor kapo vissza adatot, csak a get-wsmaninstance nem megy, mert
get-wsmaninstance : Access is denied.
At line:1 char:1
+ get-wsmaninstance cimv2/cim_process?__cimnamespace=ROOT/cimv2 -computername $ip ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Get-WSManInstance], UnauthorizedAccessException
+ FullyQualifiedErrorId : Exception,Microsoft.WSMan.Management.GetWSManInstanceCommand
get-wsmaninstance : <f:WSManFault xmlns:f="http://schemas.microsoft.com/wbem/wsman/1/wsmanfault" Code="5" Machine="win8
1-base"><f:Message>Access is denied. </f:Message></f:WSManFault>
At line:1 char:1
+ get-wsmaninstance cimv2/cim_process?__cimnamespace=ROOT/cimv2 -computername $ip ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (cimv2/cim_proce...pace=ROOT/cimv2:Uri) [Get-WSManInstance], InvalidOp
erationException
+ FullyQualifiedErrorId : WsManError,Microsoft.WSMan.Management.GetWSManInstanceCommand
-al elszall, majd ha -Authentication Basic -Credential $cred -el probalom akkor
teljes parancs
get-wsmaninstance cimv2/cim_process?__cimnamespace=ROOT/cimv2 -computername $ip -enumerate -a
uthentication Basic -credential $cred
ahol:
$passwd = ConvertTo-SecureString "xyZpassWd" -asPlainText -Force
$cred = new-object -typename System.Management.Automation.PSCredential -argumentList $username, $passwd
(Amennyiben nem hasznalok Authentication-t, es a Get-WsManInstance helyett a Get-CIMInstance-t hasznalom, akkor megy a lekerdezes Win8 es Win8 kozott..)
Mind3 gep Remote, egyik sem a sajatom.
Nagyon koszonom elore is a valaszt