Questions tagged [powershell]

PowerShell is a command line and scripting utility for use with Windows.

Filter by
Sorted by
Tagged with
8
votes
2answers
1k views

Ansible sporadic errors with Windows machines

I'm running into some on and off issues when using windows hosts in my Ansible playbooks. I'm running Ansible 2.3 with pywinrm 0.2.2 installed. I'm using basic authentication with the local ...
7
votes
2answers
507 views

Application to run PowerShell scripts

I've created a number of scripts in PowerShell that require a number of parameters to be manually entered. Unfortunately, until we have our Jenkins server setup to support these additional tasks I ...
5
votes
2answers
2k views

How to automate Powershell's interactive Get-Credential method?

I am trying to write a python script which automates the powershell's Get-Credential method. Here is something i wrote: import subprocess COMMAND_LINE = 'powershell' powershell = subprocess.Popen(...
3
votes
1answer
35 views

I'm trying to run `vagrant provision` on PowerShell Window for Ansible playbook

Here is what it replies: Windows is not officially supported for the Ansible Control Machine. Please check https://docs.ansible.com/intro_installation.html#control-machine-requirements What should I ...
3
votes
1answer
353 views

Why is my build script only failing when it is run in a vNext build?

I am running a build process on an on-prem server with TFS 2017 and vNext. The build works, but it takes 20+ minutes. This is an application that does msbuild, ngc, yarn, and karma. I would be totally ...
2
votes
1answer
5k views

Configure Docker to use SSL for a private registry on Windows 10?

Trying to use a customer registry from a Windows 10 system - a native Docker client in PowerShell. PS > docker --version Docker version 17.06.0-ce, build 02c1287 PS > docker pull REPO_URL/...
2
votes
2answers
2k views

Powershell script in jenkins is hanging

I'm building a process to automate deploys using Jenkins and I have an issue getting the code on the server I have a powershell script on the deploy server that all it does is do an hg update command....
1
vote
4answers
94 views

Why will my container run in Docker, but will not run in Kubernetes?

Background I have a container that I have defined with an CMD and an ENTRYPOINT in Docker. When I run the following command my container runs with no issues whatsoever. docker run --rm -ti custom-...
1
vote
1answer
31 views

Stop Multiple Windows Service Simultaneously

I have multiple windows service and there are no dependencies between them. I want to stop all the windows services at the same time. I don't want to stop all the services one by one. How can I ...
1
vote
1answer
266 views

Azure Powershell DSC or Ansible

I wanted to find out what are you using for Desired State Configuration on your end. I am thinking to start introducing Azure Powershell DSC or Ansible for DSC of our on-prem environment and cloud ...
1
vote
1answer
148 views

How to pass variables between build/deploy tasks in a TaskGroup in VSTS 16.131.28601.4

I have a multi-configuration web application I'm using parallel deployments, leveraging Task Groups for reusing my deployment code. I've been using Powershell tasks and the ##vso[task.setvariable ...
1
vote
0answers
845 views

Running a powershell script via Jenkins on a Linux host [closed]

I have a powershell script cloned into my workspace from a bitbucket repository. If I login to the Jenkins server cli I can run it by doing cd /var/lib/jenkins/workspace/powershell pwsh ./psscript....
1
vote
0answers
40 views

VSO Release launch published exe [closed]

I have hosted VSO build agents building our exe and that pipeline setup. I am trying to deploy the produced exe to a dev testing environment. I have a deployment group set up and the files are being ...
0
votes
1answer
67 views

Problem with Vagrant : Nothing happens on vagrant up command

Versions Vagrant: 1.9.5 Provider: Virtualbox 5.2.30 Guest: precise32 Host: windows 7 -32bit, build:7600 Powershell: 2.0 Vagrant destroy & up output nothing happens here...just an empty directory ...
0
votes
0answers
54 views

How to execute kubectl command against an Azure Kubernetes Service (aks) resource using Azure Automation PowerShell Runbooks?

I would like to execute a kubectl command against an AKS resource using an Azure Automation Runbook. There doesn't seem to be any documentation on how to do this. The reason I'm using Azure ...