You have to do this before your grace period is over.
eg, 1-2 days before it activation is required.
Steps:
1. Open a command prompt.
2. Copy and Paste the following into the command prompt.
rundll32.exe syssetup,SetupOobeBnk3. Launch Event Viewer (from Administrative Tools in Control Panel). Click on "Application". You will see 1 entry called "Windows Product Activation".
4. Double click on that entry and you will see this "Your Windows product has not been activated with Microsoft yet. Please use the Product Activation Wizard within 30 days. ".
5. Now you have another 30 days of grace period again.
You can repeat this process when the 30 days is ending again. However, you can only do this for 3 times. After that, this method will not work.