Skip to content

Install-Printer.ps1 Suddenly not working #75

@JustoStyle

Description

@JustoStyle

Have deployed many of printers with this script but myself and anther coleege are having a issue with the script now where it produces this in the log file

##################################
<time="15:29:04.648 570" date="06-28-2024">
##################################
Install Printer using the following values...
Port Name: IP_10.86.1.53
Printer IP: 10.86.1.53
Printer Name: Unley - Sharp MX-3070V
Driver Name: SHARP MX-3070V PCL6
INF File: su0emenu.inf
<Staging Driver to Windows Driver Store using INF "su0emenu.inf"> <time="15:29:04.827 570" date="06-28-2024">
<Running command: Start-Process pnputil.exe -ArgumentList /add-driver su0emenu.inf -wait -passthru> <time="15:29:04.849 570" date="06-28-2024">
<time="15:29:04.970 570" date="06-28-2024">
<System.InvalidOperationException: This command cannot be run due to the error: The system cannot find the file specified.
at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)> <time="15:29:04.995 570" date="06-28-2024">
<time="15:29:05.079 570" date="06-28-2024">

and this in the event log.
image

It seems that the install cant find the INF file but i have checked and even decrypted the intunewin to check and the file is in there. Anyone else seen this it seems like an issue with intune deployment in general but posting there to see if anyone is able to assist.

Thank you,
J

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions