@sealeopard
thats the problem... it should NOT shutdown every computer in our Domain... if i would do this, i would have a real problem [Big Grin]

@LLigetfa
i use the task scheduler to run it... this is just to be sure that noone can start this script during worktime

Background of this script is that a lot of users dont turn off their PCs at the end of the day... and when they have some programs running which are connected to our fileserver, we can't run our daily Backup correctly...
so we have to shutdown every PC, but not the servers...