Connect to a Computer with Powershell in our Workgroup


hello together,

as mentioned in title struggling establishing connection client in our workgroup.

what i've done far:

1) enable ps remoting

enable-psremoting 

2) computer have had at least 1 nic marked "public network", thus, "enable-psremoting" couldnt run sucessfully.

$nlmtype = [type]::gettypefromclsid(‘dcb00c01-570f-4a9b-8d69-199fdba5723b’) 
$inetworklistmanager = [activator]::createinstance($nlmtype)

$nlm_enum_network_connected  = 1
$nlm_network_category_public = 0x00
$nlm_network_category_private = 0x01
$unidentified = "unidentified network"

$inetworks = $inetworklistmanager.getnetworks($nlm_enum_network_connected)

foreach ($inetwork in $inetworks)
{
    $name = $inetwork.getname()
    $category = $inetwork.getcategory()

    if ($inetwork.isconnected -and ($category -eq $nlm_network_category_public) -and ($name -eq $unidentified))
    {
        $inetwork.setcategory($nlm_network_category_private)
    }
}

3) allow connection client in workgroup (executed on client connect):

set-item wsman:\localhost\client\trustedhosts *

4) start attempt establish session:

enter-pssession pc-33

as result receive following error message:

enter-pssession : connecting remote server failed following error message : access denied. more info rmation, see about_remote_troubleshooting topic.

any guesses cause behavior? :)

i tried this:

for credentials i used administrator account its appropriate password.

$cred = get-credential  invoke-command [someipadress] {$env:computername} -credential $cred

thanks & regards


regards / freundliche grüsse powershell junior







hi junior !

follow walk thrue!:

http://rkeithhill.wordpress.com/2009/05/02/powershell-v2-remoting-on-workgroup-joined-computers-%e2%80%93-yes-it-can-be-done/

or this:

http://blogs.msdn.com/b/wmi/archive/2009/07/24/powershell-remoting-between-two-workgroup-machines.aspx

even ravikanth chaganti ebook discribes topic:
ebook: layman’s guide powershell 2.0 remoting
http://www.ravichaganti.com/blog/?p=1305


please click “mark answer” if post answers question , click vote help if post helps you.
bitte markiere hilfreiche beiträge von mir als hilfreich und beiträge die deine frage ganz oder teilweise beantwortet haben als antwort.
powershell blog http://www.admin-source.info
[string](0..21|%{[char][int]([int]("{0:d}" -f 0x28)+('755964655967-86965747271757624-8796158066061').substring(($_*2),2))})-replace' '




Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Group Policy Event ID 1058 Error Code 1326 (The user name or password is incorrect)

Suspicious event log Event ID: 4905

DCOM received error "2147746132" from...