![]() because a BIOS has been installed, and all recommendations installed successfully), Software Center will initiate a system restart else, it won't. AppDT is configured to enforce system restart based on return codes, so if the wrapper exists with 3010 (i.e. It also creates a detection method to be used by ConfigMgr to determine compliance: two registry values with the install date and the HPIA exit code the detection method is a Powershell script that returns compliant if the install date is no more that 30 days old and the last exit code is eitor 257. keep a copy of previous logs, and write recommendations' return codes to an event log). The wrapper adds a bit of functionalities not offered natively by HPIA (i.e. I'm currently coding a Powershell wrapper for HP Image Assistant, for users to run on their devices to upgrade their BIOS, firmwares and drivers. TL DR version: is it possible, for an application deployment type, to enforce a mandatory system restart on a specific failure code, and having ConfigMgr identify the deployment as being unsuccessfull? Provide an argument that is not null or empty, and then try Wait-Process : Cannot validate argument on parameter 'Id'. ![]() FullyQualifiedErrorId : NoProcessFoundForGivenName, CategoryInfo : ObjectNotFound: (DPinst64:String), ProcessCommandException Verify the process name and call the cmdlet again. Get-Process : Cannot find a process with the name "DPinst64". ![]() FullyQualifiedErrorId : InvalidOperationException, CategoryInfo : InvalidOperation: (:), InvalidOperationException Start-Process -filepath $dppath -ArgumentList "/S /SE /SW" ![]() Start-Process : This command cannot be run due to the error: The system cannot find the file specified. Remove-PrinterPort -Name "TCP:$($PrinterName)" Start-Process -filepath $dppath -ArgumentList ("/S /SE /SW /u " $infFile) #And then add the printer, using the Port, Driver and Printer name you've chosenĪdd-Printer -Name "$($PrinterName)" -PortName "TCP:$($PrinterIP)" -DriverName "$($DriverName)" -Shared:$false $dppath = $PSScriptRoot "\dpinst64.exe" $infFile = $PSScriptRoot "\hpcu250u.inf" ![]() #Declare some variables for your printer: Im having trouble deploying a local printer though a PowerShell script. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |