Author Archives: Computer-Tech-Blog

SQL query to locate VMs in vCenter server databasee

Here are some SQL commands that may come useful if you are looking for a specific VM when vCenter server goes down. You can run a SQL query to find a VM directly in the database. It will tell you … Continue reading →...

Posted in VMware | Tagged , , , , | Leave a comment

List storage details with esxcfg-scsidevs in ESXi SSH console

Here is a list of storage commands examples that display storage details on an ESXi host. I recently had to move some storage disks around and received just the vml. numbers without LUN IDs or naa. numbers. This helped me … Continue reading &r...

Posted in VMware | Tagged , , | 4 Comments

List users connected to an SMB share

net session...

Posted in Microsoft | Leave a comment

ESXi no free space left on device tmp / root is Full

Checking for insufficient inodes:ESXi 5.0:  stat -f /ESXi 5.1+:  localcli system visorfs ramdisk listLinux OS: df -i Review the size of these directories:The /vmimages/ directory is used to store operating system install files such as the V...

Posted in VMware | Tagged | Leave a comment

Using xcopy to copy files and folders

I usually use robocopy to move files but had a need to copy some folders with xcopy. Below are some examples that came in handy....

Posted in Microsoft | Tagged , | Leave a comment

Testing a TCP port with curl in Linux

Quick curl command to test a TCP port...

Posted in Linux | Tagged , , | Leave a comment

Repair a Windows Server 2016 installation

I recently ran into an issue where a Server 2016 ran out of space and parts of it became corrupt. Running sfc /scannow showed that errors were found and could not be repaired. The corruption caused some odd behaviour on … Continue reading &rar...

Posted in Microsoft | Tagged , | Leave a comment

Remove a terminal server license from a license server

I ran into an issue where a Server 2016 Terminal server license was applied on a license server in error. It was decided that the license had to be split in half, the other half to be applied on a … Continue reading →...

Posted in Microsoft | Tagged , , , , , | Leave a comment

Remote Desktop: An authentication error has occurred, This could be due to CredSSP encryption oracle remediation

I have run into this a few times so pasting it here for reference. The fix is to set the below registry key from 1 to 2 on the machine that is initiating the remote desktop (source machine). A reboot … Continue reading →...

Posted in Microsoft | Tagged , , | Leave a comment

Batch script to create and add local users to Administrators group

Basic batch file to create a local user and then add it to the local admin group net user “user1” “Pa$$w0rd” /addnet user “user2” “Pa$$w0rd” /addnet user “user3” “Pa$$w0rd” /add ...

Posted in Scripting | Leave a comment