Any ideas or recommendations are greatly appreciated. I'm using AutoIT to run an instance of PSEXEC against a remote PC to audit Local Admins in my environment using net.exe (C:\Windows\System32> net localgroup administrators). However the usual trick I use to capture command line output does not appear to work well with PSEXEC, as the bottom portion of the output is missing from the return. I'm attempting to capture the output from the command line tool PSEXEC. Thanks all in advance for the lights you may provide to me and keep safe! So I was also wondering if there could be another way to add the "spaced" group with my admin credentials on a remote server other than psexec. What is weird is when I output the $sCommand variable, the space is in here but it seems not to be passed in my psexec command when I run it.Īnother thing I saw is that 4 times out of 10, psexec does not even launch. $sADGroupName as a space in it and there's nothing I can do about, we have to respect a naming convention but it would be "Admins REMOTEMACHINENAME"įunc f _AddADGroup2localAdmin ( ) SplashTextOn ( "", "Adding "
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |