Make ivisible eShell(kiosk) window on startup

Joined
Jun 21, 2021
Messages
2
Reaction score
0
Hello everyone, can't find any kind of solution, i want my batch file to start on eShell minimized or even better hidden. Here is my code at this moment:

$ShellLauncherClass = [wmiclass]"\\localhost\root\standardcimv2\embedded:WESL_UserSetting"
$ShellLauncherClass.SetDefaultShell("D:\uvs\WinPOS\run.bat", 0)
$ShellLauncherClass.SetEnabled($TRUE)
 
Joined
Jun 21, 2021
Messages
2
Reaction score
0
Found this VBScipt that helps to hide the window, but can i implement it to the existing powershell command that i have ?
```
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run chr(34) & "D:\UVS\WinPOS\run.bat" & Chr(34), 0
Set WshShell = Nothing
```
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top