Someone can help me, how to reset the password for local administrator, i tried vm-invoke command, but it says run power CLI through 32 bit command mode. I am looking for answer how to get it done for 1000 VM's
You are right. The Invoke-VMScript cmdlet only runs on PowerCLI 32-bits. If you have installed PowerCLI on a 64-bits system, you will have the "VMware vSphere PowerCLI (32-bit)" also installed on your system. You should use that to run your script.
If you have any problems with the script itself, let us know and we will try to help you with the script also.