Mrrrr's Forum (VIEW ONLY)
Un forum care ofera solutii pentru unele probleme legate in general de PC. Pe langa solutii, aici puteti gasi si alte lucruri interesante // A forum that offers solutions to some PC related issues. Besides these, here you can find more interesting stuff.
|
Lista Forumurilor Pe Tematici
|
Mrrrr's Forum (VIEW ONLY) | Reguli | Inregistrare | Login
POZE MRRRR'S FORUM (VIEW ONLY)
Nu sunteti logat.
|
Nou pe simpatie: Anna281
 | Femeie 25 ani Iasi cauta Barbat 25 - 44 ani |
|
TonyTzu
Moderator
 Inregistrat: acum 13 ani
Postari: 252
|
|
Source:
Credits go entirely to them and to the user who created this script.
This will show you how to see how long in seconds it takes your Windows 7, Windows 8, or Windows 10 PC to restart back to the desktop.
You can also view the startup logs in Event Viewer (C:\Windows\system32\eventvwr.msc) under Applications and Services Logs, Microsoft, Windows, Diagnostics-Performance, and Operational. The logs will be in the middle to show you what ran at startup, how long it took, and more.
1. Open notepad 2. Copy the following text to notepad
Option Explicit On Error Resume Next Dim Wsh, Time1, Time2, Result, PathFile, MsgResult, MsgA, AppName, KeyA, KeyB, TimeDiff MsgA = "Please close all running applications and click on OK." KeyA = "HKEY_CURRENT_USER\Software\RestartTime\" KeyB = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\RestartTime" AppName = "Restart-Time" Set Wsh = CreateObject("WScript.Shell") PathFile = """" & WScript.ScriptFullName & """" Result = wsh.RegRead(KeyA & "Times") if Result = "" then MsgResult = Msgbox (MsgA, vbOKCancel, AppName) If MsgResult = vbcancel then WScript.Quit Wsh.RegWrite KeyA & "Times", left(Time,8), "REG_SZ" Wsh.RegWrite KeyB, PathFile, "REG_SZ" Wsh.Run "cmd /c Shutdown -r -f -t 00", false, 0 else Wsh.RegDelete KeyA & "Times" Wsh.RegDelete KeyA Wsh.RegDelete KeyB TimeDiff = DateDiff("s",Result,left(Time,8)) MsgBox "Your computer takes " & TimeDiff & " seconds to completely restart.", VbInformation, AppName end if wscript.Quit |
3. Save file: Restart-Time.vbs (make sure you select all files before saving, otherwise it will be saved as text) 4. Right click on the downloaded Restart-Time.vbs file, click on Properties, click on the General tab, click on the Unblock button to unblock the Restart-Time.vbs file. NOTE: If you do not have an Unblock button, then it is already unblocked. Continue to step 6. 5. Close and save all windows first. When you run the vbs file it will immediately restart your computer. 6. Run the Restart-Time.vbs file 7. Click on OK to restart the computer. 8. When the computer finishes restarting, you will see your Windows restart time. Click on OK when done.
|
|
pus acum 9 ani |
|