@ Phazor Paymyrent was also able to get 4 rearms without restarting but he had to use one rearm to clear out of the notification mode or install a legit key (OEM or his token restore).
Script to create a scheduled task to rearm every 29 days. Save and run this script as administrator. Code: @echo off SET file=%windir%/system32/rearm.bat echo @echo off >%file% echo cscript //nologo slmgr /rearm >>%file% echo shutdown -r -t 90 /c "The rearm command was completed successfully. Windows will restart in 90 seconds" >>%file% schtasks /create /tn "Rearm" /tr %file% /sc daily /mo 29 /RL HIGHEST pause
Yeah, but if it's run as the current user it's also visible to them. Running as SYSTEM logs on as a different user and makes it invisible. It's just a better way of doing it
Run this from PE. It will remove the WPA key and add a runonce entry to install the key. Code: reg load HKLM\MY_SYSTEM "%~dp0Windows\System32\config\system" reg delete HKLM\MY_SYSTEM\WPA /f reg unload HKLM\MY_SYSTEM reg load HKLM\MY_SOFTWARE "%~dp0Windows\System32\config\software" reg add HKLM\MY_SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce /v InstallKey /t REG_SZ /d C:\installkey.bat reg unload HKLM\MY_SOFTWARE Place your installkey.bat in C: drive to make it run properly. This combines two of your scripts. The last one to create a rearm task needs to be run only once. The rearm task automatically restarts the system in 90 seconds, it gives you time to save whatever you are doing.
So the first smaller PE run file is like the delwpa.bat from page one but it relates to the second one run in windows right? So all we have is the two .bat files and then directions. I can't write the directions though until I understand the process better so I'm going to think this over and see if I can understand it better ok I think I'm confused what to name both files and where to put both .bat files? Also is this rearm task to run or be executed whether or not computer is on or will the task run even though it might be days after programmed task is to run normally? Are we skipping any notification of 4 rearm after the within windows as admin file is executed? And I see you asked me to put a file in C: drive but can we add a script to do that? It sucks for me to have very little code skills but my mind still comes up with ideas for the program and I was wondering if the script could first put necessary .bat files where they need to be then automatically restart then in PE find the files to execute then back in windows just do one .bat file as admin and that would be it including window verification of 4 rearm and initial trial, rearm task...? Forgive me if I'm asking many questions, I'm just trying to participate as good as my abilities allow me Thanks for the interest in this idea that some have been working with off and on. I'm supprised there isn't more response based interest in this method but O-well...lol I'm interested as you can see...lol Thanks again
You only need to run installTask.bat in post#30, that makes it a single bat file. As for instructions, To reset rearm count, Boot from the Installation DVD Press Shift+F10 to launch CMD Prompt. Type D:\reset.bat and press enter. Reboot your system. When the scheduled task is run automatically, it will rearm and give you around 90 seconds to save your current work before it restarts your system. To delete files created by installTask.bat use the following batch file. removeTask.bat Code: @echo off SET file=%SystemDrive%\reset.bat IF EXIST %file% attrib -h %file% del %file% SET file=%SystemDrive%\installkey.bat IF EXIST %file% attrib -h %file% del %file% SET file=%windir%\system32\rearm.bat IF EXIST %file% attrib -h %file% del %file% schtasks /delete /tn "Rearm" /f pause
I almost got what your saying MasterDisaster 1. We've changed from clicking F8 at boot to booting from DVD. I set the boot order to DVD but it goes by it to restart even when I click esc key and set to DVD. I turn off and reboot and still no boot from disk Repair option. 2. I've tried clicking F10 + shift but not sure when to do it exactly...lol 3. Why did we change putting the main .bat file in C:\ to D:\...? The task gets created fine from within windows and the removeTask.bat works fine I like the simple instructions I just need a little clarity please Thanks again MasterDisaster
Try changing the boot order in the BIOS settings. Shift + F10 is a keyboard shortcut to bring up the CMD prompt. You need to press it at the Language selection screen itself. After you have completed executing reset.bat, close the Language setting dialog. It will ask you to quit installation and press yes to reboot. If you have the System Reserved partition, the OS partition becomes D: otherwise the OS partition is C: This can be done from the Installation DVD (WinPE) or the Recovery Environment (WinRE), I prefer the WinPE way. If you use the WinRE, you can know which drive the OS is installed by looking at the Recovery Console dialog If you use the WinPE, you need to know beforehand whether you have a 100 MB partition or not.
I have made a mistake by using foward slash instead of using backslash in file names. I have corrected the errors in both installTask and removeTask. Try booting from USB.