Write-Log : Cannot bind argument to parameter 'msg' because it is an empty string.
At C:\Program Files\Google\Compute Engine\sysprep\instance_setup.ps1:251 char:15
-
-
- CategoryInfo : InvalidData: (:) [Write-Log], ParameterBindingValidationException
- FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Write-Log
Add where before the foreach solve the issue
& $script:activate_instance_script_loc | where {$} | ForEach-Object {
Write-Log "$"