Tag: PowerShell

Monitoring mounted iSCSI/drive in windows using PowerShell

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 […]

Updated: December 2, 2020 — 10:58 PM

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 […]

Updated: October 20, 2018 — 5:06 PM

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 […]

Updated: October 20, 2018 — 3:51 PM

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 […]

Updated: October 20, 2018 — 2:45 PM

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 […]

Updated: February 21, 2014 — 12:37 AM

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” […]

Updated: February 14, 2014 — 4:52 PM