ChrisTitusTech / winutil

Chris Titus Tech's Windows Utility - Install Programs, Tweaks, Fixes, and Updates
MIT License
22.04k stars 1.35k forks source link

Blank CMD windows After Booting - MicroWin #2236

Closed gpstarman closed 2 months ago

gpstarman commented 3 months ago

Whenever I boot Windows, after around a minute three cmd promt windows open and close immediately. Then found out it was sc.exe. Which I found as sevice control. I suspect that it happens because, I imported drivers, maybe it did an half complete job IDK.

Please skip to 00:46 on the below video: https://github.com/ChrisTitusTech/winutil/assets/143441092/b721e749-3836-4a80-906b-6c0d982e9b89

Screenshot from 2024-06-30 22-54-52

I don't know if this is any useful, but just in case: Screenshot 2024-06-30 194450

Created Using : MicroWIn - Winutil ( Release 24.06.18 )

Based on : Win 11 22H2

Kept : provisioned packages, Appx packages, Defender

Removed : Edge.

Imported drivers from my current Windows ✅

Installed Apps : OBS, VLC, Brave, Peazip

NEVER CONNECTED THIS WINDOWS TO INTERNET. ( MAYBE THAT'S THE CAUSE DUE TO THE NEED OF INITIAL UPDATES ) DOWNLOADED THOSE APPS AND POSTING THIS fROM LINUX.

SHR1SHAK commented 3 months ago

I can confirm this. I also got 2 Blank CMD screen on startup

https://github.com/ChrisTitusTech/winutil/assets/55125587/39eb1036-fda5-441d-9cbe-700f0b67641e

github-actions[bot] commented 2 months ago

This issue was marked as stale because it has been inactive for 7 days

gpstarman commented 2 months ago

@og-mrk Sorry to bug you man. But I'm still not started using my Windows machine because I'm paranoid. I fear that I have to reinstall the OS and install all the applications again and set them up. This is not an issue right? I am clear to go?

CodingWonders commented 2 months ago

MicroWin images set some services automatically to Manual. I will try this in a VM to see if I reproduce these issues.

@gpstarman, you can try to do the following to see what is run:

  1. As soon as you see the SC windows, immediately make a selection in the window. This typically pauses execution until you finished with the selection
  2. Open Task Manager and check the "Command line" column (add it if you don't have it)

Once you have the command-line, reply with that.

gpstarman commented 2 months ago

Immediately make a selection in the window.

I'm sorry, can you explain more please. Am I supposed to click the window that appear?

CodingWonders commented 2 months ago

Immediately make a selection in the window.

I'm sorry, can you explain more please. Am I supposed to click the window that appear?

Selecting like this, much like you would with regular text:

cmd_cK8En6HRRD

gpstarman commented 2 months ago

Screenshot 2024-07-11 015308 Screenshot 2024-07-11 020446

I can only get two of three. It's all overlapping each other and vanishes within a second.

I suspect that it happens because, I imported drivers NEVER CONNECTED THIS WINDOWS TO INTERNET. ( MAYBE THAT'S THE CAUSE DUE TO THE NEED OF INITIAL UPDATES )

May be this is the reason. Because, the OS I used to make the ISO had certain Acer apps (prominently Acer Care Center). And I imported drivers from it. From the keyborad it looks like @SHR1SHAK also uses an Acer laptop.

Screenshot from 2024-07-11 02-19-53

So I guess my new OS expects Acer Care Center (because it has drivers) and it does not exist ?

But a driver can start a service?

Also I have also imported NVIDIA Drivers (not by choice) (in 3rd screenshot). In case, I installed the latest drivers, it will simply rewrite the existing one right? So no problem on that?

CodingWonders commented 2 months ago

@gpstarman, it should not, as INF files don't add/start any services (they're just drivers). This may be that Windows is detecting the drivers and adding stuff automatically. Can you check out the setting shown in the screenshot below?

SystemPropertiesComputerName_sId1NfTCJC

  1. Open sysdm.cpl
  2. Go to the Hardware tab and click Device Installation Settings

As per the updated drivers, I think it should just work, but I'm not sure.

gpstarman commented 2 months ago

Screenshot 2024-07-11 062008 Also apparently, AcerCCAgentSvis is Acer Care Center and AcerQAAgentSvis is Acer Quick Access. (talking about task manager screenshots). [ so Svis is Service ? ]

SHR1SHAK commented 2 months ago

Screenshot 2024-07-11 015308 Screenshot 2024-07-11 020446

I can only get two of three. It's all overlapping each other and vanishes within a second.

I suspect that it happens because, I imported drivers NEVER CONNECTED THIS WINDOWS TO INTERNET. ( MAYBE THAT'S THE CAUSE DUE TO THE NEED OF INITIAL UPDATES )

May be this is the reason. Because, the OS I used to make the ISO had certain Acer apps (prominently Acer Care Center). And I imported drivers from it. From the keyborad it looks like @SHR1SHAK also uses an Acer laptop.

Screenshot from 2024-07-11 02-19-53

So I guess my new OS expects Acer Care Center (because it has drivers) and it does not exist ?

But a driver can start a service?

Also I have also imported NVIDIA Drivers (not by choice) (in 3rd screenshot). In case, I installed the latest drivers, it will simply rewrite the existing one right? So no problem on that?

Yes it is an acer laptop. But i still get these on my desktop as well.

CodingWonders commented 2 months ago

@SHR1SHAK, verify the setting shown in this comment and make sure it is set to No

SHR1SHAK commented 2 months ago

@SHR1SHAK, verify the setting shown in this comment and make sure it is set to No

I always set this to no. Also I have razer mouse and for some reason razer software (Bloat) will auto download I this is set to yes.

gpstarman commented 2 months ago

@SHR1SHAK, verify the setting shown in this comment and make sure it is set to No

So, I have to set it to No?

CodingWonders commented 2 months ago

@gpstarman, to avoid that behavior, yes. The driver will still do the basic communication with your hardware

SHR1SHAK commented 2 months ago

@SHR1SHAK, verify the setting shown in this comment and make sure it is set to No

So, I have to set it to No?

Set it to no. Because if the setting is on yes, Crosshair, Razer, Logitech, or anything that uses software it will download it when you connect and your PC gets bloated. You can download it manually afterward.

gpstarman commented 2 months ago

@gpstarman, to avoid that behavior, yes. The driver will still do the basic communication with your hardware

@CodingWonders Thank You man. I guess I'm good to go then.

Also I saw in your profile that you contribute to Microwin. So, I have a UX improvement request.

  1. It will be really cool to select that what packages are removed, instead of removing everything. (like an option to select)
  2. Same thing for Appx packages and provisioned packages. (it removes basic things like codecs)

Sorry If this is an inappropriate place to ask a request, but it's totally up to you guys, in the end of the day you are the one doing the work. So, thanks for that too.

gpstarman commented 2 months ago

@SHR1SHAK, verify the setting shown in this comment and make sure it is set to No

So, I have to set it to No?

Set it to no. Because if the setting is on yes, Crosshair, Razer, Logitech, or anything that uses software it will download it when you connect and your PC gets bloated. You can download it manually afterward.

Thank you.

CodingWonders commented 2 months ago

@gpstarman, you're welcome. Regarding the requests though, I'm more of a WinForms guy and I know next to nothing about WPF and XAML, so I can't work on that unfortunately

gpstarman commented 2 months ago

@gpstarman, you're welcome. Regarding the requests though, I'm more of a WinForms guy and I know next to nothing about WPF and XAML, so I can't work on that unfortunately

Fine, I'll raise this as a seperate feature request then.