diff --git a/PowerShell/JumpCloud Commands Gallery/Mac Commands/Mac - Set Auto Logout Delay.md b/PowerShell/JumpCloud Commands Gallery/Mac Commands/Mac - Set Auto Logout Delay.md index 554c1c9fd..084470549 100644 --- a/PowerShell/JumpCloud Commands Gallery/Mac Commands/Mac - Set Auto Logout Delay.md +++ b/PowerShell/JumpCloud Commands Gallery/Mac Commands/Mac - Set Auto Logout Delay.md @@ -1,6 +1,6 @@ #### Name -Mac - Set Auto Logout Delay | v1.0 JCCG +Mac - Set Auto Logout Delay | v1.0 JCCG 123312123 #### commandType diff --git a/PowerShell/JumpCloud Commands Gallery/commands.json b/PowerShell/JumpCloud Commands Gallery/commands.json index 55747d442..723c613bb 100644 --- a/PowerShell/JumpCloud Commands Gallery/commands.json +++ b/PowerShell/JumpCloud Commands Gallery/commands.json @@ -217,7 +217,7 @@ "description": "This command will set the JumpCloud Agent Log Level to Trace. The log level can be set to trace by setting the `setLevel=\"DEBUG\"` variable to `setLevel=\"TRACE\"` After the command is run, a launchDaemon is triggered which loads a second script to set the log Level. That second script restarts the JumpCloud Agent and removes the launchDaemon and deletes itself. The launchDameon: com.jumpcloud.agentlogdefault.plist will be unloaded on system restart." }, { - "name": "Mac - Set Auto Logout Delay | v1.0 JCCG", + "name": "Mac - Set Auto Logout Delay | v1.0 JCCG 123312123", "type": "mac", "command": "# Update the AutoLogOutDelay Variable\n# This variable is defined in seconds by displayed as a minutes in System Preferences\n# The minimum number of minutes this payload can take is 5 minutes (300 seconds)\n# The maximum value this payload can take is 60 minutes (3600 seconds)\n# To disable this setting set the value to 0\n\nAutoLogOutDelay='300'\n\n#------- Do not modify below this line ------\n\nif [ \"$AutoLogOutDelay\" -ge 300 -a \"$AutoLogOutDelay\" -le 3600 ]; then\n echo \"Enabing AutoLogOutDelay\"\nelif [ \"$AutoLogOutDelay\" -eq 0 ]; then\n echo \"Disabling AutoLogOutDelay\"\nelse echo \"$AutoLogOutDelay is not a valid value. Set AutoLogOutDelay to a number between 300 and 3600 or 0 to disable\" exit 2; fi\n\nsudo defaults write /Library/Preferences/.GlobalPreferences.plist com.apple.autologout.AutoLogOutDelay -int $AutoLogOutDelay\nsleep 2\nsudo defaults read /Library/Preferences/.GlobalPreferences.plist com.apple.autologout.AutoLogOutDelay", "link": "https://github.com/TheJumpCloud/support/blob/master/PowerShell/JumpCloud%20Commands%20Gallery/Mac%20Commands/Mac%20-%20Set%20Auto%20Logout%20Delay.md",