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.

Thursday, 19 November 2020

Windows: Clear print queue with PowerShell

To clear a print queue using PowerShell open an elevated PowerShell prompt and run the following commands:

Stop-Service Spooler

Remove-Item -Path $env:windir\system32\spool\PRINTERS\* -Recurse -Force -Confirm:$false

Start-Service Spooler

Sunday, 27 September 2020

VMware Workstation 16: Silent Install / Uninstall

VMware Workstation 16 Silent Install

VMware-workstation-full-x.x.x-xxxxxx.exe
/s /v"/qn EULAS_AGREED=1 SERIALNUMBER=AAAAA-BBBBB-CCCCC-DDDDD-EEEEE AUTOSOFTWAREUPDATE=1"

VMware Workstation 16 Silent Uninstall

VMware-workstation-full-x.x.x-xxxxxx.exe /s /v"/qn REMOVE=ALL"

VMware Workstation 16 User Guide

https://docs.vmware.com/en/VMware-Workstation-Pro/16.0/workstation-pro-16-user-guide.pdf

Sunday, 10 May 2020

TechSmith Snagit 2020: Enable repeat last capture

To enable Repeat last capture configure a hotkey combination.
1. Right click the Snagit system tray icon and select Preferences...

2. Select the Hotkeys tab.

3. Tick Ctrl + Shift + Print Screen (or other combination).

Saturday, 9 May 2020

Lenovo ThinkPad: Integrated camera continuously turns on and off when using video applications

Lenovo ThinkPad integrated camera continuously turns on and off when using video applications including Skype, Windows 10 Camera app and Zoom.

The System event log shows the following error: "The Windows Camera Frame Server service terminated unexpectedly. It has done this x time(s)."

To resolve:

1. Open Regedit.

2. Browse to the following key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Media Foundation\Platform

3. Create a DWORD value named EnableFrameServerMode with the value 0

4. If using Windows 64-bit, create the same DWORD value EnableFrameServerMode with the value 0 in the following location:

HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows Media Foundation\Platform

This registry key is for 32-bit applications running on a Windows 64-bit computer.

5. Close Regedit and restart the computer.


To create the registry keys with PowerShell:

1. Open an elevated PowerShell prompt.

2. Run the command:

New-ItemProperty -Path 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows Media Foundation\Platform' -Name EnableFrameServerMode -Value 0 -PropertyType DWORD


3. Run the command:

New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows Media Foundation\Platform' -Name EnableFrameServerMode -Value 0 -PropertyType DWORD



Credit: paolone
https://forums.lenovo.com/t5/ThinkPad-T400-T500-and-newer-T-series-Laptops/KB4284835-causes-webcam-to-stop-on-T470p/m-p/4110977?page=2#4540806

Tuesday, 28 April 2020

HPE ProLiant iLO: Connection with iLO cannot be established. If you recently made changes to the network configurations, you may need to refresh this page to re-negotiate an SSL connection.

The following error message is shown at the iLO login page and prevents sign in:

Connection with iLO cannot be established. If you recently made changes to the network configurations, you may need to refresh this page to re-negotiate an SSL connection.

To resolve:

1. First clear any cached browser data for the iLO IP address / hostname and try signing in again.

2. Use PuTTY and ssh to the iLO hostname or IP address.

Login as: Administrator
Administrator@ILOHOSTNAME's password: ************
User:Administrator logged-in to ILOHOSTNAME (IP4v Address / IPv6 Address)

iLO Advanced 2.73.
Server Name: HOSTNAME
Server Power: On

</>hpiLO->  

3. Run the command reset /map1 to reset the iLO.

Saturday, 25 April 2020

VMware vSphere 6.5: Failed to power on virtual machine. The attempted operation cannot be performed in the current state (Powered off)

After editing a virtual machine to detach an ISO or disconnect the CD-ROM the VM powers off and the following error message is shown when attempting to power on:

Failed to power on virtual machine. The attempted operation cannot be performed in the current state (Powered off).

To resolve:

1. Unregister the virtual machine from the virtual machine inventory list.

2. Re-register the virtual machine by browsing to the datastore and locating the VM configuration file (.vmx) file.