@(setlocal enableextensions enabledelayedexpansion
echo off
set "Node1=Node1"
set "Node2=Node2"
set "Node3=Node3"
set "Cluster=Cluster1"
set LOGFILE=C:\BatchLog.log
)
CALL:Main >> %LOGFILE% 2>&1
( ENDLOCAL
CALL :END
…
I am trying to setup a Jenkins slave on a separate Windows 10 machine. The master runs on windows 8.1. slave.jar is being executed with a command on the master. I do this using winrs: winrs -r:192.168.xxx.xxx -u:MyUserName -p:MyPassword java -jar…
$_sourcepath = '\\servername\DriveLetter$\folder\file.zip'
$_destinationPath = 'D:\Temp\file.zip'
Copy-Item -Path $_sourcepath -Destination $_destinationPath;
My PowerShell script is run using WinRS in MSBuilds. It throws…
i had this issue for days now. Done and researched everything pertaining to executing a powershell script on your local machine using winrm.
My goal is to execute these ps1 scripts from my local to a target remote machine. winrm is already…
I am trying to add the WinRs support using the publically available ARM Template
I get the following error
Changing property 'windowsConfiguration.winRM.listeners' is not allowed
Then I tried using the powershell script mentioned in this…
I'm creating some PowerShell code to open a command prompt on a remote machine. This works fine but I can't seem to find a way to set the title of that window, so you can see that you're connected to the remote client.
$ComputerName =…
I'm trying to call WinRS for some of our automated scripts. I've run into an issue when attempting to pass a password with spaces for the -p argument.
For example,
winrs http://server:5985 -p:my password -u:user dir
fails with the…