Code: @echo off echo Activating Windows 7... cscript //nologo "%windir%\system32\slmgr.vbs" /ipk MHFPT-8C8M2-V9488-FGM44-2C9T3 cscript //nologo "%windir%\system32\slmgr.vbs" /ilc "%~dp0HP.xrm-ms" cscript //nologo "%windir%\system32\slmgr.vbs" /ato
@Alphawaves Thanks a lot for your help. Just a curiosity, What does //nologo mean, please ? Have a good day.
Hi sanjose, It specifies that the Windows Script Host banner is not displayed before the script runs. Also displays result of its actions as opposed to //B EDIT: Updated response to you sanjose
@Alphawaves Thanks for your editing. To All, One more question please. Can we backup CERT.xrm-ms from brand new PC with Command Lines ( I mean a file .cmd or .bat ) instead of using SLIC ToolKit 3.2 ? If Yes, Can you help me have it, please ? Thanks for your concern.
not sure about commands, but there's a few little command line tools around MasterDisaster OEM Dump Utility which is also on this site http://vdhout.nl/20100522/ and alphawaves recent project, Biosversion Biosversion-*-Universal-*-Brands-*-Serials-*-Certificates-*-Installer-(OEM-Branding) and this one ive got, cant remember where it's from OEMDumper_slic-cert-dump-utility.rar
@racky29 Thanks for all your info. I think that we can not maybe backup CERT.xrm-ms from brand new PC with Command Lines.
Batch files is an outaded "programming" method for develop scripts... The CMD.EXE haven't the resources to extract an certificate from Tokens.dat... You can use the Alphawaves tool to backup via command line.
I'm a bit lost - is there a way to write xml file by echo? For example, this: Code: > unattend.xml echo "<?xml version="1.0" encoding="utf-8"?><unattend></unattend>" will produce file with '' at the start and the end of content (which shouldn't be there). And of course without quotations around < and > script won't work at all...
Code: echo ^<?xml version="1.0" encoding="utf-8"?^>^<unattend^>^</unattend^> >"%~dp0unattend.xml" example: Code: echo ^<OOBE^> >>"%~dp0unattend.xml" echo ^<HideEULAPage^>true^</HideEULAPage^> >>"%~dp0unattend.xml" echo ^<HideWirelessSetupInOOBE^>true^</HideWirelessSetupInOOBE^> >>"%~dp0unattend.xml" echo ^<ProtectYourPC^>1^</ProtectYourPC^> >>"%~dp0unattend.xml" echo ^<NetworkLocation^>Home^</NetworkLocation^> >>"%~dp0unattend.xml" echo ^</OOBE^> >>"%~dp0unattend.xml" echo ^<VisualEffects^> >>"%~dp0unattend.xml" echo ^<FontSmoothing^>Standard^</FontSmoothing^> >>"%~dp0unattend.xml" echo ^</VisualEffects^> >>"%~dp0unattend.xml"
Hi All, I installed windows 8 and backed up 2 files Tokens.dat & Data.dat in case of the future use. Then I place these two files in a folder named Windows 8 Back-up. I just re-installed windows 8 and try to write command lines in a .cmd file to restore 2 files Tokens.dat & Data.dat as click run this .cmd file. I follow the steps and use command lines for Windows 7. Unfortunatelly, it does NOT work in Windows 8. Does anybody know how to write the command lines to copy and overwrite Tokens.dat & Data.dat for the fresh Windows installation. Help me please. Here's the path: C:\Windows\System32\spp\store ( Tokens.dat & Data.dat in store folder ) I know that we can use Advanced Tokens Manager - The Activation Backup Solution by Josh Cell, but I 'd like to use a .cmd file. Thank you so much in advance for your help.
Hi all, I'm running a .cmd file on Windows 8 and I found out a line as below mentioned. How can I get rid of the line " More help is available by typing NET HELPMSG 3521 " ? Do I have to add any command line ? please advise ! Thanks in advanced
Have you tried adding: Code: 2>nul at end of net stop sppsvc command to redirect error messages to nul or Code: >nul 2>&1 which will redirect error and output to nul
Hi Alphawaves, I used this to test Administrative Privileges. Is this something wrong ? Code: @echo off NET SESSION >nul 2>&1 IF %ERRORLEVEL% EQU 0 ( goto mainmenu ) else ( goto exit ) :mainmenu
Please help me with the file .bat or .cmd how to block the sites in hosts for Windows 8 as follows: contents including: 1. Administrative Privileges 2. sites ex: 127.0.0.1 www.gohome.net 127.0.0.1 www.backtoschool.net 3. Press any key to open the hosts file Thanks so much for your help in advance
.cmd file must be ran as admin which is this code Code: cls mode con: cols=49 lines=12 REG QUERY "HKU\S-1-5-19" >NUL 2>&1 && ( GOTO mainmenu ) || ( echo Right click Trilogy and run as administrator... echo. pause GOTO exit ) Code to install/uninstall hosts file entry Code: CLS SET hosts=%windir%\system32\drivers\etc\hosts findstr /i "3dns-2.adobe.com" %hosts% >nul IF %ERRORLEVEL% EQU 0 ( echo ACS5.5T is already installed... ping -n 5 127.0.0.1 >nul goto ACS5.5T ) attrib -r %hosts% echo. >>%hosts% FOR %%A IN ( 3dns-2.adobe.com 3dns-3.adobe.com activate.adobe.com activate.wip3.adobe.com activate-sea.adobe.com activate-sjc0.adobe.com adobe-dns.adobe.com adobe-dns-2.adobe.com adobe-dns-3.adobe.com adobeereg.com ereg.adobe.com ereg.wip3.adobe.com hl2rcv.adobe.com practivate.adobe.com wip3.adobe.com wwis-dubc1-vip60.adobe.com www.adobeereg.com ) DO ( echo 127.0.0.1 %%A >>%hosts% ) attrib +r %hosts% echo ACS5.5T has been successfully installed... ping -n 5 127.0.0.1 >nul GOTO ACS5.5T :UninstallACS5.5T CLS SET hosts=%windir%\system32\drivers\etc\hosts findstr /i "3dns-2.adobe.com" %hosts% >nul IF %ERRORLEVEL% NEQ 0 ( echo ACS5.5T is already uninstalled... ping -n 5 127.0.0.1 >nul goto ACS5.5T ) attrib -r %hosts% FOR %%A IN ( 3dns-2.adobe.com 3dns-3.adobe.com activate.adobe.com activate.wip3.adobe.com activate-sea.adobe.com activate-sjc0.adobe.com adobe-dns.adobe.com adobe-dns-2.adobe.com adobe-dns-3.adobe.com adobeereg.com ereg.adobe.com ereg.wip3.adobe.com hl2rcv.adobe.com practivate.adobe.com wip3.adobe.com wwis-dubc1-vip60.adobe.com www.adobeereg.com ) DO ( MOVE %hosts% hosts.bak >NUL FINDSTR /V /C:"%%A" hosts.bak > %hosts% DEL /F /Q hosts.bak ) attrib +r %hosts% echo ACS5.5T has been successfully uninstalled... ping -n 5 127.0.0.1 >nul GOTO ACS5.5T Code to open hosts file then auto closes Code: :StatusACS5.5T mode con: cols=38 lines=19 START "" "CMD /C color 06 & type %systemroot%\system32\drivers\etc\hosts & >NUL ping -n 5 127.0.0.1" GOTO ACS5.5T