VeeDub Posted December 16, 2023 Share Posted December 16, 2023 Hello, I've had a look at some previous questions, but the responses / examples aren't working for me. I am trying to run vmconnect If I enter the following at a command prompt it works C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\ZEN\ALR\Connect_VM.ps1 If I try this in AutoIt, nothing happens Run("C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\ZEN\ALR\Connect_VM.ps1", "", @SW_ENABLE) Would appreciate some troubleshooting suggestions Thanks VW Link to comment Share on other sites More sharing options...
Nine Posted December 16, 2023 Share Posted December 16, 2023 @SW_ENABLE is not a valid show-flag. (use @SW_SHOW or @SW_HIDE). Open help file for more details. VeeDub 1 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Solution VeeDub Posted December 16, 2023 Author Solution Share Posted December 16, 2023 Hello, I couldn't get Powershell to work. Ended up getting this to work, so thought I would share it. Local $HyperV_Host = "HyperV-Host" Local $HyperV_VM = "VM" Run(@ComSpec & " /k " & "C:\Windows\Microsoft.NET\assembly\GAC_64\vmconnect\v4.0_10.0.0.0__31bf3856ad364e35\vmconnect.exe " _ & $HyperV_Host & " " & $HyperV_VM,"",@SW_HIDE) argumentum 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now