The attached script is used to reboot a Windows machine as part of a sequence of multiple operations. It sends a reboot command to the server and then monitors the status of the server until it has finished rebooting and is once again accessible to Network Shell (i.e. the agent has restarted).
for setting the tcp timeout values
This sample can also be found in the samples directory within the product distribution.