powershell - Look like Script Text is Limited to 2869 characters in Invoke-VMScript in PowerCLI. How to run large Script? -


$scripttext = {very large script more 2869 characters} invoke-vmscript -scripttype powershell -vm $vmname -guestuser $guser -guestpassword $gpassword -scripttext $scripttext 

when try run script having characters more 2869, script doesn't execute. executes fine when less 2870 characters.

is there way execute large script?


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -