Batch Script: A Few Used With Psexec


I have been using psexec and batch scripts to do some system management jobs remotely. Here are couple examples of frequently used ones. psexec \\computer_ip_address  -u administrator –p ***** –c xxx.bat (xxx.bat can be any batch scripts you created) e.g: psexec \\172.29.16.10 –u administrator –p ******** –c disableFW.bat xxx.bat examples: 1) disableFW.bat: disable the Windows … Continue reading Batch Script: A Few Used With Psexec

Batch Script: Windows AD Migration


I worked on a Windows domain migration project several months ago. The P company acquired the B company, and request to migrate all former B company’s employees’ desktops and laptops to P company’s AD domain. Firstly, I created all new AD accounts for B company’s employees in P company’s AD. Then I wrote the following … Continue reading Batch Script: Windows AD Migration