Make Windows start a .exe at booting fast [closed] - windows

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I bought a notebook recently and will give it to someone else on their birthday. That person, however, is not good with computers yet and so I wanted to create a full-screen app that would introduce them to the computer. The app works perfect, the thing is just that I need it to start when logging in to their account (just once, too, obviously).
I know there's a folder in which you can place executables that then will be executed at login, however, that is simply not fast enough.
When the PC boots and the automatic login is done, the desktop is shown for about 3 minutes until the full-screen app finally opens (the laptop is not really a powerhouse tbh though).
How can I make it open the app faster? Or could I maybe make Windows not start explorer.exe until my app is open? Thanks.
(OS is Windows 10)

There are multiple ways to do this.
One is by using registry. You can add necessary registry entry under:
HKEY_CURENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce
This would run your application right after the user logs in.
Another one would be to create a new task through Task Scheduler:
When creating tasks you have lots of option to control when it starts. You can start it at log-on of specific user, you can start it even before user log-on so you can explain the user of how to properly log-on to the computer, etc.
You can also control if this task is executed once or every time.
I personally would go for second option as it does not require any manual registry editing and therefore it can be setup even on non-administrative account.

You can change the registry to accomplish this.
You can modify the "Shell" key at
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
to the full path of your program.
This should replace explorer.exe and your program should start "explorer.exe" and set this registry's value back to "explorer.exe" after it's started.
References:
How can I start up Windows without explorer loading up?

Related

Continuosly kill Microsoft Windows processes [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed yesterday.
Improve this question
Windows keeps randomly running processes.. and I don't want it to.
Search Indexer (if I deactivate it, Windows will cry in all places that it is deactivated, on the other side, the benefit of Windows Search is negative. It doesn't work, but uses CPU). So I want to keep killing it, without the system complaining that search is deactivated and now.. search which isn't working in any state of windows is "not working".)
Logitech Hub (I sometimes don't want it running, restarts anyways)
and others
So basically I want a bit of control what is running on my Windows Notebook.
I am looking for a script that I start which works with txt list of processes that it kills on a continous basis.
Any ideas?
I tried killing the processes manually, but Windows superseeds my intent.
Ideally it should not be a new tool to install, but rather running cmd in the background

Delete old entries of the event-log with PowerShell or CMD? (Not all of them | With period of time condition) [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed last month.
Improve this question
Please take a look at these two threads :
how-to-clear-eventlog-with-powershell-or-wevtutil
delete-old-entries-of-the-event-log-with-powershell
Some days ago some body stole my password of wi-fi and connected to it.
After connect he hacked my windows 7 pc through home network.
Something is so strange for me.
After hack he deleted all wi-fi logs for two moths ago.
I never do that because i even did n't know there is a wi-fi log in my pc.
Check here for wi-fi logs & it's location
How is that possible because people say you can't delete event logs in period of time by command.
Just tell me how could he do that?
Does he have GUI access to my pc?
I am so confused because of this action?
Almost anything is possible if you have administrator rights on a machine
There is no built-in function to delete only certain logs, but one example way to do this is simply export all logs except the ones you want, then replace the original log file with your filtered log. The built-in wevtutil can do this pretty easily:
# filter out events on 2022-05-11
# export to test.evtx
wevtutil epl Application test.evtx "/q:*[System[TimeCreated[#SystemTime<='2022-05-13T23:00:00.000Z' and #SystemTime>='2022-05-10T04:00:00.999Z']]]"
That aside - Windows 7 stopped receiving security patches in January of 2020, so consider upgrading your operating system for the future.
If you think that person could still have access to your computer, then your best action is to is to wipe it and start over. A computer repair service should be able to help you do this and keep your important files.

Which ways are there to start a program at windows startup from regedit? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
Well, my question is not really about a problem but more of a general question.
I know that it is possible to start an executable by creating a new registry key in:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
Are there other ways like this to Autorun a program?
Does them require administrator priviledges?
Thanks.
Here's some other ways to autostart programs at startup
Startup folders
You have two folders that will autorun executable in Windows. This one will start a program only for a specific user:
C:\Users\YOUR SESSION\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
And this one for all users:
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp
Or you can press Windows Key + R and enter
shell:startup
for the current user, or:
shell:common startup
for all users
Task Scheduler
You can plan a task to run a program at startup (or periodically!) on your computer. You have plenty tutorials on the internet if you want it's pretty easy to setup.
Windows Service
Last option is to create a Windows Service in C#. I don't really know for this option as I try it once a while back and in the end I ended doing something else.
You can look it up too on Google
From the regedit tool I believe you can only do like you just said.
There is a little variation if you want. Your path will only start the program for the current user.
If you want to do the same but for all users you have this path:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
Do you absolutely want to start an executable from regedit ? Because you have other ways to do so in Windows

Windows 7 Safe Mode in minimal option keep on looping [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have run msconfig and select safe mode in minimal option. After restarting, it keeps on loading repeatedly. I have tried to select Last Known Configuration but it returns back on loading. I could not log on and disable the safe mode in minimal. There is one option, to repair it . If I choose to repair Windows, will it go back to normal mode?Are all files still intact even if I proceed to repair it? I never had tried this option. Please help me. Are there any options other than repairing Windows to go back in normal mode?
thank you.
It seems like your facing a thing called infinite loop. This is probably caused because your bootmanager file is corrupted. You can try fixing it by using the link that opens when you click bootmanager in the previous sentence (requires some knowledge of Windows).
If you want to learn more about the bootmanager (and how it works) click here. Although you should only read it when you are interested in fixing it manually (requires some knowledge of Windows).
To answer your original question, whenever you select an option from the start-up repair screen that will remove some of your personal files it will tell you before deleting anything.
I've also faced this problem (it wasn't really the same as yours, but there are multiple issues that are called infinite loop as they are caused by the same error). I've ended up re-installing Windows. The good thing of Windows 7 is that whenever you re-install Windows it will ask you if you want to keep your old files, if you decide to keep the old files the installer will automatically add a folder to you main drive (usually C) named Windows.old which will contain your old data. Note that documents, your desktop and pictures etc. are saved, your Program Files directory will be copied to, but you will probably need to re-install all your programs. But in the end, you will keep your documents.

Prevent Windows from Logging Off (or Shutting Down) using windows settings [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm a system administrator who has full administrative access to a computer lab which dual boots windows and mac machines. I'm looking for a way to prevent users from logging off or shutting down the computer (until my kbox / radmind / bash scripts run at the end of the day.)
Even if you would suggest implementing Active Directory / kiosk mode / other more administratively sound solutions, please don't. Many of the users need administrator access to the computers in order to install their own stuff (albeit temporarily) on the machines. I reimage all of the machines remotely at the end of the day, and I'm confident in that process.
The irony of the situation is that by giving the users administrative access, they could theoretically reverse my changes and find the hidden log off button, or use cmd to shutdown the computer. Don't worry about that. Most, if not all, of the users will be too lazy.
So how do I properly hide the log-off button that is usually at the bottom of the start menu? And how do I hide it on the task manager?
I've tried editing the group policy (gpedit.msc) as specified here. It doesn't work / I'm not sure which options to definitively enable to remove the button.
Using software is an option, but Windows is smart enough to have a force logoff override thingy if a program is blocking shutdown or logoff. Which sucks for me.
Thank you all so much.
There are group and local policies available to remove Log Off from both the Start Menu and the Ctrl-Alt-Del screen.

Resources