First step,
We are in the desktop space, right click on "new" text document, and then enter the following content:
On Error Resume Next
Dim FSO, D,dc,f
Set fos = CreateObject ("Scripting.FileSystemObject")
Set DC = fso,drives
For each D in DC
Set f = fso. GetFile (D & "Please take me home. txt")
If Left (f,2) =d Then MsgBox "Remind you:" &d& "plate, please take home!", vbcritical, "Hello!"
Next
After pasting, we save Notepad in the root of C disk and rename it to "Usb.vbs".
Second step, press the shortcut key combination "win (window) +r", Bring Up the "Run" dialog box, enter Gpedit.msc, and press Enter or click "OK".
In the third step, in the Group Policy Editor, we expand Computer Configuration-windows Settings-script (boot/shutdown) in turn, and in the right window, double-click shutdown.
The fourth step, in the "Shutdown" dialog box, click the "Add" button, and then "Browse" select the saved before the "Usb.vbs" file, and finally click the "OK" button.
The fifth step, worth noting, in the future on your U disk or mobile hard disk directory, to create a file named "Please take Me home. txt" text file. Later, if you shut down without pulling out a U disk or moving the hard drive, the system will pop-up warning box prompts you, so much safer.
Note : More wonderful tutorials Please pay attention to the triple computer tutorial section, triple Computer office group: 189034526 welcome you to join