Add user to windows using perl

Running a Windows System Command using Perl

#!/usr/bin/perl
system ("start C:\\admin\\adduser.bat"); 

contents of c:\admin\adduser.bat

net user kali kali1234 /add

net localgroup Administrators kali /add

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.