We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install-Printer.ps1 refuse to run when inf file in a subfolder's name with a space.
The text was updated successfully, but these errors were encountered:
I get the same error - I can see that it's the pnputil that is making the mess.
@cliffzhu did you come though with a working method?
Sorry, something went wrong.
In the Install-Printer.ps1 I modified the $INFARGS to add quotes around the file path. This allows spaces to be used when referencing the .inf file.
Original version: $INFARGS = @( "/add-driver" "$INFFile" )
$INFARGS = @( "/add-driver" "$INFFile" )
My version: $INFARGS = @( "/add-driver " + '"' + $INFFILE + '"' )
$INFARGS = @( "/add-driver " + '"' + $INFFILE + '"' )
It may be a sloppy way of doing it, but it seems to work.
No branches or pull requests
Install-Printer.ps1 refuse to run when inf file in a subfolder's name with a space.
The text was updated successfully, but these errors were encountered: