add Attrib scripts to v2.0

This commit is contained in:
Purple
2025-02-05 15:26:04 +00:00
parent 25f5e702c1
commit 71584a338d
2 changed files with 70 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
#!/bin/bash
####################################################################################################
#
# ******
# *...../ / ******
# ************** *****/ *****/*****/***/*************/ ****** /**********
# ******/..*****/ *****/ *****/********//******/ ,*****/******,***** ,*****/
# *****/ ***** *****/ *****/*****/ *****/ /**************************
# *******//*****/ *************/*****/ *********************/*******./*/* ())
# ************* ******/*****/*****/ *****/******/. ****** ********** (()))
# *****/ *****/ ())
# *****/ *****/
#
# ATTENTION - DISCLAIMER
# YOU USE THIS SCRIPT AT YOUR OWN RISK. THE SCRIPT IS PROVIDED FOR USE “AS IS” WITHOUT WARRANTY OF
# ANY KIND. TO THE MAXIMUM EXTENT PERMITTED BY LAW PURPLE COMPUTING DISCLAIMS ALL WARRANTIES OF ANY
# KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, WITHOUT LIMITATION, IMPLIED WARRANTIES OR CONDITIONS
# OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. PURPLE COMPUTING CANNOT
# BE HELD LIABLE FOR DAMAGES CAUSED BY THE EXECUTION OF THIS CODE.
#
####################################################################################################
# check-tailscale-auth-present.sh SCMv
# Last Updated by Michael Tanner, 05/02/2025
####################################################################################################
## Attribute Name: Tailscale Automatic Authentication
## Attribute Unique ID: ts_auto_auth
## For Execute command: Immediately when saving the profile, upon assignment, or based on schedule or events
## For Event Tick: Every start up of the Mac, Every user sign-in, Every "Device Info" update
#####################################################################################################
# Check if the profile with the specific Payload Identifier exists
if profiles list | grep -q "com.purplecomputing.mdm.tailscale.authkey"; then
echo "Auth Profile Present"
else
echo "Auth Profile Not Found"
fi

View File

@@ -0,0 +1,35 @@
#!/bin/bash
####################################################################################################
#
# ******
# *...../ / ******
# ************** *****/ *****/*****/***/*************/ ****** /**********
# ******/..*****/ *****/ *****/********//******/ ,*****/******,***** ,*****/
# *****/ ***** *****/ *****/*****/ *****/ /**************************
# *******//*****/ *************/*****/ *********************/*******./*/* ())
# ************* ******/*****/*****/ *****/******/. ****** ********** (()))
# *****/ *****/ ())
# *****/ *****/
#
# ATTENTION - DISCLAIMER
# YOU USE THIS SCRIPT AT YOUR OWN RISK. THE SCRIPT IS PROVIDED FOR USE “AS IS” WITHOUT WARRANTY OF
# ANY KIND. TO THE MAXIMUM EXTENT PERMITTED BY LAW PURPLE COMPUTING DISCLAIMS ALL WARRANTIES OF ANY
# KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, WITHOUT LIMITATION, IMPLIED WARRANTIES OR CONDITIONS
# OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. PURPLE COMPUTING CANNOT
# BE HELD LIABLE FOR DAMAGES CAUSED BY THE EXECUTION OF THIS CODE.
#
####################################################################################################
# check-tailscale-settings-present.sh SCMv
# Last Updated by Michael Tanner, 05/02/2025
####################################################################################################
## Attribute Name: Tailscale Automatic Configuration
## Attribute Unique ID: ts_auto_config
## For Execute command: Immediately when saving the profile, upon assignment, or based on schedule or events
## For Event Tick: Every start up of the Mac, Every user sign-in, Every "Device Info" update
#####################################################################################################
# Check if the profile with the specific Payload Identifier exists
if profiles list | grep -q "com.purplecomputing.mdm.tailscale"; then
echo "Config Profile Present"
else
echo "Config Profile Not Found"
fi