in reply to Error compiling script running powershell command
Once your happy with the quoted string, put it back between backticks.my $string = qq/c:\\windows\\system32\\windowspowershell\\v1.0\\powers +hell.exe -command "Set-ADUser $un -Replace @{thumbnailPhoto=([Byte[]] +(Get-Content $jpeg -Encoding Byte))}"/; print $string;
|
|---|