Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Reset PHPStrom License Key
rm -rf ~/.config/JetBrains/*
rm -rf ~/.local/share/JetBrains/consentOptions
rm -rf ~/.java/.userPrefs
@echo off
REM Delete eval folder with licence key and options.xml which contains a reference to it
for %%I in ("WebStorm", "IntelliJ", "CLion", "Rider", "GoLand", "PhpStorm", "Resharper", "PyCharm") do (
for /d %%a in ("%APPDATA%\JetBrains\%%I*") do (
rd /s /q "%%a/eval"
del /q "%%a\options\other.xml"
)
)
reg delete "HKEY_CURRENT_USER\SOFTWARE\JavaSoft\Prefs\jetbrains" /f
#!/bin/bash
echo "removing evaluation key"
rm ~/.IntelliJIdea15/config/eval/idea15.evaluation.key
# for mac go to: /Users/username/Library/Preferences/IntelliJIdea2016.3/eval/idea163.evaluation.key
echo "resetting evalsprt in options.xml"
sed -i '/evlsprt/d' ~/.IntelliJIdea15/config/options/options.xml
# for mac go to: /Users/lzhoucs/Library/Preferences/IntelliJIdea2016.3/options/options.xml
echo "resetting evalsprt in prefs.xml"
sed -i '/evlsprt/d' ~/.java/.userPrefs/prefs.xml
# for windows, delete HKEY_CURRENT_USER\Software\JavaSoft\Prefs\jetbrains\idea
# for mac
defaults delete com.apple.java.util.prefs 2> /dev/null
for f in ~/Library/Preferences/jetbrains.*.plist; do
if [[ -f $f ]]; then
fn=${f##*/}; key=${fn%.plist}
echo delete $key from pref and file $f
defaults delete "${fn%.plist}" 2>/dev/null && rm "$f"
fi
done
Then reg delete "HKEY_CURRENT_USER\Software\JavaSoft\Prefs\jetbrains\idea" /f
1- Open Registry Editor
2- HKEY_CURRENT_USER\SOFTWARE\JavaSoft\Prefs\jetbrains
3- Delete the PHPStorm that is there.
@shakibdshy

This comment has been minimized.

Copy link

@shakibdshy shakibdshy commented Mar 10, 2021

Thanks for sharing

@KirinyetBrian

This comment has been minimized.

Copy link

@KirinyetBrian KirinyetBrian commented Mar 11, 2021

thanks for this

@Anil86

This comment has been minimized.

Copy link

@Anil86 Anil86 commented Mar 17, 2021

Thank you. Now I'm able to use PyCharm & DataGrip after resetting evaluation.

@Xaxage

This comment has been minimized.

Copy link

@Xaxage Xaxage commented Apr 12, 2021

What do i have to do with this code ?

@shahadul878

This comment has been minimized.

Copy link
Owner Author

@shahadul878 shahadul878 commented Apr 14, 2021

What do i have to do with this code ?

Open notepad => copy this code on notepad and save file as reset.bat

@abuabrar

This comment has been minimized.

Copy link

@abuabrar abuabrar commented May 7, 2021

Hello
Where do I save the file?

@shahadul878

This comment has been minimized.

Copy link
Owner Author

@shahadul878 shahadul878 commented May 7, 2021

Hello
Where do I save the file?

Save It on desktop

@Acron85

This comment has been minimized.

Copy link

@Acron85 Acron85 commented May 11, 2021

It works. Thanks!

@lisovskyi

This comment has been minimized.

Copy link

@lisovskyi lisovskyi commented May 13, 2021

Oh, man!! Ty!!!

@NightSling

This comment has been minimized.

Copy link

@NightSling NightSling commented May 13, 2021

linux please?

@KirinyetBrian

This comment has been minimized.

Copy link

@KirinyetBrian KirinyetBrian commented May 17, 2021

@RSiniavski

This comment has been minimized.

Copy link

@RSiniavski RSiniavski commented May 18, 2021

successfully reseted but after about 5 mins of using IDE i got message about expired eval. period, but in help menu eval period untill 17 june

@shahadul878

This comment has been minimized.

Copy link
Owner Author

@shahadul878 shahadul878 commented May 20, 2021

successfully reseted but after about 5 mins of using IDE i got message about expired eval. period, but in help menu eval period untill 17 june

Sent Me Screenshot

@projectwork1947

This comment has been minimized.

Copy link

@projectwork1947 projectwork1947 commented May 24, 2021

Works like charm, thank you

@marcosdipaolo

This comment has been minimized.

Copy link

@marcosdipaolo marcosdipaolo commented May 27, 2021

So for Ubuntu I only have to run?:

rm -rf ~/.config/JetBrains/*
rm -rf ~/.local/share/JetBrains/consentOptions
rm -rf ~/.java/.userPrefs

In that case, is there a way i don't loose my theme, font and keymap settings?

@marcosdipaolo

This comment has been minimized.

Copy link

@marcosdipaolo marcosdipaolo commented May 27, 2021

Edit:
For ubuntu run:

rm -rf ~/.config/JetBrains/WebStorm2021.1/eval
rm ~/.config/JetBrains/WebStorm2021.1/options/other.xml
rm -rf ~/.local/share/JetBrains/consentOptions
rm -rf ~/.java/..userPrefs
@bagheriali2001

This comment has been minimized.

Copy link

@bagheriali2001 bagheriali2001 commented May 31, 2021

successfully reseted but after about 5 mins of using IDE i got message about expired eval. period, but in help menu eval period untill 17 june

it happened to me too did you find any solution? @shahadul878

@ezehkingsleyuchenna

This comment has been minimized.

Copy link

@ezehkingsleyuchenna ezehkingsleyuchenna commented Jun 3, 2021

I'm using EAP Edition.
1- Open Registry Editor
2- HKEY_CURRENT_USER\SOFTWARE\JavaSoft\Prefs\jetbrains
3- Delete the PHPStorm that is there.
Worked for me.

@k1paris

This comment has been minimized.

Copy link

@k1paris k1paris commented Jun 4, 2021

@marcosdipaolo

This comment has been minimized.

Copy link

@marcosdipaolo marcosdipaolo commented Jun 10, 2021

Edit:
For ubuntu run:

rm -rf ~/.config/JetBrains/WebStorm2021.1/eval
rm ~/.config/JetBrains/WebStorm2021.1/options/other.xml
rm -rf ~/.local/share/JetBrains/consentOptions
rm -rf ~/.java/..userPrefs

Does this work for 2021.1.2? just asking before downloading

@josuedjh3

This comment has been minimized.

Copy link

@josuedjh3 josuedjh3 commented Jun 13, 2021

I'm using EAP Edition.
1- Open Registry Editor
2- HKEY_CURRENT_USER\SOFTWARE\JavaSoft\Prefs\jetbrains
3- Delete the PHPStorm that is there.
Worked for me.

gracias.

@andreonis

This comment has been minimized.

Copy link

@andreonis andreonis commented Jun 14, 2021

successfully reseted but after about 5 mins of using IDE i got message about expired eval. period, but in help menu eval period untill 17 june

it happened to me too did you find any solution? @shahadul878

@bagheriali2001 Have you found the solution?

@shahadul878

This comment has been minimized.

Copy link
Owner Author

@shahadul878 shahadul878 commented Jun 14, 2021

Edit:
For ubuntu run:

rm -rf ~/.config/JetBrains/WebStorm2021.1/eval
rm ~/.config/JetBrains/WebStorm2021.1/options/other.xml
rm -rf ~/.local/share/JetBrains/consentOptions
rm -rf ~/.java/..userPrefs

Does this work for 2021.1.2? just asking before downloading

Yes It's working

@shahadul878

This comment has been minimized.

Copy link
Owner Author

@shahadul878 shahadul878 commented Jun 14, 2021

successfully reseted but after about 5 mins of using IDE i got message about expired eval. period, but in help menu eval period untill 17 june

it happened to me too did you find any solution? @shahadul878

1- Open Registry Editor
2- HKEY_CURRENT_USER\SOFTWARE\JavaSoft\Prefs\jetbrains
3- Delete the PHPStorm that is there.

@shahadul878

This comment has been minimized.

Copy link
Owner Author

@shahadul878 shahadul878 commented Jun 14, 2021

successfully reseted but after about 5 mins of using IDE i got message about expired eval. period, but in help menu eval period untill 17 june

it happened to me too did you find any solution? @shahadul878

@bagheriali2001 Have you found the solution?

1- Open Registry Editor
2- HKEY_CURRENT_USER\SOFTWARE\JavaSoft\Prefs\jetbrains
3- Delete the PHPStorm that is there.

@shahadul878

This comment has been minimized.

Copy link
Owner Author

@shahadul878 shahadul878 commented Jun 14, 2021

successfully reseted but after about 5 mins of using IDE i got message about expired eval. period, but in help menu eval period untill 17 june

1- Open Registry Editor
2- HKEY_CURRENT_USER\SOFTWARE\JavaSoft\Prefs\jetbrains
3- Delete the PHPStorm that is there.

@congueror

This comment has been minimized.

Copy link

@congueror congueror commented Jun 25, 2021

Using Intellij 2021.1 and running this didn't work(I get the message about expired eval), the file can neither find a other.xml file nor a phpstorm in the registry. Here's the console output: D:\MyDocuments\Desktop>renew.bat The system cannot find the file specified. Could Not Find C:\Users\User\AppData\Roaming\JetBrains\IntelliJIdea2021.1\options\other.xml ERROR: The system was unable to find the specified registry key or value., I did go to the registry editor myself and there is no phpstorm. I used this before and it worked but now it doesn't seem to work.
note: on windows 10

@SuperCatss

This comment has been minimized.

Copy link

@SuperCatss SuperCatss commented Jun 29, 2021

It does not work normally for Resharper 2021.1.3 On windows 10.

@areoid

This comment has been minimized.

Copy link

@areoid areoid commented Jul 28, 2021

Edit:
For ubuntu run:

rm -rf ~/.config/JetBrains/WebStorm2021.1/eval
rm ~/.config/JetBrains/WebStorm2021.1/options/other.xml
rm -rf ~/.local/share/JetBrains/consentOptions
rm -rf ~/.java/..userPrefs

it works!

@Kevmatrix

This comment has been minimized.

Copy link

@Kevmatrix Kevmatrix commented Jul 29, 2021

Using Intellij 2021.1 and running this didn't work(I get the message about expired eval), the file can neither find a other.xml file nor a phpstorm in the registry. Here's the console output: D:\MyDocuments\Desktop>renew.bat The system cannot find the file specified. Could Not Find C:\Users\User\AppData\Roaming\JetBrains\IntelliJIdea2021.1\options\other.xml ERROR: The system was unable to find the specified registry key or value., I did go to the registry editor myself and there is no phpstorm. I used this before and it worked but now it doesn't seem to work.
note: on windows 10

Same here. It worked fine but now it doesn't.

EDIT: I tried uninstalling WebStorm (select DELETE SETTINGS AND CACHE in the uninstaller), I deleted the Prefs folder in regedit, I deleted JetBrains' folder in AppData/Roaming (basically I deleted every trace of JetBrains software both in the registry and in my files), and then I redownloaded the WebStorm 2021.2 installer and installed it again.
I lost all my settings but it seems to be working.

@t04a

This comment has been minimized.

Copy link

@t04a t04a commented Aug 27, 2021

Thank you!

@radud

This comment has been minimized.

Copy link

@radud radud commented Sep 30, 2021

Edit:
For ubuntu run:

rm -rf ~/.config/JetBrains/WebStorm2021.1/eval
rm ~/.config/JetBrains/WebStorm2021.1/options/other.xml
rm -rf ~/.local/share/JetBrains/consentOptions
rm -rf ~/.java/..userPrefs

Does this work for 2021.1.2? just asking before downloading

It does not work for 2021 versions.

@marcosdipaolo

This comment has been minimized.

Copy link

@marcosdipaolo marcosdipaolo commented Oct 7, 2021

Just realized the eval reset plugin is available for all jetbrains apps. Just add the plugin repo https://plugins.zhile.io and download the IDE Eval Reset plugin. Then go to the help menu, and click Eval Reset, and at the bottom right corner click Reset and thats it, you restart and the 30 days eval period is reset

@dev-techguy

This comment has been minimized.

Copy link

@dev-techguy dev-techguy commented Oct 20, 2021

Just realized the eval reset plugin is available for all jetbrains apps. Just add the plugin repo https://plugins.zhile.io and download the IDE Eval Reset plugin. Then go to the help menu, and click Eval Reset, and at the bottom right corner click Reset and thats it, you restart and the 30 days eval period is reset

Great

@asupreme1337

This comment has been minimized.

Copy link

@asupreme1337 asupreme1337 commented Oct 26, 2021

Just realized the eval reset plugin is available for all jetbrains apps. Just add the plugin repo https://plugins.zhile.io and download the IDE Eval Reset plugin. Then go to the help menu, and click Eval Reset, and at the bottom right corner click Reset and thats it, you restart and the 30 days eval period is reset

Wow, thank you so much! We'll find out in a month how this plugin works 😄

@Slach

This comment has been minimized.

Copy link

@Slach Slach commented Nov 5, 2021

@marcosdipaolo
latest versions doesn't have eval folder and need to Login for activation
image

@Kevmatrix

This comment has been minimized.

Copy link

@Kevmatrix Kevmatrix commented Nov 9, 2021

@marcosdipaolo latest versions doesn't have eval folder and need to Login for activation image

What can we do, now? Do you know the latest version that doesn't require login for the trial?

@Jorelows

This comment has been minimized.

Copy link

@Jorelows Jorelows commented Nov 12, 2021

@marcosdipaolo latest versions doesn't have eval folder and need to Login for activation image

What can we do, now? Do you know the latest version that doesn't require login for the trial?

You can use this page to create new accounts, like i did for my DataGrip
https://temp-mail.org/es/

You can create accounts on jetbrains and you will get free 30 every time or you can downgrade your version for example my version without login was 2021.1.3 insteadof 2021.2.4 requieres log in

@trongcong

This comment has been minimized.

Copy link

@trongcong trongcong commented Nov 16, 2021

reset trial period JetBrains IDEs: https://git.io/J1GnU

@marcosdipaolo

This comment has been minimized.

Copy link

@marcosdipaolo marcosdipaolo commented Nov 17, 2021

No, you just run the lines

rm -rf ~/.config/JetBrains/WebStorm2021.1/eval
rm ~/.config/JetBrains/WebStorm2021.1/options/other.xml
rm -rf ~/.local/share/JetBrains/consentOptions
rm -rf ~/.java/..userPrefs

and you'¡ll be able to sart and update eval reset

@ArtMin96

This comment has been minimized.

Copy link

@ArtMin96 ArtMin96 commented Nov 21, 2021

No, you just run the lines

rm -rf ~/.config/JetBrains/WebStorm2021.1/eval
rm ~/.config/JetBrains/WebStorm2021.1/options/other.xml
rm -rf ~/.local/share/JetBrains/consentOptions
rm -rf ~/.java/..userPrefs

and you'¡ll be able to sart and update eval reset

But it is connected to your account and even if you delete those files it will still see phpstorm will see that your 30 days are expired.

@Jorelows

This comment has been minimized.

Copy link

@Jorelows Jorelows commented Nov 22, 2021

@ArtMin96 @Kevmatrix Guys please, don't break your heads thinking, latest version requires an account to get a trial version you can't do anything about it

For example my DataGrip oldest version without login was 2021.1.3 (on this version the scrip works like a charm)

But my new version 2021.2.4 requieres log in (i was on shock when i update my DataGrip)

i'm starting my new 30 days using a new account and i will doing it as long as they don't create new methods to limit the evaluation

You guy have two options

  1. Create new account using https://temp-mail.org/es/ every time
  2. You can downgrade your version and use the script for windows or linux

Simple

@the-liquid-metal

This comment has been minimized.

Copy link

@the-liquid-metal the-liquid-metal commented Nov 26, 2021

You guy have two options

1. Create new account using https://temp-mail.org/es/ every time

jetbrain can detect it as disposable email service and refuse to create account.

.
2. You can downgrade your version and use the script for windows or linux

not an option for ever changing language.

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