Tag Info

New answers tagged

0

Azure Automation runbooks are just PowerShell Workflows, which can be run locally on your machine as well. The only thing special about runbooks compared to PowerShell Workflows is in runbooks you can use the "Automation activities" (Get-AutomationVariable, Get-AutomationPSCredential, etc). We don't have a blog post about this out for Azure Automation yet, ...


3

To execute a script on a server using ssh is simple, something like: cat script.sh | ssh someserver However, you probably do not want to execute the same script on every server. You will need another script to read your users.txt and from that file create script files for each line in users.txt before calling ssh with a newly created script as input. You ...


0

You cannot hash a password in order to later use that hash to login, as you cannot retrieve the original value (hashing is a one-way function). The thing you are searching for is encryption. As the knife.rb is just a ruby file, you can also read the password from an environment variable (that you have to set once after starting the terminal session): ...


4

In short, you are wanting to build a template. On your maintenance schedule, convert it to a virtual machine, boot the new virtual machine, run sudo yum -y update ; sudo shutdown -h now. Once it is down, convert back to a template from a live VM. Since you have configuration management already in-place, you would simply build a new VM matching the ...


0

If you need to supply a password and use ssl you can do something like this. #!/bin/bash -e USER=$1 MYPASSWORD=$2 IRC_SERVER=$3 IRC_PORT=$4 CHANNEL=$5 MSG=$6 ( echo NICK $USER echo USER $USER 8 * : $USER sleep 1 echo PASS $USER:$MYPASSWORD echo "JOIN $CHANNEL" echo "PRIVMSG $CHANNEL" $MSG echo QUIT ) | ncat --ssl $IRC_SERVER $IRC_PORT The script should ...


0

After testing this, it seems that your script should have more mandatory parameters - Add-VpnConnection won't accept just the parameters passed with just your enforced ($Client). When running the "minimal set", the return asks for further details. Add-VpnConnection -Name "Test Name" -AuthenticationMethod MSChapv2 -SplitTunneling -AllUserConnection cmdlet ...


1

You may do better to build a Powershell DSC to enforce this policy, and apply that to the newly built server instances. Based on my readings of http://technet.microsoft.com/en-us/library/dd939844(v=ws.10).aspx, it looks like you could solve this with: WindowsAutoUpdate Policy { Node localhost { Registry EnableSilentUpdates { ...



Top 50 recent answers are included