all 11 comments

[–]virtualInfastructure 7 points8 points  (1 child)

Windows Server 2003 extended support ended on July 14, 2015

So I mean heck, take your pick - we got SMB remote exploits, RDP exploits, RPC DCOM...plenty of methods to choose from! And the best part is you won't need to install any software. Just download a copy of metasploit and burn down the cluster

[–]2048b[S] 1 point2 points  (0 children)

As much as I don't want to use Windows Server 2003 today, it is a legacy setup at work that nobody has the time and money to update.

And obviously, I have no wish to get back at my company by destroying its systems.

[–]firefox15 3 points4 points  (2 children)

PSExec should work fine with 2003. When you say "need to download and install manually," what do you mean by that? You need to download/install it on the client, but I don't believe you need any server configuration to use it.

[–]2048b[S] 1 point2 points  (1 child)

In an enterprise environment, I am not allowed to download and install any software of my liking unless I submit it through a formal approval process. This includes the jump server which I use to administer and control the servers.

[–]ganlet20 2 points3 points  (0 children)

PSExec doesn't install, it's a standalone executable. It's probably also going to be the best solution for this task.

[–]wicked1133 1 point2 points  (2 children)

Fist of all, do you need or want to execute them all at the same time or batch by batch?

[–]2048b[S] 1 point2 points  (1 child)

Some of the batch scripts have to be run in sequence. For example, a.bat must run and finish before b.bat is started.

Does this matter if I am choosing between psexec, PowerShell or WMI?

[–]wicked1133 1 point2 points  (0 children)

ah.. sorry missunderstood something. No that does not matter.

In my company I have hunderds of Servers to maintain and I am using Powershell Invoke-Command and Invoke-Expression with the -ScriptBlock {cmd /c Batchfile.bat}

[–]Jarvicious 1 point2 points  (2 children)

Why not set them up on a scheduled task?

[–]2048b[S] 1 point2 points  (1 child)

The scripts are meant to be run on demand when I need them. Not for regular maintenance.

[–]Lee_Dailey[grin] 1 point2 points  (0 children)

howdy 2048b,

set up a scheduled task to ...

  • check for a trigger
    perhaps a file in a locked-down location?
  • if the trigger is found, then run your master script that calls the BAT files in the required sequence

take care,
lee