In this video, I show you how to use VBA, such as in Excel, to run any Powershell command. This is a useful way for VBA to run other programs on the computer, and get information from them in the form of standard output. This can greatly expand the reach of your macros.
Note: If you are having trouble with execution policy errors, try this "powershell -executionpolicy bypass (your_command_here)"
Source code and written tutorial: https://syntaxbytetutorials.com/how-t...
On this page of the site you can watch the video online Use VBA To Run a Powershell Command and Get Return Value with a duration of hours minute second in good quality, which was uploaded by the user SyntaxByte 30 June 2022, share the link with friends and acquaintances, this video has already been watched 9,119 times on youtube and it was liked by 61 viewers. Enjoy your viewing!