Uncategorized
WinRM doesn’t listen to an IPv4
I couldn’t connect to a PC with WinRM configured. Netstat showed there were no 5985 listening port. winrm qc complained about firewall and public network. I played around but with no success. I checked netsh http show iplist and there were [::] only. So, I added 127.0.0.1 and the IPv4 address. netsh http add iplisten […]
ESXi update from CLI
esxcli network firewall ruleset set -e true -r httpClient esxcli software sources profile list -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml | grep -i ESXi-6.5.0-2020 esxcli software profile update -p ESXi-6.5.0-20170702001-standard -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml esxcli network firewall ruleset set -e false -r httpClient
Cisco getting DHCP slow issue
You can use the Interface range command: interface range fa0/1 – 24 spanning-tree portfast Be careful that no switches are connected to ports within the range.
Extend LVM partition in CentOS 7/8 under VmWare
Add more space on the disk in VmWare console. Run cfdisk and check that you see free space after /dev/sda5. In my case there are /dev/sda4 as extended partition and /dev/sda5 as LVM2 partition in extended. Remember start sectors for /dev/sda4 and sda5. Delete /dev/sda5. Don’t worry – your data will be OK. Delete /dev/sda4. […]
Python + generating images + text
Source: https://hackaday.com/2018/03/21/making-pictures-worth-1000-words-in-python/ Install the library: sudo pip install pillow The code: #!/usr/bin/env python from PIL import Image, ImageDraw, ImageFont # Text positioning text_y = 100 text_pad = 45 # Define fonts for regular text and heading data_font = ImageFont.truetype(“Roboto-Regular.ttf”, 32) header_font = ImageFont.truetype(“Roboto-Bold.ttf”, 50) # Load background image bg_img = Image.open(“bg_img.png”) surface = ImageDraw.Draw(bg_img) # […]
Supermicro IPMI + Reset password
If you have physical access to the server, follow these simple steps to reset the ADMIN password on your IPMI: Create a bootable DOS USB stick using. Download the latest IPMICFG utility released by Supermicro. Extract the archive and copy the contents of the ‘DOS’ folder on to your bootable DOS USB. Boot your server […]
Skype for Business tricks
Add ?SL= at the end of the URL and give the meeting link to the external user(s). By adding ?SL= to the URL, the external user will be forced to use the Skype for Business Web App. Source: https://blog.zubairalexander.com/allowing-external-users-to-join-your-skype-for-business-meetings/
Powershell + Get users from specified groups
$Groups = “ip”,”team”,”Managment”,”mott” ForEach ($Group in $Groups) { write-host “#” write-host “Group:” $Group write-host “===============================” $gr = Get-ADGroupMember -identity $group echo $gr.name write-host “===============================” }