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 using 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.