Sunday, 4 July 2021

Lenovo ThinkPad: Retrieve machine type, model (MTM) and serial number with PowerShell

To retrieve a Lenovo ThinkPad machine type, model (MTM) and serial number with PowerShell, run the command:

Get-CimInstance -ClassName Win32_ComputerSystemProduct 

IdentifyingNumber: R00FKF00
Name: 20FB003TUK
Vendor: LENOVO
Version: ThinkPad X1 Carbon 4th

Saturday, 3 July 2021

TeamViewer: Disable adverts

 To disable adverts in TeamViewer:

  1. Open TeamViewer and select Extras > Options > Advanced > Show advanced options
  2. Scroll down and untick In-product marketing messages


Alternatively, open a PowerShell prompt and run the following command:

Set-ItemProperty HKCU:\SOFTWARE\TeamViewer -Name ReceiveInAppMessaging -Value 0

Sunday, 4 April 2021

Windows: Get last boot up time with PowerShell

To get the last boot up time using PowerShell, run the command:

Get-CimInstance -ClassName Win32_OperatingSystem | Select-Object LastBootUpTime

To get the last boot up time of a remote computer, run the command:

Invoke-Command -ComputerName HOSTNAME -ScriptBlock {Get-CimInstance -ClassName Win32_OperatingSystem | Select-Object LastBootUpTime}

SIP: 476 No Server Address in Contacts Allowed

The message SIP/2.0 476 No Server Address in Contacts Allowed is shown in a SIP packet capture.

To resolve:

Edit the SIP credentials and remove the domain portion from the username.

eg: change username@domain to username.

Avaya IP Office: URI contains invalid FQDN. DNS resolved address does not match the Interface address

The message URI contains invalid FQDN. DNS resolved address does not match the Interface address is displayed when accessing an Avaya IP Office via HTTP using its FQDN.

The message is not shown when accessing the system using its IP address.

Verify the IP Office system has DNS server(s) configured such that it can resolve itself correctly.

To configure DNS:

  1. Login to the IP Office system using IP Office Manager.
  2. Expand System.
  3. Select the DNS tab and configure one or more DNS servers.
  4. Save the configuration and test.

PSCP: ssh_init: Network error: Cannot assign requested address

Unable to transfer file to remote host using PSCP due to the error:

ssh_init: Network error: Cannot assign requested address
 
To resolve:

  1. Open PuTTY.
  2. Select Default Settings and then Save.



  3. Close PuTTY.