Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
| function Create-NewLocalAdmin { | |
| [CmdletBinding()] | |
| param ( | |
| [String] $NewLocalAdmin, | |
| [SecureString] $Password | |
| ) | |
| begin { | |
| } | |
| process { | |
| New-LocalUser "$NewLocalAdmin" -Password $Password -FullName "$NewLocalAdmin" -Description "Temporary local admin" |
| # else | |
| # export EDITOR='mvim' | |
| # fi | |
| # Compilation flags | |
| # export ARCHFLAGS="-arch x86_64" | |
| # ssh | |
| # export SSH_KEY_PATH="~/.ssh/rsa_id" |
| # This script uses the PSPAS Module: https://github.com/pspete/psPAS | |
| # It reads a csv file and adds the AppID to a safe with the required permissions | |
| # csv file format: | |
| #Safe,Application | |
| #<safeName>,<appID> | |
| #<safeName>,<appID> | |
| # Set BaseURL for CyberArk REST Endpoint | |
| BASEURL = "____" | |
| CSVPATH = "____" |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
| #### #### | |
| ## ## | |
| # This script will call the CCP using client certificate authentication # | |
| # You will be prompted for the pfx file password # | |
| ## ## | |
| #### #### | |
| # Declare Variables | |
| $BASEURL="___" #example: "https://pvwa.cyberark.com" | |
| $SAFE="___" #CyberArk Safe name |
| #### #### | |
| ## ## | |
| # This script will call the CCP using client certificate authentication # | |
| # Pulls the cert from the local user/personal store. No PW needed # | |
| ## ## | |
| #### #### | |
| # Declare Variables | |
| $BASEURL="___" #example: "https://pvwa.cyberark.com" | |
| $SAFE="___" #CyberArk Safe name |