Tạo những Tiles Shutdown và Reboot trên màn hình Start Screen của Windows 8

Mặc dù Windows 8 có thiết kế thân thiện và trực quan với người dùng nhưng đối với nhiều người họ gặp khó khăn khi thực hiện nhanh những công việc Shutdown và Reboot .

Bạn có thể dùng tổ hợp phím Alt_F4 để tắt máy hoặc khởi động lại nhưng với nhiều người họ muốn đơn giản hóa việc này trong màn hình Start Screen và dưới đây là cách để đưa những Tiles Shutdown và Reboot tới màn hình Start Screen

 

\"\"

 

Bạn copy đoạn mã dưới đây vào NotePad

 

set WshShell = WScript.CreateObject("WScript.Shell")
strStartMenu = WshShell.SpecialFolders("StartMenu")
set oShellLink = WshShell.CreateShortcut(strStartMenu & "\\Shutdown.lnk")
oShellLink.TargetPath = "%systemroot%\\System32\\shutdown.exe"
oShellLink.Arguments = "-s -t 0"
oShellLink.WindowStyle = 1
oShellLink.IconLocation = "%systemroot%\\System32\\shell32.dll,27"
oShellLink.Description = "Shutdown Computer (Power Off)"
oShellLink.WorkingDirectory = "%systemroot%\\System32\\"
oShellLink.Save
Set oShellLink = Nothing
set oShellLink = WshShell.CreateShortcut(strStartMenu & "\\Log Off.lnk")
oShellLink.TargetPath = "%systemroot%\\System32\\shutdown.exe"
oShellLink.Arguments = "-l"
oShellLink.WindowStyle = 1
oShellLink.IconLocation = "%systemroot%\\System32\\shell32.dll,44"
oShellLink.Description = "Log Off (Switch User)"
oShellLink.WorkingDirectory = "%systemroot%\\System32\\"
oShellLink.Save
Set oShellLink = Nothing
set oShellLink = WshShell.CreateShortcut(strStartMenu & "\estart.lnk")
oShellLink.TargetPath = "%systemroot%\\System32\\shutdown.exe"
oShellLink.Arguments = "-r -t 0"
oShellLink.WindowStyle = 1
oShellLink.IconLocation = "%systemroot%\\System32\\shell32.dll,176"
oShellLink.Description = "Restart Computer (Reboot)"
oShellLink.WorkingDirectory = "%systemroot%\\System32\\"
oShellLink.Save
Set oShellLink = Nothing
Wscript.Echo "Shutdown, Restart and Log Off buttons have been created. You can now pin them to the Start Screen of your Windows 8 computer (if they are not already there)."

 

Lưu file trên thành tên với đuôi và .VBS ví dụ tuvantinhoc1088.vbs , sau đó chạy trực tiếp file này để thực hiện công việc