This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## NOTE: Adapted from https://github.com/tziegmann ## | |
## McAfee-IsManaged ## | |
isManaged=`sudo /Library/McAfee/agent/bin/cmdagent -i | grep GUID | cut -c 7-43` | |
if [ $isManaged != "N/A" ] ; | |
then | |
result="Managed" | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## SIP-STATUS ## | |
csrutil status | awk '{print toupper($5)}' | sed 's/\.//g' | |
## OS-MINORBUILDVERSION ## | |
/usr/bin/sw_vers -buildVersion | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## WORD-VERSION ## | |
if [ -x "/Applications/Microsoft Word.app" ]; then /usr/bin/defaults read /Applications/Microsoft\ Word.app/Contents/Info.plist CFBundleShortVersionString ; else echo "0.0"; fi | |
## EXCEL-VERSION ## | |
if [ -x "/Applications/Microsoft Excel.app" ]; then /usr/bin/defaults read /Applications/Microsoft\ Excel.app/Contents/Info.plist CFBundleShortVersionString ; else echo "0.0"; fi | |
## ONENOTE-VERSION ## | |
if [ -x "/Applications/Microsoft OneNote.app" ]; then /usr/bin/defaults read /Applications/Microsoft\ OneNote.app/Contents/Info.plist CFBundleShortVersionString ; else echo "0.0"; fi | |
## POWERPOINT-VERSION ## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VMware vRealize Orchestrator action sample | |
// | |
// Removes a string from an array of strings by value. | |
// Does not account for duplicate values in the array. | |
// | |
//Action Inputs: | |
// aStrings - Array/String | |
// toRemove - String | |
// | |
//Return type: Array/String |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2017, VMware, Inc. All Rights Reserved | |
// | |
// VMware vRealize Orchestrator action sample | |
// | |
// Finds a vCAC:VirtualMachine object corresponding to a VC:VirtualMachine object. | |
// | |
// | |
//Action Inputs: | |
// vm - VC:VirtualMachine | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2016, VMware, Inc. All Rights Reserved | |
// | |
// VMware vRealize Orchestrator action sample | |
// | |
// Email Base64 encoded PDF file from Orchestrator | |
// | |
// This sample takes a base64 encoded PDF from a web service and attaches | |
// it to an email message with vRealize Orchestrator. | |
// | |
// Currently this sample requires enabling local process execution. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2016, VMware, Inc. All Rights Reserved | |
// | |
// VMware vRealize Orchestrator action sample | |
// | |
// Given a Managed Object Reference Id of a DistributedVirtualPortgroup | |
// (ex: dvportgroup-714) return the VC:DistributedVirtualPortgroup object. | |
// | |
//Action Inputs: | |
// id - string | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2016, VMware, Inc. All Rights Reserved | |
// | |
// VMware vRealize Orchestrator action sample | |
// | |
// Decodes the 'Product Name' and 'Product Version' from a vSphere license string. | |
// Also does some basic license key format validation | |
// | |
//Action Inputs: | |
// vCenterConnection - VC:SdkConnection | |
// licenseKey - string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################################## | |
# Synopsis: Set the Host Decommission Mode on all hosts in a cluster | |
# Author: Greg Mulholland | |
# Version: 1.0 | |
# Disclaimer: This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY | |
$message = write-host "This script will set the Host Decommission Mode to be used when entering Maintenance Mode." -fore cyan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Fetches a https certificate from a url and | |
# returns the SHA1 thumbprint of the certificate with PowerShell | |
# | |
#example uri: https://vcenterhost.corp.local:443 | |
#returns something similar to: EF:FF:EB:D5:F8:89:89:1E:96:A3:6D:05:D9:D6:1B:45:23:DB:9B:3C | |
# | |
param([parameter(Mandatory=$true)][uri]$uri) |
NewerOlder