Race condition? Using mshta to call vbscript to call windowless powershell
So with remote work ever increasing, I’m trying to write a script to encourage our users to ensure they’re on the VPN without forcing them on it. Hard requirement is that it’s windowless minus the popup, so the solution is to wrap the PS script in VBS via mshta. Another set of requirements are the conditions which will trigger the script.
PowerShell equivalent of VBScript’s MsgBox
Since the deprecation and removal of VBScript is soon to become a reality 🙁 I feel the need to actually learn PowerShell properly.