Need shell startup help (disable services)

superpeon2002

New Member
I need someone to help me I already have my batch and in the few videos I watched on youtube it tells me to put it in shell:startup until there when I enter my virtual machine I start my test windows if you open the script then I restart it and continue the command appearing again I wanted to know how I can do so that the script is only executed once and hide the commands thanks and excuse my ignorance greetings to the creator of NTLITE very good program

Ícono de validado por la comunidad
 
There's no need to edit autounattend.xml to add batch commands. NTLite can run your batch file from the Post-Setup section.

If you need to run as SYSTEM, add your command to Machine - Execution (top half of section)
If you need to run as you (after logon), add your command to User - Execution (bottom half).
 
Ah okay thanks I don't know how to use NTLite post setup there it tells me there parameters and I don't know what to put so I do it manually in explorer mounty directory but when I place the batch in shell startup it runs but every time I restart it runs me I want the bat to open only 1 time

Ícono de validado por la comunidad
 
Parameters are optional. Click inside the User - Execution window to select that window. Add your batch file as Add -> File.
Post-Setup commands are executed once.
 
Ok, thanks, I'm going to try, I'll put it without putting anything in the parameters, I'll try it there to see what happens, thanks.
 
I already tried it but it doesn't work it stays loading services starting I get it and it turns and turns and turns it never appears nor does the batch that I put where you said and it doesn't appear or windows now I want it to start after installing all the windows I think I know runs when it is in full installation and produces errors
 
This would be easier if you could detail what your batch script does (or post it if it's short).
 
It is a batch that deactivates services and just to test I deactivate 1 service, windows search but it does not open the batch and it adds regedits and then I want to add more things but I want to make an optimized windows there are already many like os kernel ggOS that when starting a batch appears and you tell yourself that you want to deactivate bluettoh put yes or no but I put the batch and nothing appears debloat batch.
 
:disable @echo Disabling Services.... reg add "HKLM\SYSTEM\CurrentControlSet\Services\" /v "Start" /t REG_DWORD /d "4" /f
 
There's nothing wrong with NTLite, but you don't have a correct understanding of how services are disabled.

Every service has its own Start Type, which controls how it's launched by Windows:
  • Automatic – service starts at boot
  • Automatic (Delayed Start) – service start after boot
  • Manual – starts service manually as needed
  • Disabled – stops service from running
When you disable a service using a reg key, it's marked as disabled for the next time Windows boots. The same service (if running) is untouched by the "reg add" command.

To disable services on a live system, many guides will instruct you to run:
Code:
net stop "SERVICE NAME"
sc config "SERVICE NAME" start=disabled

To disable services in the install image, there are two methods:
1. [Licensed NTLite] Simply disable the named service from Services.

2. [Free] Create a registry file, add your list of disabled services, and import into Registry.
Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ServiceName]
"Start"=dword:00000004
 
Look for the three dots "..." in the top right corner of this thread. Edit thread -> Update title to "(Solved) ... "
 
Back
Top