rapid7/metasploit-framework — pull request #1136 by R3dy (2012-12-06 22:05:11+00:00)
Title: Update modules/auxiliary/admin/smb/psexec_command.rb

Fixed static path to Windows directory. This causes problems with directory is 'WINNT' for example.

So I've noticed on some systems such as Windows 2000 or systems where the Sys Admin has got creative the directory to the windows OS is not called 'WINDOWS' and therefore this module will not work.

This pull request fixes that issue by adding an option to specify a different name such as 'WINNT' this appears to fix this issue in my testing.