Optimizar maquina virtual w7

De Wiki do Ciclo ASIR do IES de Rodeira

Optimizando a MV de W7

  • 00-MenosRecursos.bat: Deshabilita diversas funcións de Windows co oxectivo de aumentar o rendemento
@echo off
REM ---------------------------------------------------------------
REM Deshabilitamos varios servizos e as actualizacións automaticas
REM co obxectivo de aumentar o rendemento da MV
REM Setembro 2016
REM ---------------------------------------------------------------


rem Desactivar descargar actualizacións
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v AUOptions /t REG_DWORD /d 1 /f
rem Compilador de extremo de audio de Windows
rem net stop audioEndpointintBuilder
rem Audio de Windows
net stop AudioSrv
sc config AudioSrv start= disabled
rem Cifrado
net stop CryptSvc
sc config CryptSvc start= disabled
rem Archivos sin conexión
rem net stop CscService
rem Servicio de Compatibilidad de porgramas
rem net stop PcaSvc
Rem Programador de tarefas
rem net stop schedule
Rem Servicio de notificación de eventos de sistema
rem net stop sens
Rem Cola de impresión
net stop spooler
sc config spooler start= disabled
Rem Temas
net stop Themes
sc config Themes start= disabled
rem Cliente de seguimiento de vínculos distribuídos
rem net stop TrkWks
Rem Windows Defender
net stop WinDefend
sc config Windefend start= disabled
Rem windows Search
net stop WSearch
sc config WSearch start= disabled
Rem Window Update
net stop wuauserv
sc config wuauserv start= disabled
  • 01-RenovarWindows.bat: Permite extender o periodo de gracia de Windows outros 30 días
@echo off
: ---------------------------------------------------------------------------
: Cando instalamos Win7 sen activalo temos un perido de gracia de 30 días
: O seguinte comando permítenos renovar ese periódo ata 4 veces
: Polo que poderíamos extender o periódo de proba ata os 120 días
: ---------------------------------------------------------------------------
slmgr -rearm

: Para saber cantas veces máis podemos renovar o periódo de gracia
:slmgr -dlv
  • 01-RestaurarServiciosWindows.bat: Permite restaurar os Servicios de windows 7 o seu estado por defecto
@echo off

REM ------------------------------------------------------------
REM Restaura os servicios de Windows 7 o seu estado por defecto
REM 	Rojas 06/2016
REM Útil para virus do pendrive
REM ------------------------------------------------------------

REM Configurar inicio de servicios
REM sc config nomeServicio start= [demand | auto | disabled ]

REM Exportar lista y estado de servicios
REM www.nirsoft.net
REM serviwin

REM ------------------------------------------------------------
REM 			Inicio automático
REM ------------------------------------------------------------

sc config AudioEndpointBuilder start= auto
sc config BFE start= auto
sc config Dhcp start= auto
sc config Dnscache start= auto
sc config DPS start= auto
sc config eventlog start= auto
sc config EventSystem start= auto
sc config FDResPub start= auto
sc config FontCache start= auto
sc config LanmanServer start= auto
sc config LanmanWorkstation start= auto
sc config lmhosts start= auto
sc config MMCSS start= auto
sc config MpsSvc start= auto
sc config NlaSvc start= auto
sc config nsi start= auto
sc config PcaSvc start= auto
sc config PlugPlay start= auto

sc config SamSs start= auto
sc config SENS start= auto
sc config ShellHWDetection start= auto
sc config sppsvc start= auto
sc config SysMain start= auto
sc config TrkWks start= auto
sc config UxSms start= auto
sc config Winmgmt start= auto
sc config wscsvc start= auto
sc config CscService start= auto
sc config iphlpsvc start= auto
sc config ProfSvc start= auto
sc config Power start= auto
echo xxxxxxxxxxxxxxFallan xxxxxxxxxxxx
echo Fallan Programador de Tareas
echo Iniciador de Procesos de servidor DCOM
echo Cliente de directiva de grupo
echo Asignador de extremos RPC
echo LLamada a procedimiento remoto
sc config Schedule start= auto
sc config DcomLaunch start= auto
sc config gpsvc start= auto
sc config RpcEptMapper start= auto
sc config RpcSs start= auto
echo Fin auto

REM ------------------------------------------------------------
REM 			Inicio Manual
REM ------------------------------------------------------------


sc config AeLookupSvc start= demand
sc config ALG start= demand
sc config AppIDSvc start= demand
sc config Appinfo start= demand
sc config AppMgmt start= demand
sc config AudioSrv start= demand
sc config AxInstSV start= demand
sc config BDESVC start= demand
sc config BITS start= demand
sc config Browser start= demand
sc config bthserv start= demand
sc config CertPropSvc start= demand
sc config COMSysApp start= demand
sc config defragsvc start= demand
sc config dot3svc start= demand
sc config EapHost start= demand
sc config Fax start= demand
sc config fdPHost start= demand
sc config FontCache3.0.0.0 start= demand
sc config hidserv start= demand
sc config hkmsvc start= demand
sc config HomeGroupProvider start= demand
sc config idsvc start= demand
sc config IKEEXT start= demand
sc config IPBusEnum start= demand
sc config KeyIso start= demand
sc config KtmRm start= demand
sc config lltdsvc start= demand
sc config MSDTC start= demand
sc config MSiSCSI start= demand
sc config msiserver start= demand
sc config napagent start= demand
sc config Netlogon start= demand
sc config Netman start= demand
sc config netprofm start= demand
sc config p2pimsvc start= demand
sc config p2psvc start= demand
sc config PeerDistSvc start= demand
sc config PerfHost start= demand
sc config pla start= demand
sc config PNRPAutoReg start= demand
sc config PNRPsvc start= demand
sc config PolicyAgent start= demand
sc config ProtectedStorage start= demand
sc config QWAVE start= demand
sc config RasAuto start= demand
sc config RasMan start= demand
sc config RemoteRegistry start= demand
sc config RpcLocator start= demand
sc config SCardSvr start= demand
sc config SCPolicySvc start= demand
sc config SDRSVC start= demand
sc config seclogon start= demand
sc config SensrSvc start= demand
sc config SessionEnv start= demand
sc config SNMPTRAP start= demand
sc config sppuinotify start= demand
sc config SSDPSRV start= demand
sc config SstpSvc start= demand

sc config stisvc start= demand
sc config StorSvc start= demand
sc config swprv start= demand
sc config TabletInputService start= demand
sc config TapiSrv start= demand
sc config TBS start= demand
sc config TermService start= demand
sc config THREADORDER start= demand
sc config TrustedInstaller start= demand
sc config UI0Detect start= demand
sc config UmRdpService start= demand
sc config upnphost start= demand
sc config VaultSvc start= demand
sc config vds start= demand
sc config VSS start= demand
sc config W32Time start= demand
sc config wbengine start= demand
sc config WbioSrvc start= demand
sc config wcncsvc start= demand
sc config WcsPlugInService start= demand
sc config WdiServiceHost start= demand
sc config WdiSystemHost start= demand
sc config WebClient start= demand
sc config Wecsvc start= demand
sc config wercplsupport start= demand
sc config WerSvc start= demand

sc config WinHttpAutoProxySvc start= demand
sc config WinRM start= demand
sc config Wlansvc start= demand
sc config wmiApSrv start= demand
sc config WPCSvc start= demand
sc config wudfsvc start= demand
sc config WwanSvc start= demand
  • 02-HabilitarAdministrador.bat: Habilita o usuario administrador, e converte a usuario en limitado
@echo off

REM ---------------------------------------------------------------
REM Habilitamos a conta do usuario administrador e póñemoslle como contrasinal abc123.
REM Convertirmos a usuario en limitado
REM Útil para securizar Windows recén instalados
REM ---------------------------------------------------------------

:Habilito e poño contrasinal en administrador

net user administrador /active:yes
net user administrador abc123.

: Converto a usuario en Usuario Limitado

net localgroup usuarios usuario /add
net localgroup administradores usuario /del

: Outros comandos útiles

	: Amosar grupos locais
	: net localgroup
	: Amosa os grupos os que pertence o usuario
	: whoami /groups