Did RichMatheisen-8856's solution work for you?
I'm facing the same issue.
Thanks for the help.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello to all,
I am trying to execute this command remotely as a Admin01 user account:
Invoke-Command -ComputerName PC01 -ScriptBlock {
$UI = New-Object -ComObject "UIResource.UIResourceMgr"
$ProgramID = "*"
$PackageID = "PKG001"
$UI.ExecuteProgram($ProgramID, $PackageID, $true)
}
Error HRESULT E_FAIL has been returned from a call to a COM component.
It works fine if the user Admin01 is logged in on that PC01. Can someone help to figured out this? The aim is to execute Task Sequence on multiple computers via Powershell script.
Thanks.
M.
Did RichMatheisen-8856's solution work for you?
I'm facing the same issue.
Thanks for the help.
Only the first User Session can execute .
make shure, all other users are logged off