Running vbs script with parameters

Hello to all,

I have psappdeploytoolkit version 3.9.3.
I am tyring to run the following command without succuss.

Execute-Process -Path “cscript.exe” -Parameters “$dirFiles\ScanOffice\ScanOfficeVersion.vbs” /Basic /Quiet /logfolder “c:\install\office2021\Office_Scan.txt”

I believe that my quote are not in place.
Can you help?

Thank you so much
Amir

Execute-Process -Path "cscript.exe" -Parameters "`"$dirFiles\ScanOffice\ScanOfficeVersion.vbs`" /Basic /Quiet /logfolder 'c:\install\office2021\Office_Scan.txt' "
1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.