I am trying to pass quotes in string. I am having a hard time formulating the code.
path = path.Insert(0, @"\\ffusvintranet02\picfiles\temp\");
string format = "Set-UserPhoto ";
format += "" + user + "";
format += " -PictureData ([System.IO.File]::ReadAllBytes(";
format += "" + path + @"";
format += ")";
The user and path are variables that needs to be inside single quotes for the AD Command. command. What I have isn't working.