This file contains hidden or 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
# Define the directory to search for CSV files | |
$directory = "/Path/To/Your/CSVs" | |
# Define the old column name and the new column name | |
$oldColumnName = "middle_name" | |
$newColumnName = "fiddle_name" | |
# Get all CSV files in the directory | |
$csvFiles = Get-ChildItem -Path $directory -Filter *.csv -Recurse |
This file contains hidden or 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
# Get Devices from Group | |
$groupID = '61842933b54406680ae461aa' | |
$groupMembers = Get-JcSdkSystemGroupMember -GroupId $groupID | |
# Inactivity Threshold in days | |
$inactivityPeriod = 30 | |
$currentTime = [Xml.XmlConvert]::ToString((get-date), [Xml.XmlDateTimeSerializationMode]::Utc) | |
# If system is inactive greater than the inactivity period, remove from group | |
foreach ($system in $groupMembers) { |
This file contains hidden or 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
################################################################################ | |
# This script requires the JumpCloud PowerShell Module to run. Specifically, the | |
# JumpCloud PowerShell SDK Modules are required to run the system queries. To | |
# install the PowerShell Modules, enter the following line in a PWSH terminal: | |
# Install-Module JumpCloud | |
# | |
# This script will search for systems and add them to system groups if they are | |
# not currently members of that group. It is intended to group systems by OS. | |
# | |
# This script can be run multiple times. As systems are added to JumpCloud, they |
This file contains hidden or 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
function Get-JcLoginEvent | |
{ | |
[CmdletBinding()] | |
param ( | |
[Parameter(HelpMessage = "Set to true to print the number of users who would have been suspend, this will not suspend users")] | |
[switch] | |
$ReadOnly = $false, | |
[Parameter(Mandatory = $true, HelpMessage = "Path to the CSV file. If no such CSV file exists, it will be created. If the CSV file does exist, it will be updated.")] | |
[string] | |
$CsvPath, |
This file contains hidden or 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
################################################################################ | |
# This script requires the JumpCloud PowerShell Module to run. Specifically, the | |
# JumpCloud PowerShell SDK Modules are required to run the system queries. To | |
# install the PowerShell Modules, enter the following line in a PWSH terminal: | |
# Install-Module JumpCloud | |
# | |
# To run this script, update the 'SoftwareTitle' to search for a software title | |
# match in the system insights tables. Optionally edit the group name variables | |
# if you would like to change the group names. | |
# |
This file contains hidden or 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
# JumpCloud API Key | |
$JcApiKey = '' | |
#check csv for duplicate rows per system | |
$CSV = "C:\Windows\Temp\admu_discovery.csv" | |
$Rows = Import-CSV -Path $CSV | |
$counts = $Rows | Group-Object ComputerName | |
foreach ($i in $counts) | |
{ | |
if ($i.count -gt 1) |
This file contains hidden or 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
#!/bin/bash | |
################################################################################ | |
# This script will the latest version of Mobile to Local and prompt the current | |
# user to enter their password. This script can be run from the JumpCloud | |
# command console but will wait for user input before before marking the script | |
# complete in the results window. | |
# Refer to https://github.com/BIG-RAT/mobile_to_local for tool usage | |
################################################################################ |
This file contains hidden or 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
#!/bin/bash | |
################################################################################ | |
# This script will pull the provisionerID from the JumpCloud console and rename | |
# the specified user account to the matching username in JumpCloud. This script | |
# will not rename or remap the user's home directory. | |
################################################################################ | |
# Variables |
This file contains hidden or 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
################################################################################ | |
# For every system with a provisionerID, if acknowledged is false, add to the | |
# systemGroup "BeforeRename". | |
################################################################################ | |
# Powershell script to run locally as new systems are added | |
# Variables | |
# BeforeRename System GroupID | |
$beforeRenameGroupID = 'replaceWithBeforeGroupID' | |
# After account rename group |
This file contains hidden or 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
################################################################################ | |
# This script will pull the provisionerID from the JumpCloud console and rename | |
# the specified user account to the matching username in JumpCloud. This script | |
# will not rename or remap the user's home directory. | |
################################################################################ | |
# Variables | |
# User to match and rename (case insensitive) | |
$UserToRename='oyo' |
NewerOlder