Skip to content

Instantly share code, notes, and snippets.

@tuannha95
Last active July 11, 2022 19:28
Show Gist options
  • Save tuannha95/622bf8b2faccd8247ab6963d579fe777 to your computer and use it in GitHub Desktop.
Save tuannha95/622bf8b2faccd8247ab6963d579fe777 to your computer and use it in GitHub Desktop.
Reset Parallels' trial
#!/bin/bash
#comment this line to exec Without sudo command
[ "$EUID" -ne 0 ] && echo -e "Please run as root \n\$> sudo bash $0" && exit
# for somme files you don't have the correct Permission, this fix that (you can do that with chown to)
chmod a+w ~/library/preferences/com.parallels*
chmod a+w ~/library/preferences/parallels/*
chmod a+w ~/library/preferences/parallels
chmod a+w /private/var/db/parallels/stats/*
chmod a+w /private/var/db/parallels/stats
chmod a+w /private/var/db/parallels
chmod a+w /library/logs/parallels.log
chmod a+w /library/preferences/parallels/*
chmod a+w /library/preferences/parallels
chmod a+w /private/var/db/parallels
chmod a+w /private/var/.parallels_swap
chmod a+w /private/var/db/receipts/'com.parallels*'
chmod a+w /private/tmp/qtsingleapp-*-lockfile
chmod a+w /private/tmp/com.apple.installer*/*
chmod a+w /private/tmp/com.apple.installer*
chmod a+w /private/var/root/library/preferences/com.parallels.desktop.plist
chmod a+w ~/Library/Logs/parallels.log
chmod a+w /Library/Preferences/Parallels/
chmod a+w ~/Library/Preferences/Parallels
chmod a+w /private/var/.Parallels_swap
chmod a+w /private/var/db/Parallels/Stats
chmod a+w /private/tmp/qtsingleapp-Parall-c0ce-0-lockfile
chmod a+w ~/Library/Preferences/com.parallels
# now let's rm that :)
rm -rfd ~/library/preferences/com.parallels*
rm -rfd ~/library/preferences/parallels/*
rm -rfd ~/library/preferences/parallels
rm -rfd /private/var/db/parallels/stats/*
rm -rfd /private/var/db/parallels/stats
rm -rfd /private/var/db/parallels
rm -rfd /library/logs/parallels.log
rm -rfd /library/preferences/parallels/*
rm -rfd /library/preferences/parallels
rm -rfd /private/var/db/parallels
rm -rfd /private/var/.parallels_swap
rm -rfd /private/var/db/receipts/'com.parallels*'
rm -rfd /private/tmp/qtsingleapp-*-lockfile
rm -rfd /private/tmp/com.apple.installer*/*
rm -rfd /private/tmp/com.apple.installer*
rm -rfd /private/var/root/library/preferences/com.parallels.desktop.plist
rm -rf ~/Library/Logs/parallels.log
rm -rf /Library/Preferences/Parallels/
rm -rf ~/Library/Preferences/Parallels
rm -rf /private/var/.Parallels_swap
rm -rf /private/var/db/Parallels/Stats
rm -rf /private/tmp/qtsingleapp-Parall-c0ce-0-lockfile
rm -rf ~/Library/Preferences/com.parallels
jot -w rand%d@gmail.com -r 2 #generate random mail
jot -r -c 32 45 123 | tr -dc 'A-Za-z0-9-_' | fold -w 16 | head -n 1 # generate random password
@TheBonnec
Copy link

Sadly it's not working for me :(

@guess13wh0
Copy link

not work ( maybe they started memory devices
We cannot offer you a new trial because a trial period has already been requested from this Mac. The previous trial has expired.
To continue using Parallels Desktop, please purchase an activation key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment