553 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
0
answers
100
views
How to setup a Remote PowerShell using WSManConnectionInfo in C# using Certificate Authentication?
I am trying to create a Remote PowerShell (RPS) that will form connection between machines to execute RPS Commands. I have this following example setup "HostPC with C# console application (that ...
0
votes
2
answers
217
views
How can I use Invoke-Command with WSMan in PowerShell 7 if "Powershell.7" endpoint does not exist?
I'm trying to run a remote command using Invoke-Command over WSMan in PowerShell on my local machine.
Here’s my test script:
$server = 'localhost'
Invoke-Command -Authentication Negotiate -...
0
votes
0
answers
39
views
Azure Flex Powershell function PSWSMan not working
I am trying to use Azure Flex powershell function to execute remote WinRM scripts. It is working in windows based consumption function. But I want to see if this works from flex which is linux based. ...
1
vote
0
answers
53
views
Can't start a remote elevated PSSession to a stand alone host
We're developing a Windows application environment on EC2s. There is a Bastion host that will be used for configuration tasks using PSSessions to run scripts on remote machines. This was built in an ...
0
votes
1
answer
193
views
WinRM Certificate Authentication Fails with 401 Error on Windows Server 2022
I'm encountering an issue with WinRM certificate authentication on a Windows Server 2022 CIS STIGs image. The server is running the WinRM service, and I'm trying to connect from an Ubuntu Pro 20.04 ...
0
votes
1
answer
77
views
Issue with Running Docker Compose on Windows via Ansible from Ubuntu
I am trying to manage a Windows machine from Ubuntu using Ansible. I am able to successfully transfer my target files, including Docker Compose files, to the Windows machine. However, when I try to ...
0
votes
1
answer
1k
views
How do I set up WinRM for Windows 2025 Server with Packer? Waiting for WinRM to become available
I am trying to create an AMI of a windows server using packer following this repo, however it seems like its using an older version of windows server which doesnt seem to work. How can I create a ...
0
votes
1
answer
129
views
PowerShell - Running a script on a remote server using WinRM
I have the following script:
$job = Invoke-Command -ComputerName $hostname -ScriptBlock {powershell.exe -ExecutionPolicy Bypass -File $using:localScriptPath -InstallApproved} -AsJob -Credential $...
0
votes
1
answer
1k
views
How can I update certificates on winrm when there are two HTTPS listeners?
I have two HTTPS listeners (One Compatibility) on winrm as follows:
Listener
Address = *
Transport = HTTPS
Port = 5986
Hostname = <hostname here>
Enabled = true
URLPrefix ...
0
votes
1
answer
95
views
The rundeck is unable to execute powershell script with import-module or unable to find the module to the target server
The rundeck is unable to execute powershell script with import-module even I install the 'Microsoft.Online.SharePoint.PowerShell' module in the target server.
[ERROR ] Execution finished with the ...
0
votes
0
answers
75
views
How to get WinRM setup on a DevTest Lab machine
I would like to provision an Azure DTL Windows Server 2019 Datacenter machine using an ARM template. I have the template for it and it works fine - no problem there. The problem is that I also would ...
0
votes
1
answer
525
views
PyWinRm credentials getting rejected from doing windows to windows connection
I am using PyWinRm on my windows machine to connect to a remote host using Kerberos. In our environment we use pywinrm on our linux machines to run PowerShell commands all the time using Kerberos. The ...
0
votes
2
answers
946
views
List all WinRM listeners with property support
winrm e winrm/config/listener
Will list all listener, but displayed in string format. Like this :
Listener
Address = *
Transport = HTTPS
Port = 5986
Hostname
Enabled = true
...
1
vote
0
answers
268
views
Why is it so slowly while transferring files from windows through WinRM by using python?
I'm using python + winrm to get files from a windows server. The code runs fine but slowly. It can only get about 10GB per day by this way.
If I copy files through remote desktop(mstsc.exe or Other ...
1
vote
0
answers
171
views
Ansible connection to windows server error 403
I'm trying to execute a playbook from Ansible Tower that will do some things on a windows server and as a first task it 'gathering facts' and it is already failing at that point with error code 403.
...