Controlling windows system from a Linux box.

Set up winexe. wget "" yum install winexe-1.00-9.1.x86_64.rpm   Test the connection <pre>telnet 139</pre> Now we can try the system out winexe -U "User 1" –password=secretpassword // 'cmd /C "whoami"' If you get : ERROR: Failed to open connection – ERRDOS:ERRnomem then it’s probably a Windows 7 box run reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management"…

Execution sequence for interactive login shell scripts

./etc/profile if ~/.bash_profile exists then execute ~/.bash_profile else if ~/.bash_login exists then execute ~/.bash_login else if  ~/.profile exists then execute ~/.profile fi ~/.bashrc  is not used in interactive scripts.   nJoy 😉