المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : كيف يمكن إغلاق جميع الأجهزة في معمل الحاسب الآلي تلقائياً وفي وقت معين؟



يوسف سيف
29-03-2005, 06:03
أهلاً مجدداً..

شباب..عندنا معمل حاسب آلي ونريد نغلق كل الأجهزة في المعمل في نفس الوقت وأوتوماتيكياً..يعني لما يجي وقت نهاية الدوام على طول كل الكومبيوترات تغلق..ما عدا السيرفر..

سويت شورتكت لملف الشت الداون وحطيته كـ scheduled task بس بعد ما نفعت..يعني جا الوقت اللي حددته والجهاز ما طفا..

عندنا برامج للتحكم بالأجهزة تشغيلها وإغلاقها والتعامل معها..من خلال برنامج (Net support school pro)..بس كل هذي الأشياء ما تصير إلا يدوياً..يعني ما ممكن تلقائيا في وقت نحدده..

أرجو المساعدة.

يوسف.

arosto
29-03-2005, 07:51
سويت شورتكت لملف الشت الداون وحطيته كـ scheduled task بس بعد ما نفعت..يعني جا الوقت اللي حددته والجهاز ما طفا..



طبق نفس الطريقة بس استبدل ما ذكر في الأعلي بالأتي :
- افتح ملف نصي فارغ .
- اكتب فيه العبارة : shutdown -s
- احفظ الملف بالإمتداد .bat
- إذهب الى scheduled task وحدده في الزمن الذي تريده .

واليك تفصيل هذا الأمر :
ShutdownAllows you to shut down or restart a local or remote computer. Used without parameters, shutdown will logoff the current user.

Syntax
shutdown [{-l|-s|-r|-a}] [-f] [-m [\\ComputerName]] [-t xx] [-c "message"] [-d[u][p]:xx:yy]

Parameters
-l
Logs off the current user, this is also the defualt. -m ComputerName takes precedence.
-s
Shuts down the local computer.
-r
Reboots after shutdown.
-a
Aborts shutdown. Ignores other parameters, except -l and ComputerName. You can only use -a during the time-out period.
-f
Forces running applications to close.
-m [\\ComputerName]
Specifies the computer that you want to shut down.
-t xx
Sets the timer for system shutdown in xx seconds. The default is 20 seconds.
-c "message"
Specifies a message to be displayed in the Message area of the System Shutdown window. You can use a maximum of 127 characters. You must enclose the message in quotation marks.
-d [u][p]:xx:yy
Lists the reason code for the shutdown. The following table lists the different values. Value Description
u Indicates a user code.
p Indicates a planned shutdown code.
xx Specifies the major reason code (0-255).
yy Specifies the minor reason code (0-65536).

/?
Displays help at the command prompt.
Remarks
If you indicate a major and minor reason code, you must first define these reason codes on each computer for which you plan to use the particular reason. If the reason codes are not defined on the target computer, Event Viewer cannot log the correct reason text.
Examples
To shut down \\MyServer in 60 seconds, force running applications to close, restart the computer after shutdown, indicate a user code, indicate that the shutdown is planned, log major reason code 125, and log minor reason code 1, type:

shutdown -r -f -m \\MyServer -t 60 -d up:125:1

وبالتوفيق للجميع ............

يوسف سيف
30-03-2005, 04:14
أخي arosto
مشكور من جد على هذا الرد الرائع... بس تبقى عندي شوية استفسارات..
علشان أغلق كل الأجهزة.. هل يجب أن أضع هذا الملف في كل الأجهزة ..أم توجد طريقة لوضع ملف واحد على السيرفر مثلاُ..

أشكرك جداً :)

arosto
30-03-2005, 12:49
اهلا ً اخوي يوسف سيف . الطريقة الأولى يجب ان تضع في كل حاسب الملف .ولكن ان اردت من تضع الملف في الخادم فقط يجب ان تعدل الأمر ليكون كالتالي :
shutdown -s -m \\computer_name
computer_name = الحاسب الذي تريد ان تطفئه.

وفي حالتنا هناك اكثر من حاسب نريد ان نطفئه أذن نكتب الأمر كما في المثال التالي :
shutdown -s -m \\computer1
shutdown -s -m \\computer2
shutdown -s -m \\computer3
. .
. .
. .
. .
. .
. .

وتكرر الأمر في كل سطر وفي كل سطر تكتب اسم الحاسب الذي تريد الى ان تنتهي منها .
وبنفس الطريقة التي في الأعلى تحفظه بالإمتداد bat. ومن ثم تضعه ضمن المهام المجدولة و في الوقت الذي تريد طبعاً في الخادم فقط وعندما يطلب منك ان تضع كلمة مرور ضع كلمة مرور مدير النظام .

وبالتوفيق ......................

إيزي نت
30-03-2005, 23:07
دعك من الحلول البرمجية

أنصحك بالحل لأفضل

وهو أن تعود طلابك على الإطفاء الصحيح للكمبيوتر وتغطيته وإرجاع الكرسي وترتيب لمكتب قبل الخروج
وتكون هذه ضمن العادات الدائمة التي يجب أن يحافظوا عليها
وتكون قبل وقت كافي من انتهاء الدرس

Om51
31-03-2005, 11:02
arosto
جزاك الله خير على الافادة .

هناك أيضا برنامج اسمه Auto Shutdown ( ابحث عنه بجوجل ) , أعتقد قد يفيدكم أيضا ...