批次將hosts檔案傳送到學生端的cmd指令方式(含批次關機、重新開機)

在教師機端用本機管理員的身分(administratgor)登入後,確保每個學生端的電腦都有本機管理員(administratgor)帳號,密碼都要設一樣,因為本校無AD所以要這樣設。

 

批次將hosts檔案複製並傳送到學生端主機指令

xcopy /Y hosts \st01c$windowssystem32driversetc

//st01代表的是學生端的主機名稱//

 

所以可以在記事本寫下如下檔案

xcopy /Y hosts \st01c$windowssystem32driversetc

xcopy /Y hosts \st02c$windowssystem32driversetc

xcopy /Y hosts \st03c$windowssystem32driversetc

xcopy /Y hosts \st04c$windowssystem32driversetc

xcopy /Y hosts \st05c$windowssystem32driversetc

xcopy /Y hosts \st06c$windowssystem32driversetc

xcopy /Y hosts \st07c$windowssystem32driversetc

xcopy /Y hosts \st08c$windowssystem32driversetc

xcopy /Y hosts \st09c$windowssystem32driversetc

xcopy /Y hosts \st10c$windowssystem32driversetc

xcopy /Y hosts \st11c$windowssystem32driversetc

xcopy /Y hosts \st12c$windowssystem32driversetc

 

最後再儲存成.bat檔,只要每一次改變教師機的電腦hosts檔後,就可以批次傳送。

————————————————————————————————-

批次遠端關機方式指令

shutdown -m \st01 -s -t 00

shutdown -m \st02 -s -t 00

shutdown -m \st03 -s -t 00

shutdown -m \st04 -s -t 00

shutdown -m \st05 -s -t 00

shutdown -m \st06 -s -t 00

shutdown -m \st07 -s -t 00

shutdown -m \st08 -s -t 00

shutdown -m \st09 -s -t 00

shutdown -m \st10 -s -t 00

shutdown -m \st11 -s -t 00

shutdown -m \st12 -s -t 00

——————————————————————————

批次遠端重新開機

shutdown -m \st01 -r -t 00

shutdown -m \st02 -r -t 00

shutdown -m \st03 -r -t 00

shutdown -m \st04 -r -t 00

shutdown -m \st05 -r -t 00

shutdown -m \st06 -r -t 00

shutdown -m \st07 -r -t 00

shutdown -m \st08 -r -t 00

shutdown -m \st09 -r -t 00

shutdown -m \st10 -r -t 00

shutdown -m \st11 -r -t 00

shutdown -m \st12 -r -t 00

 

Google Drive 同步備份教學

概念說明:

當你電腦硬碟損毀,而你當初有備份資料到雲端時,

可以利用Google Drive來同步備份自己的資料,

請記得將這個Google Drive 的軟體裝在要同步的資料槽裡,

千萬別選C槽,因為通常同步的資料都是文件型,

再加上C槽預設都不會太大,若同步時,C槽資料不夠大,

會造成同步出現問題,

因為同步備份就是指雲端上要同步的資料有多少,

然後你同步的本機上的空間就要預留多少。

1.第一步上網搜尋Google Drive軟體

以下是官方網址:

https://www.google.com/intl/zh-TW_ALL/drive/download/backup-and-sync/

2.第二步將下載下來的安裝小程式放在D槽裡,並以系統管理員的身分去執行。

3.打開「透過 Google Drive 備份及同步處理」(Google Drive)程式後,首次使用要先點擊「開始使用」進行設定。

4.登入你的 Google 帳號和密碼來完成使用。

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ITBC軟體遠端批次開機的bios設定

Advanced 選APM Configuration 然後將Erp Ready 設Disabled ,

把”Power On By PCI”和 “Power On By PCI-E”設成Enabled。

 

 

將著對”本機”按右鍵點選,進入裝置管理員,

在”網路介面卡”裡的intel網卡”點選按右鍵內容,

然後在”電源管理”選項中,把

“允許電腦關閉這個裝置以節省電源(A)”

“允許這個裝置喚醒電腦(O)”

“還有”只允許Magic封包喚醒電腦”選項都打勾。