Pass URL-based JSON as launch argument #3045
Replies: 1 comment
-
Sorry to bug months after you posted this. My use case is probably simpler than yours. I set up computers for home users a few times a week. I have a NAS/Server with my tools and installers and WinUtil is one the first things I run. I found the line at the bottom of the documentation you mentioned, but I can't seem to get the syntax right. Currently my shortcut I run on a new client machine is set up with a 'Target' of: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -Command "Start-Process powershell.exe -verb runas -ArgumentList 'irm https://christitus.com/win | iex' It runs fine and I can click the Import button and that will work fine, it's just a couple extra steps I'm trying to skip. I think I'm putting a quotation mark in the wrong place or messing up the path in some basic way. My config file is WinUtilConfig.json and it's in the same network folder where I have the shortcut saved. Any help would be appreciated. |
Beta Was this translation helpful? Give feedback.
-
I wrote myself a batch script which enables me to launch winutil from cmd instead of having to launch a modern Windows shell explicitly and it gets its JSON instructions from a predefined URL.
The main hurdle was finding the documentation for how to pass the
-Config
. At first I couldn't find anything because I was looking for keywords like "JSON" and "Import", then I looked at the main.ps1
file and saw that it was indeed capable of ingesting a JSON on launch but that it was called "Config" in this context.Beta Was this translation helpful? Give feedback.
All reactions