Post-Setup programs not installing anymore

I'm not sure if a new thread is needed, but I do have a few small questions about the post-setup process.

For one, I want to change the power plan to balanced. I originally had the high performance plan applied via a registry tweak to all windows editions including the Windows Setup, PE and Recovery Environment. If I were to add a "powercfg /setactive" command to the Post-Setup page, would I be able to change the plan back to balanced after Windows installs?

Lastly, it seems the Post-Setup hangs when an error is found. It was mentioned earlier in the thread and I found out that the Windows installation hangs until I close the command prompt, which defeats the purpose of a completely unattended install. Is the "net localgroup users student /delete" command incorrect?

Are user profiles created before or after the Post-Setup commands? I was under the impression they were created before. If that's the case, the student profile should exist and that command should work unless the student profile is not being added to the users category. To reiterate, the student profile was added in the Unattended page under the custom category of guests.
 
would I be able to change the plan back to balanced after Windows installs?
Yes, any of the commands below will work without issue.

Balanced: powercfg /setactive scheme_balanced
Saver: powercfg /setactive scheme_max
High: powercfg /setactive scheme_min

You can also quickly verify which plan is currently active with: powercfg /list

Is the "net localgroup users student /delete" command incorrect?
I just don't know enough about this situation to comment, since this is school and sysadmin related, which is out of my wheelhouse. I'd rather wait and see what others have to say, before I attempt to recreate your image and fiddle with that stuff.
 
Last edited:
Yes, any of the commands below will work without issue.

Balanced: powercfg /setactive scheme_balanced
Saver: powercfg /setactive scheme_max
High: powercfg /setactive scheme_min

You can also quickly verify which plan is currently active with: powercfg /list


I just don't know enough about this situation to comment, since this is school and sysadmin related, which is out of my wheelhouse. I'd rather wait and see what others have to say, before I attempt to recreate your image and fiddle with that stuff.
Thanks for the clarification. So I assume placing that command in Post-Setup should work to change the plan back. I'll give that a test.

In regards to the guest account, I came across that information from here and a few other sites. I used to manually do it via the command prompt, but the Unattended page gave me the freedom to add it in. I essentially chose custom for the category and typed "guests" for the student profile.
 
I decided to remove the offending command to see if it had any impact on the Post-Setup process of the installation; however, a command prompt window still appeared. This time it simply showed that the Wifi profile had been added successfully. Installation would not continue until I closed the window. Why is this happening now?

Edit: I can confirm that removing "net localgroup users student /delete" has no effect on the student profile in the end. Since it was already added to "guests" in the Unattended page, it did not need further modification unlike a live Windows installation.
 
Last edited:
You know this works faster when you post a preset (with any user passwords or license keys removed). A screen capture is superficial.
 
You know this works faster when you post a preset (with any user passwords or license keys removed). A screen capture is superficial.
Whoops haha. I've attached the Unattended and Post-Setup presets. When making the image, I start with the Post-Setup, then append the Unattended preset. Each one should just have their related settings. I think I removed all the sensitive information.
 

Attachments

When you specify a single Group for a local account, then it won't be added as a member of other groups. The Unattended XML format allows for multiple groups to be named, but I don't NTLite supports that notion.
 
When you specify a single Group for a local account, then it won't be added as a member of other groups. The Unattended XML format allows for multiple groups to be named, but I don't NTLite supports that notion.
That was my suspicion and I'm glad you cleared it up. So I will remove the associated command for the future. Now to figure out why the setup is hanging...
 
So I finally figured out what was happening with the post-setup during installation. If even one of the silent switches for the MSI files is wrong, the installation will freeze. Closing the command prompt simply forces it to continue without finishing the rest of the installs.

Chrome works fine with "/quiet /norestart"
Edge does not like that. It works with "/qb /norestart"
VLC works fine with "/quiet" with "/norestart" being optional
The other MSI file worked fine with "/quiet" too

With that, the installation finished without user input. I'm still confused as to why a command prompt is being shown at all though. It didn't used to appear. Not that I have a problem with it, but at least everything is working now. Of course it happened to be Edge that was being finicky again.
 
Last edited:
Did something change with the recent versions of Edge and Chrome? Edge still installs, but not throws out an error about running out of space that I have to dismiss. It seems to install just fine otherwise. Chrome no longer installs itself using the aforementioned switches. What gives?

The weird part is that I have tested the msi files using a batch file like Hellbovine mentioned, but when integrated into the ISO, the programs fail to properly install.
 
Why don't you add a verbose log argument?

/L*V "C:\path\to\install.log"
 
Why don't you add a verbose log argument?

/L*V "C:\path\to\install.log"
Well, the log argument did work. I do not know how to interpret the results; however, I did change the switches for Edge and Chrome to "/qn /norestart" and the installs worked once again. Not sure what changed or why, but it seems to be working now.
 
Back
Top