Relative Content

Tag Archive for powershellvbscript

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.