viernes, 20 de julio de 2012

Scripts para Windows / Scripts for Windows


Para crear el script:
  1.  Abre el bloc de notas de Windows
  2. Copia el código al Bloc de notas
  3. En Menú selecciona: "Guardar como."
  4. En Tipo escoge: "Todos los archivos" 
  5. Escribe en Nombre el nombre que quieras asignarle seguido de la extensión de archivo .bat.
  6. Asegúrate que el archivo creado no termine en .txt y que tome el icono de un engranaje.
**
To create the script:
  1. Open the Windows Notepad
  2. Copy the code to Notepad
  3. Menu select "Save As."
  4. Output file choose "All Files"
  5. Type the name you want followed by the file extension. Bat.
  6. Make sure the file created does not end in. Txt and take the icon of a gea
 **

Códigos:


Mostrar la configuración actual de TCP/IP - Show the current configuration of TCP / IP

@echo off
netsh interface ip show config

Conocer dirección IP asignada al equipo - IP address assigned to the computer

@echo off
ipconfig|FINDSTR "Dirección IPv4"

Borrar los archivos temporales de IE - Delete temporary files in Internet Explorer:

@echo off
START RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8


Iniciar firewall de Windows - Start Windows Firewall

@echo off
start firewall.cpl

Iniciar firewall con seguridad avanzada - Start Firewall with Advanced Security

@echo off
start wf.msc

Restaurar la configuracion predeterminada del Firewall - Restore default settings of the Firewall


@echo off
netsh firewall reset

Muestra los puertos abiertos habilitados - Shows open ports enabled

@echo off
netsh firewall show portopening

Habilitar firewall - Enable Firewall

@echo off
netsh firewall set opmode Mode= enable

Deshabilitar firewall - Disable Firewall

@echo off
netsh firewall set opmode Mode = disable


----------------------------------------------------------------------------




No hay comentarios:

Publicar un comentario