# System Startup opens Mp3tag in maximized windows instead of minimized form

**URL:** https://community.mp3tag.de/t/system-startup-opens-mp3tag-in-maximized-windows-instead-of-minimized-form/47864
**Category:** Support
**Created:** [February 14, 2020, 12:53pm UTC](https://community.mp3tag.de/t/system-startup-opens-mp3tag-in-maximized-windows-instead-of-minimized-form/47864 "2020-02-14T12:53:32Z")
**Posts on this page:** 5
**Page:** 2

<div class="post-metadata">

### Author: ![Zerow](https://community.mp3tag.de/user_avatar/community.mp3tag.de/zerow/32/11379_2.png) [@Zerow](https://community.mp3tag.de/u/Zerow)
#### Post date: [February 7, 2021, 11:17pm UTC](https://community.mp3tag.de/t/system-startup-opens-mp3tag-in-maximized-windows-instead-of-minimized-form/47864/21 "2021-02-07T23:17:06Z")

</div>

> [@Zerow](#):
>
> [...]  
> As for
> 
> > [@LyricsLover](#):
> >
> > You can save it as PowerShell-Script `StartMp3tagMinimized.ps1` and let it autorun with your system start.
> 
> I cannot. The script itself works perfettcly when I execute it by hand - but when it is placed in Startup folder then it will be simply opened in Notepad and not exceuted as a scirpt
> 
> Apparently is not that simple to automatically run PowerShell script. I found all kind of solution but failed miserably. One way I have not tried out was by the means of Group Policy / Task Scheduler. But I would rather not add another layer to the chain of events- I would rather have a BAT file execute the PS1 file, with the BAT being added to and being executed by the Startup of Windows

For example:  
` `  
` `  
I can make an LNK file like wiith a `Targer` beaaring

**C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -ExecutionPolicy Bypass -File "C:\My script loading My Playlist.ps1"**

And it works. In that when I put it in the folder for auto start feature if Windows located at

**C:\Users\YOUR-USER-NAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup**

the PS1 script will execute itself thus open Mp3tag and load the files - instead of opening itself for editing in Notepad. Unfortunately this combination will override the basic principal of the script, because it will open Mp3atg in a minimized only if it has been closed in such viewing mode. So the Mp3ag ebery time would have to be closed "properly" by the user during the previous system session

And on top of that this automatically executed LNK file will leave a window open with

> Windows PowerShell  
> Copyright (C) Microsoft Corporation. All rights reserved.
> 
> Try the new cross-platform PowerShell [Install PowerShell on Windows, Linux, and macOS - PowerShell | Microsoft Learn](https://aka.ms/pscore6)
> 
> False  
> PS C:\Windows\system32\> ""\_

with that prompt sign `_` being in bold and blinking

---

<div class="post-metadata">

### Author: ![Zerow](https://community.mp3tag.de/user_avatar/community.mp3tag.de/zerow/32/11379_2.png) [@Zerow](https://community.mp3tag.de/u/Zerow)
#### Post date: [February 9, 2021, 6:57pm UTC](https://community.mp3tag.de/t/system-startup-opens-mp3tag-in-maximized-windows-instead-of-minimized-form/47864/22 "2021-02-09T18:57:35Z")

</div>

There is something wrong with Windows [said its every user at some point...]  
` `  
` `  
Long story short:  
1] Create a CMD file with such code

> @echo off  
> PowerShell.exe -WindowStyle Minimized -NoProfile -Command "& {Start-Process PowerShell.exe -WindowStyle Minimized -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File ""%~dpn0.ps1""' -Verb RunAs}"

2] Save it as `X.bat` whenever; e.g on `C:\Various Scripts\`

3] Create a PowerShell file with such code:

> Start-Process Mp3tag -ArgumentList '"M:\My Playlist.m3u8"'  
> $wshell = New-Object -ComObject wscript.shell;  
> $wshell.AppActivate('\*Mp3Tag')  
> SLEEP 0  
> $wshell.SendKeys('(%(" "(n)))')

[this is the code provided kindly by @[LyricsLover](https://community.mp3tag.de/u/LyricsLover) with my crucial addition to it of the playlist file]

4] Save it as `X.ps1` in the same location; i.e. `C:\Various Scripts\`  
` `  
` `  
And what do you get? A working as intended PS1 script plus a BAT executing that PS1. Running by hand either of them opens Mp3tag in a minimized form, with files loaded to it that are listed in the `My Playlist.m3u8` file. Of course that BAT is useless without that PS1 - but that BAT can be used further, right?

Yes and no. The bottom line is:  
whatever workaround is put in `C:\Users\YOUR-USER-NAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup` - it will open Mp3tag window in maximized / last used size

I tried adding another another BAT to the equation, putting a delay in them [with the `timeout` parameter], using them directly or via a LNK file - and the result is always the same: such chains run automatically at startup will in the end ignore the request for minimized Mp3tag window; while re-run [executed] by hand will take it seriously and open Mp3tag minimized. So the very same files behave differently. I also tried out briefly a free piece of sotware AdvancedRun v1.22 by Nir Sofer, but [suprise suprise!] it had the same issue- of ignoring the minimize / hidden parameter

And so

> [@Zerow](#):
>
> [...]  
> As for
> 
> > [@LyricsLover](#):
> >
> > You can save it as PowerShell-Script `StartMp3tagMinimized.ps1` and let it autorun with your system start.
> 
> I cannot. The script itself works perfettcly when I execute it by hand - but when it is placed in Startup folder then it will be simply opened in Notepad and not exceuted as a scirpt
> 
> Apparently is not that simple to automatically run PowerShell script. I found all kind of solution but failed miserably. One way I have not tried out was by the means of Group Policy / Task Scheduler. But I would rather not add another layer to the chain of events- I would rather have a BAT file execute the PS1 file, with the BAT being added to and being executed by the Startup of Windows

it seems safe to make and educated guess that even if I somehow managed to run that PS1 script without a BAT intermediary, it would ignore the request for minimization - and so it would not do the job. And I have an argument for that  
` `  
` `  
Because after failing with BAT approach I went after all to TaskScheduler and created a Task with Action parameters set to [after numerous failures] as

> Program / script: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe  
> Add arguments (optional): -ExecutionPolicy Bypass -File "C:\Various Scripts\X.ps1"  
> Start in (optional): C:\Various Scripts\

and told the Task to run at log-on

And once again the dichotomy repeats itself: when this Task is executed by hand [i.e. from within TaskSheduler] it opens Mp3tag in minimized form - but when the Task is executed as planned [after a reset of the system] it ignores the the minimization request residing in the PS1 file

The only little advantaged I have gained by using the TaskScheduler is that apparently its items are run even before items from `C:\Users\YOUR-USER-NAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup`. In my particualr sett-up it means that my maximized FreeCommander window opens itself after Mp3tag thus obscuring it. But I just cannot relay on this workaround to a workaround, as it is could somehow break itself [i.e. start executing FreeCommander before Mp3tag]. [Plus the big white window of Mp3tag flashes itself - I would not like that when working at night]

---

<div class="post-metadata">

### Author: ![Zerow](https://community.mp3tag.de/user_avatar/community.mp3tag.de/zerow/32/11379_2.png) [@Zerow](https://community.mp3tag.de/u/Zerow)
#### Post date: [February 10, 2021, 6:53pm UTC](https://community.mp3tag.de/t/system-startup-opens-mp3tag-in-maximized-windows-instead-of-minimized-form/47864/23 "2021-02-10T18:53:28Z")

</div>

> [@Zerow](#):
>
> There is something wrong with Windows [said its every user at some point...]  
> [...]  
> And I have an argument for that  
> [...]

Yes ladies and gentlemen - that is correct

And I finally have an apparently good enough and relatively easy

> [@Zerow](#):
>
> [...]  
> workaround to a workaround  
> [...]

to utilize as part of my `C:\Users\YOUR-USER-NAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup`  
` `  
` `  
I took the `-ExecutionPolicy Bypass -File` part from the Task I was exploring previously and I added it to a LNK file. So now in the folder `Startup` I have a shortcut leading to that PS1 file with code

> Start-Process Mp3tag -ArgumentList '"M:\My Playlist.m3u8"'  
> $wshell = New-Object -ComObject wscript.shell;  
> $wshell.AppActivate('\*Mp3Tag')  
> SLEEP 0  
> $wshell.SendKeys('(%(" "(n)))')

with the parameters of that LNK file set to

> Target: C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "C:\Various Scripts\X.ps1"  
> Start in: "C:\Various Scripts"  
> Run: Normal window

**And it works** ; in that after entering Windows Mp3tag will be executed by `X.ps1` file [which was a problem - to automatically execute PS1 file and not just open it for editing] with the particular playlist will being loaded to Mp3tag. Although the window of Mp3tag will be open maximized, it will be **somehow** opened under [behind] the window of FreeCommander, which is set to open also in a maximized form and also by the means of having in folder `Start` a LNK file leading to its EXE

And I said **somehow** , because there is no logic here. The `C:\Users\YOUR-USER-NAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup` apparently works by alphabetical order- whatever is at the top will be loaded [executed] first. So `FreeCommander XE.lnk` is executed first and only after it an another process happens- of the `X.lnk`. So Mp3tag should be placed on top of FreeCommander window - but it is not. And yes I have made an experiment- by renaming `X.lnk` to `! X.lnk` I made this file appear above `FreeCommander XE.lnk` in the folder `Start`- and thus made it to be executed as the first item from `Start`. And the result was that Mp3tag was opened with focus [at the front] - and this is the exact opposite of what should be happening [because FreeCommander window should be placed over it]

But what is more, when I went back to re-naming it as `X.lnk` but also changed its parameter `Run:` from `Normal window` to `Minimized` it also started running in front of FreeCommander window. So once again ladies and gentlemen the minimized parameter from "Start" folder was ignored - apparently on the account of being evoked from `Startt` folder; plus it broke the workaround  
` `  
` `  
All in all, **this method with LNK file is also better than TaskSchduler approach because it does not create a brief appearance of the Mp3tag window** - it stays hidden behind FreeCommander [while the TaskScheduler method made a quick flash of Mp3tag window]  
` `  
` `  
So for now this seems to be the solution

But first it is applicable only in peculiar circumstances [of having some third party software auto-running concurrently which happens to be able to hide Mp3tag window]. And secondly I simply do not like the idea to be forced to

> [@Zerow](#):
>
> [...]  
> relay on this workaround to a workaround, as it is could somehow break itself  
> [...]

And so, if someone has other solutions / ideas - please post them here, even in a distant future

---

<div class="post-metadata">

### Author: ![Zerow](https://community.mp3tag.de/user_avatar/community.mp3tag.de/zerow/32/11379_2.png) [@Zerow](https://community.mp3tag.de/u/Zerow)
#### Post date: [February 16, 2021, 2:54am UTC](https://community.mp3tag.de/t/system-startup-opens-mp3tag-in-maximized-windows-instead-of-minimized-form/47864/24 "2021-02-16T02:54:42Z")

</div>

> [@Zerow](#):
>
> [...]  
> So for now this seems to be the solution
> 
> But  
> [...]  
> I simply do not like the idea to be forced to
> 
> > [@Zerow](#):
> >
> > [...]  
> > relay on this workaround to a workaround, as it is could somehow break itself  
> > [...]
> 
> [...]

And of course it broke; because of me doing some software update

Long story short: **in order to fix it** , the user apparently has to do the whole process from scratch - i.e. once more create a proper LNK file for PS1 script and place it in the `Start` folder thus deleting the old shorcut  
` `  
` `  
Thus

> [@Zerow](#):
>
> And so, if someone has other solutions / ideas - please post them here, even in a distant future

remains even more relevant now

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [February 9, 2026, 12:28pm UTC](https://community.mp3tag.de/t/system-startup-opens-mp3tag-in-maximized-windows-instead-of-minimized-form/47864/25 "2026-02-09T12:28:27Z")

</div>



[Previous page](https://community.mp3tag.de/t/system-startup-opens-mp3tag-in-maximized-windows-instead-of-minimized-form/47864.md?page=1)
