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.

Veeam Backup & Replication 10: Replication job error: permission to perform this operation was denied.

Following an in-place upgrade to Veeam 10 a replication job fails with the error:

Processing VMName Error: Permission to perform this operation was denied.

The job log contains the following entries:

Error    Failed UpdateNetworkAdapter2Vm. VmRef: [vm-9150], Nic: [4000], PortGroup: [Not connected], ConnectAtPowerOn: [False]. (System.Exception)

Error    Fault "NoPermissionFault", detail "<NoPermissionFault xmlns="urn:vim25" xsi:type="NoPermission" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><object type="Network">network-15280</object><privilegeId>Network.Assign</privilegeId></NoPermissionFault>" (Veeam.Backup.ViSoap.ViServiceFaultException)

Error    VimApi.NoPermission


To resolve:

1. Edit the replication job and enable Network remapping on the first page of the job configuration.

2. Specify the Source and Target networks on the Network page.

Sunday 12 April 2020

QNAP NAS: Restart services

To restart the services running on a QNAP NAS:
1. Using PuTTY ssh to the IP address of the NAS and login using the admin account.

2. Enter the command /etc/init.d/services.sh stop to stop the services.

3. Enter the command /etc/init.d/services.sh start to start the services.

VMware Workstation 15: The network bridge on device VMnet0 is temporarily down because the bridged Ethernet interface is down

The message "The network bridge on device VMnet0 is temporarily down because the bridged Ethernet interface is down" is displayed in VMware Workstation when starting a virtual machine guest with bridged networking configured.

To resolve, first verify that VMware Bridge Protocol is enabled for the network adapter in Control Panel > Network and Internet > Network Connections.

Alternatively, open a command prompt or PowerShell prompt and run the command ncpa.cpl to open the Network Connections window.

The message can also be shown if the VMnet0 network is missing from Virtual Network Editor in VMware Workstation.

Open Virtual Network Editor via Edit > Virtual Network Editor...
Select Change Settings

The default network configuration is:

- VMnet0 : Bridged : Auto-bridging
- VMnet1 : Host-only
- VMnet8 : NAT : NAT

If VMnet0 is missing repair the VMware Workstation installation in Settings > Apps > Apps & features or Control Panel > Programs > Programs and Features.