Hallo,
Ik ben een netwerkbeheerder op een school en ik moet iedere dag alle computers handmatig afsluiten. Dus ik dacht ik maak een .bat om dit voor mij te doen. Het ziet er als volgt uit:
Maar nu is het probleem dat wanneer bijvoorbeeld MD06 al uit staat, dan gaan MD01 tot 05 uit en MD07-16 en C01-17 blijven aanstaan omdat het MD06 niet kan uitzetten. Is er toevallig een manier om dit te omzeilen?
Ik weet niet zeker of dit het goede forum is, maar ik dacht van wel.
Gyraxo
Ik ben een netwerkbeheerder op een school en ik moet iedere dag alle computers handmatig afsluiten. Dus ik dacht ik maak een .bat om dit voor mij te doen. Het ziet er als volgt uit:
Code:
shutdown -s -f -m \\MD01
shutdown -s -f -m \\MD02
shutdown -s -f -m \\MD03
shutdown -s -f -m \\MD04
shutdown -s -f -m \\MD05
shutdown -s -f -m \\MD06
shutdown -s -f -m \\MD07
shutdown -s -f -m \\MD08
shutdown -s -f -m \\MD09
shutdown -s -f -m \\MD10
shutdown -s -f -m \\MD11
shutdown -s -f -m \\MD12
shutdown -s -f -m \\MD13
shutdown -s -f -m \\MD14
shutdown -s -f -m \\MD15
shutdown -s -f -m \\MD16
shutdown -s -f -m \\C01
shutdown -s -f -m \\C02
shutdown -s -f -m \\C03
shutdown -s -f -m \\C04
shutdown -s -f -m \\C05
shutdown -s -f -m \\C06
shutdown -s -f -m \\C07
shutdown -s -f -m \\C08
shutdown -s -f -m \\C09
shutdown -s -f -m \\C10
shutdown -s -f -m \\C11
shutdown -s -f -m \\C12
shutdown -s -f -m \\C13
shutdown -s -f -m \\C14
shutdown -s -f -m \\C15
shutdown -s -f -m \\C16
shutdown -s -f -m \\C17
Maar nu is het probleem dat wanneer bijvoorbeeld MD06 al uit staat, dan gaan MD01 tot 05 uit en MD07-16 en C01-17 blijven aanstaan omdat het MD06 niet kan uitzetten. Is er toevallig een manier om dit te omzeilen?
Ik weet niet zeker of dit het goede forum is, maar ik dacht van wel.
Gyraxo
Laatst bewerkt door een moderator: