Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Getting Access Denied message from Server

$
0
0

I am trying to execute the powershell script to get the contact details from Active directory from a remote machine that is outside the domain.

From the  XP machine [Client-Workgroup machine] with Powershell version 2.0 ,I am trying to connect a machine in the domain which is Windows Server 2008 R2[Server - It is in Domain] with Powershell version 2.0.

In both machine  I have started winrm service and trusted all the IP address for remote execution.

But when I tried to create the session from the client machine I am getting the Access Denied message.

Command Executed in Server Powershell Command window

cd wswan:

cd localhost\client

Enable-PSRemoting

Set-Item TrustedHosts *

Restart=Service WinRM

Command Executed in Client Powershell Command window

cd wswan:

cd localhost\client

Enable-PSRemoting

Set-Item TrustedHosts *

Restart=Service WinRM

New-PSSession -ComputerName 10.1.1.219 -Credential development\sthangaraj

It prompts for Password Once I give the password and Enter I am getting access denied message

+PSRemotingTransportException

+PSSessionOpenFailed


Viewing all articles
Browse latest Browse all 6937

Trending Articles