Remove Components from Windows 10 like ntlite does [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 4 years ago.
Improve this question
I only started to program c++ half a year ago, and would be so happy if you could just help me out by giving me a point to start with.
I want to understand how ntlite removes drivers from the iso.
I want to know what do I need to learn/know/read about to program
a tool myself that removes stuff like that. For example the w-lan drivers
or Cortana.
By researching I came across:
the windows registry
powershell
...and that's it. Nothing like "learn the powershell to tweak your system tutorial" and before I start reading a book about these topics, I wanted to know if it is the right way to achieve my goal?
I am sorry if my question is unwelcome or stupid. I just want to learn about
these things and can't find the right way to start.
Thanks in advance!

If you want to remove elements from Windows, you can do that using the Add-WindowsOptionalFeature and Remove-WindowsOptionalFeature PowerShell Cmdlets.
Let's say you wanted to remove the new Calc.exe and return to the old, correct Calc.exe app.
You can do that in your running Windows Instance using this command (when running PowerShell as an Administrator)
Disable-WindowsOptionalFeature -Online -FeatureName "Calc" -PackageName
"Microsoft.Windows.Calc.Demo~6595b6144ccf1df~x86~en~1.0.0.0"
If you wanted to remove it from a Windows Image instead, first you have to mount the Windows image by mounting install.wim from the disc using the Mount-WindowsImage cmdlet, like this.
Mount-WindowsImage -ImagePath "c:\imagestore\install.vhd" -Index 1 -Path "c:\offline"
This would mount the image to your c:\Offline folder. The folder needs to exist first, BTW.
Next, to disable the feature in the Windows Image.
Disable-WindowsOptionalFeature -Path "c:\offline" -FeatureName "Calc" -PackageName
"Microsoft.Windows.Calc.Demo~6595b6144ccf1df~x86~en~1.0.0.0" -Remove
When that's done, you save the changes using:
Dismount-WindowsImage -Path "c:\offline" -Save
NtLite and these PowerShell tools all use the Deployment Image Servicing Manager tool, DISM, and its C# libraries to actually enact the changes. If you want to know more, read this and this.

Related

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

Make Windows start a .exe at booting fast [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 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?

Can't run windows executable in Wine on Mac [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
Getting this output: http://pastebin.com/PzQULCtx
Trying to run program called Chess Position Trainer with Wine on my Mac. I have tried VMs but they make the program run way too slow. A friend suggested Wine but I'm having trouble getting to running. I made a prefix with WineBottler to create the app. When I click on the .exe it bounces on my dock for a bit and then closes. When I try to run it through my terminal it gives me that above output. Tried googling this issue but not gleaning anything from my search. Any ideas?
You need to find the location of the Wine installation by running the program directly, one of the optional File paths is the location of the Wine or for mac you should be using the new version WineBottler which is now trademarked for Mac OS X and included Wine and Winebottler. Once you run the program directly your .exe will be in the system files in the same way Windows would store the files under Wine-1.7/Program Files. You might want to reinstall so that you have an easily accessible folder. Make sure to delete all Wine Folders first if you do so. Right now I'm trying to get serial bus and internet functionality within my applications and the new version includes a list of optional services called winetricks that can be applied from the menu, but right now I'm staring at a seemingly hung DOT NET 3.5 SP1 which I'm probably going to let run all day because if it's installing service packs, I've seen those take weeks on old Windows computers.

'ping' is not recognized as an internal or external command operable program or batch file error [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
When I do ping www.google.com I get the error message
'ping' is not recognized as an internal or external command operable program or batch file.
Here is an example:
Then:
What could I be doing wrong?
I'm using Windows 7, 64 bit
There was some tutorial online that said to look up Systems32. And that didnt even show up. In the search at the image there
I have also restarted my computer
I've had this for over 6 months and its really beginning to cause me problems.
Also if you believe this is off topic please explain first :P
Most likely something has removed the system32 directory from your path. Have you installed the Java SDK? It has a reputation for doing that.
To check this, at the command prompt type path (followed by enter)
If c:\windows\system32 isn't there, it needs to be added back in. To do this:
From the desktop, Right click 'Computer', click 'Properties'
then click 'Advanced system settings'
- this should bring up the System Properties - Advanced tab
Click 'Enviornment Variables'
Select the system variables 'PATH'
Edit PATH and add this line to the front
c:\windows\system32;
or to be generic (in case you've installed windows on a different drive)
%SystemRoot%\system32
Start a new command window to check if this has worked (or reboot)
existing command windows will use the old path
Assuming you are using Win 64bit version of windows. Go under C:\Windows\SysWOW64 and see if you can find PING.EXE under the folder. If not, go download one. Someone or something(virus) might have deleted it
Edited: Go under C:\Windows\System32 to find PING.EXE if you are using 32 bit.

are terminals full screen on windows 8? [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
This is a pretty small thing, but I have been getting into more and more windows coding, and recently began finding myself in a terminal (msysgit, powershell). However, something that bugs the CRAP out of me is that there is no full screen modes, and they have to be resized
So my question:
For any windows 8 users, are terminals (msysgit, powershell, cmd) maximable / customizable at all?
I HAVE used console2 (http://www.hanselman.com/blog/Console2ABetterWindowsCommandPrompt.aspx), but while it is resizable, it does not maximize.I am weighing if whether my next computer will be a mac or windows, and this info will be useful in making that decision. I am getting tired of crazy work-arounds to get simple things changed in windows.
Windows doesn't really have "terminal" windows (except for those provided by a third party). Windows has a console subsystem which PowerShell, cmd.exe and any other console program you write, run in. The Windows console subsystem is old, hasn't changed much and is definitely showing its age. While there is a maximize button on every console window, as you have no doubt noticed, it doesn't maximize the window to full screen.
For script editing, I would use PowerShell_ISE or Visual Studio with the PowerShell Tools for VS add-in. To enable a number of BASH-like line editing features in PowerShell, you should check out PSReadLine on GitHub. It makes using PowerShell much nicer.

Resources