1

I have to perform various tasks such as restarting processes, monitoring the state of processes, checking disk space and log monitoring on Windows Server 2003.

In order to do this, I am currently using remote desktop which is very slow.

Are there any tools or frameworks for Windows Server 2003 using which I can execute the script on my machine and the required task will be performed on the remote machine in a somewhat interactive manner (like putty in linux)?

3

There are a number of ways you can do this. My preferred method is to use psexec.

  • +1 for PSexec. Either Powershell or PSexec can be used to "execute a script... and the required task will be performed on the remote machine..." But neither one is truly analagous to telnet/ssh in the unix world. To fully administer a Windows box, you need the gui sooner or later. – Bob Sep 6 '12 at 16:18
  • Indeed PsExec is a grat tool. We can get the command prompt instance of remote machine by "psexec -u userid -p password cmd.exe". Thanks a lot for ur reply – Vaibhav Jain Sep 10 '12 at 11:31
0

I'd use wmic or install PowerShell (preferred). Neither of these (nor psexec) are really interactive, though. What do you need this to be interactive for?

  • By interactive i just mean i should be able to see progress of my task on remote machine, if the task fail than fail log should be displayed, if any batch file is executed should be able to enter input to it. – Vaibhav Jain Sep 6 '12 at 19:29
  • You can't enter input with PsExec, although it will return the output. When using wmic the script will run locally and wmic will connect to the remote host, so your script can prompt for input. With PowerShell it depends. – Ansgar Wiechers Sep 6 '12 at 19:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.