How to show Windows 10 Update Assistant to logged in user

lalajee 1,821 Reputation points
2023-08-22T11:17:12.1933333+00:00

Hi,

I need to update Windows 10 1909 device but for some reason I cant upgraded them using sccm Windows Servicing

I found an way I can upgrade them to 20H2 and then to 21H2 using Update Assistant but the issue is on some machine macfee is blocking the upgrade.

I like to run the update Assistant on an machine but show the message to logged in user so that they can report any issue with upgrade

I'm using below script package to update

$UpdaterBinary = "C:\Temp\_Windows_FU\Windows10Upgrade9252_21H2.exe"
$UpdaterArguments = '/install /skipeula /auto upgrade /dynamicupdate enable'
Start-Process -FilePath $UpdaterBinary -ArgumentList $UpdaterArguments

But this runs in background and it doesnt show any message or windows to logged in user

Main reason why its not doing this is because app is running as system account.

Is they any way I can run Update Assistant with admin rights but show the gui to user

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
12,075 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,917 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ian Xue-MSFT 41,711 Reputation points Microsoft External Staff
    2023-08-23T01:41:14.0533333+00:00

    Hi,

    You can use the "-Credential" parameter in the Start-Process cmdlet to specify the administator account so that Update Assistant starts with elevated permissions.

    $cred = Get-Credential
    Start-Process -FilePath $UpdaterBinary -ArgumentList $UpdaterArguments -Credential $cred
    

    Please refer to this link for more detals.

    Start-Process

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.