Shutdown and WakeUp Script C#
Posted
by Stephen Murby
on Stack Overflow
See other posts from Stack Overflow
or by Stephen Murby
Published on 2010-03-30T18:00:00Z
Indexed on
2010/03/30
18:03 UTC
Read the original article
Hit count: 383
Hiya I am very new to C#, infact this is basically my first task set by work whilst i learn the language. Yes i am also new to programming, be gentle :).
Context: My script needs to query active directory, grab of OU's and put them to a combo box in a form. Next query ActDir for a list of machines in a selected OU (Done this in a vbscript already)
Next query the machines in turn for there IP, and MAC addresses.(Done this in a vbscript already) Next needs to shut those machines down(Done this in a vbscript already) and dump all the machine and NIC info to a txt file
The other half of the script grabs the info for the machines out of the text file and sends them a magic packet to wake them up.
The shutdown section i have already written a VBscript for, but decided it wasn't future prrof, and i was learninc C# at home, so figured it was the best option to start over with.
Im not looking for anyone to write this for me, but if anyone had any pointers on where to go for information etc. . . It would be more than appreciated :)
© Stack Overflow or respective owner