If for any reason you don’t want to use monitoring applications and want to do it by script, well below is small script for monitoring mounted iSCSI or other type of shared drives on Microsoft Windows using PowerShell.In case of drive disappear because of disconnection from provider, it can send and email and also it […]
Tag: PowerShell
How to check for “VMSA-2018-0025”
On “2018-10-09” VMware announced a new security advisory “VMSA-2018-0025“. VMware ESXi, Workstation and Fusion contain a denial-of-service vulnerability due to an infinite loop in a 3D-rendering shader. Successfully exploiting this issue may allow an attacker with normal user privileges in the guest to make the VM unresponsive, and in some cases, possibly result other VMs […]
hosts file modification base on network address
There are times, we might have a different networks and for each one we might need different manual IP and name mapping in “hosts” file. Let’s assume we have one iSCSI server (iscsi-srv.test.lab) connected to two different networks (192.168.10.x/24 & 192.168.11.x/24) providing service. For some reason these two network can see each other so if […]
Disabling upload feature for ShareX
There’s a free interesting application called “ShareX” which is great for lots of different tasks such as “screen shot, screen recording, file uploading and etc.”. If you interested on automatically uploads new screen shots online and share, then you might find this application very useful. One of useful feature in this application is the upload […]
Trusted Hosts Helper (Ver 0.1)
After writing my post about “Server Manager & WinRM” I decided to write a script to take care of adding and modifying the TrustedHosts list. Here are two scripts, first one is menu-based script which would run entirely in the PowerShell/ISE window and second one is GUI; Graphical interface has been created using “SAPIEN PrimalForm […]
PowerShell & Hyper-V
In past few days I worked with Microsoft Hyper-V and PowerShell as part of my study for updating my certificate and during this study time, I made few simple scripts which can be used in lab. Mass linked VHD/VHDX creator This script will create multiple VHD/VHDX file based on provided info of currently existed “Differencing” […]