0

First of all I am a noob in terms of VBS. So of this question does not make sense, please bear with me.

I have created a PowerShell script that I wanted to be launched via .vbs file.

I have succesfully used this wrapper for this in the past.

dim EncodedCommand
EncodedCommand = "COMMAND"

pSCmd = "powershell.exe -noexit -windowstyle Hidden -executionpolicy bypass -encodedcommand " & EncodedCommand

CreateObject("WScript.Shell").Run pSCmd, 0, True

But as my 'project' grew, so did is size. It's currently sitting at 871443 characters after converting it base64 and I am presented with the error seen below.

error

Any help would be appreciated.

1
  • 1
    That is exactly what I wanted to know. Just didn't know how to ask poprely. Commented Apr 8 at 8:43

1 Answer 1

0

Apparently the character limit for a parameter is 32700, which comapred to 871443 that I would like to pass will not work.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.