Questions tagged [powershell-remoting]

The ability to create a remote connection, in an other way than using WMI, is the most important difference between PowerShell v 1.0 and 2.0.

Host applications can use a PowerShell object to run commands that use WS-Management-based Windows PowerShell remoting to create a temporary or persistent connection to the remote computer. This includes establishing an interactive session with a single remote computer.

1238 questions
2
votes
2 answers

Unable to connect to live@edu through PowerShell

I am trying to connect to live@edu using PowerShell with the following command. $SessionNew = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://pod51002psh.outlook.com/powershell Error: [pod51002psh.outlook.com]…
user669277
  • 21
  • 1
2
votes
1 answer

CNAMES, hostfiles and PowerShell Remoting

Has anybody gotten powershell remoting to work against CNAMES or host files. a way to test, create a PSsession against localhost to make sure its working fine... then have a host record to 127.0.0.1 called something, then try to create a pssession…
klumsy
  • 4,081
  • 5
  • 32
  • 42
2
votes
2 answers

PowerShell remote connection problems

I’m trying to implement PowerShell remoting (for PowerShell script execution on a remote server). My remote server is running Windows Server 2008 and PowerShell v2. From an elevated permission PS console, I have executed the following…
The Furious Bear
  • 592
  • 4
  • 16
  • 31
2
votes
1 answer

WinRM connectivity issue?

I am trying to have a Enter-PSSession with a Company server with in the company network. I can RDC to the server, ping the server and also get the Windows Services status using Get-Service -ComputerName DBServer. However, WinRM session does not…
2
votes
1 answer

Wildcards in VisibleExternalCommands not working in PSSessionConfiguration

I am trying to use wildcards like "c:\scripts\*.ps1" in VisibleExternalCommands for New-PSSessionConfigurationFile and the resulting .pssc file looks fine, but cannot get it to work as expected and the documentation is weak here. I can only make…
tholesen
  • 460
  • 5
  • 10
2
votes
0 answers

TFS Deploy Agent run remote powershell issue

We have a script language application. I'm wanting to have CI deployment on the dev server. I set up a the deploy definition in TFS to have a step Run Powershell on Remote Machine. However running into failure that I can't figure out. I've already…
yruan
  • 51
  • 1
  • 1
  • 3
2
votes
1 answer

new-pssession in scheduled job

I want to write script that enables mail forwarding for some user on exchange server and turn it off at specified time. But when $script_bloc executes in job: New-PSSession returns null without any error. I can pass to New-PSSession hardcoded…
2
votes
2 answers

Connect to sql server via transitional computer issue, login failed for NT AUTHORITY\ANONYMOUS LOGON

I have SQL Server 2008 to which I can connect using domain user credentials. There are many computers in the network and if I login under that domain user I can successfully connect to SQL Server (using Windows Authentication). The problem is when I…
Roman
  • 4,531
  • 10
  • 40
  • 69
2
votes
2 answers

Why would a get-process -computername return a couldn't connect to remote machine error?

I can execute the following command on a specific machine and it can return a list of processes on several target computers but returns a "Couldn't connect to remote machine" error on one machine. get-process -ComputerName 192.168.1.101 None of the…
user599084
  • 171
  • 1
  • 2
  • 7
2
votes
1 answer

Enabling Enable-PSRemoting on Powershell 1.0

This is in relation to http://www.computerperformance.co.uk/powershell/powershell_remote.htm . Currently, most of the machines in my Test environment are on Powershell 1.0. Under such a scenario, is there a way by which I can still manage to make…
Oshin
  • 55
  • 1
  • 7
2
votes
1 answer

How to install "Powershell" on freebsd?

I'm trying to install powershell on FreeBSD,but I couldn't find any powershell library for FreeBSD.
2
votes
1 answer

Formatting Output with Invoke-Command

I'm trying to format my output to look like so PSComputerName Value -------------- ------ Computer1 Restricted Computer2 Unrestricted Computer3 Unrestricted This is my code the variable $computers points…
Katz
  • 826
  • 3
  • 19
  • 40
2
votes
0 answers

computerName parameter doesn't always work

I'm trying to get the services on a remote server. When I run the command: get-service -ComputerName server I get the following error: get-service : Cannot open Service Control Manager on computer 'server'. This operation might require other…
Quint van Dijk
  • 303
  • 2
  • 12
2
votes
1 answer

Get-Service unable to open service control manager

I have a function that checks for the status of a particular service on a remote machine. When I try to get the service status using Get-Service -ComputerName RemoteServer, I get following error. Get-Service : Cannot open Service Control Manager on…
ragesh_tr
  • 21
  • 1
  • 2
2
votes
1 answer

Unable to pull images from docker hub

I'm trying to automate things. I have a PowerShell script which will launch the Amazon instance and install docker.i'm able to login to Docker login but unable to pull images. When I do it from Windows PowerShell command line it works just fine but…
syndy1989
  • 403
  • 10
  • 25