# Get-wuinstallerstatus

**URL:** <https://forums.powershell.org/t/get-wuinstallerstatus/17200>\
**Category:** PowerShell Help\
**Created:** [July 31, 2021, 3:38am UTC](https://forums.powershell.org/t/get-wuinstallerstatus/17200 "2021-07-31T03:38:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cemenc](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/cemenc/32/1553_2.png) [@cemenc](https://forums.powershell.org/u/cemenc)\
**Post date:** [July 31, 2021, 3:38am UTC](https://forums.powershell.org/t/get-wuinstallerstatus/17200/1 "2021-07-31T03:38:58Z")

</div>

Hello Everyone,  
I am trying to get install status from a remote computer into a multilline textbox.  
It is not working on some computers and It is giving an error on others. At the bottom of this posting you will see the error.

```auto
try {
	$txtStatus.Text = Invoke-Command -ComputerName $listbox1.SelectedItem -ErrorAction Stop -scriptblock { Get-WUInstallerStatus }
	}
	
	catch
	{
		$txterrbox.Text = $_.ErrorDetails
	}
	

```

Error detail :  
[G4C6QH2] Connecting to remote server G4C6QH2 failed with the following error message : The WinRM client cannot process the request because the server name cannot be resolved. For more information, see the about\_Remote\_Troubleshooting Help topic.

I confirmed winrm is setup correctly. and I am running the script as admin rights. I also used below line.  
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Confirm:$False -Force

thanks in advance.

---

<div class="post-metadata">

**Author:** ![Olaf](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/olaf/32/992_2.png) [@Olaf](https://forums.powershell.org/u/Olaf)\
**Post date:** [July 31, 2021, 10:30am UTC](https://forums.powershell.org/t/get-wuinstallerstatus/17200/2 "2021-07-31T10:30:45Z")

</div>

> [@cemenc](#):
>
> because the server name cannot be resolved

I’d suspect you have a problem with your DNS. We cannot help you troubleshooting your network issues but the first thing I’d try would be to ping the remote system. 😉

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:22pm UTC](https://forums.powershell.org/t/get-wuinstallerstatus/17200/3 "2024-05-16T20:22:57Z")

</div>


