Skip to content

Instantly share code, notes, and snippets.

@privacysexy-forks
privacysexy-forks / DisableGuestAccount.applescript
Created January 12, 2025 19:58 — forked from justinpawela/DisableGuestAccount.applescript
Disable macOS Guest user account script
#!/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.
*)
@privacysexy-forks
privacysexy-forks / privacy-script.bat
Created May 17, 2024 11:01
privacysexy-0.13.3-windows-all
This file has been truncated, but you can view the full file.
@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