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
| #!/usr/bin/osascript | |
| -- License: https://justinpawela.github.io/default-gist-license/ | |
| (* | |
| 1) Disables signing in as Guest from the login screen. | |
| 2) Disables Guest access to file shares over AFP. | |
| 3) Disables Guest access to file shares over SMB. | |
| Commands are chained together so that the user only needs to authorize once. | |
| *) |
This file has been truncated, but you can view the full file.
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
| @echo off | |
| :: https://privacy.sexy — v0.13.3 — Fri, 17 May 2024 10:49:45 GMT | |
| :: Ensure admin privileges | |
| fltmc >nul 2>&1 || ( | |
| echo Administrator privileges are required. | |
| PowerShell Start -Verb RunAs '%0' 2> nul || ( | |
| echo Right-click on the script and select "Run as administrator". | |
| pause & exit 1 | |
| ) | |
| exit 0 |