New
#1
Help creating a migration batch properly
hello there my friends im in a migration process, and i need to create this batch properly
what i need are 2 things:
1) to this batch create a sub batch with mapped drives
*so far where im stuck in, is in doing net use >> g:\%username%\migracion_vieja\mapped drives.txt
*but idk how to do a batch file from that txt wich is telling me the path of the current mapped drives to import then from doing a bath file.
2) to export connected networks printers into a txt
this is my batch, is in spanish so im sorry in advance for that. basicly what is doing is exporting to a txt system info, like hostname, operative system name, domain, etc.
@echo chequeando informacion pc vieja
mkdir g:\%username%
mkdir g:\%username%\migracion_vieja
systeminfo | find /i "Nombre de host" >> g:\%username%\migracion_vieja\Nombre_De_Host_vieja.txt
systeminfo | find /i "Nombre del sistema operativo" >> g:\%username%\migracion_vieja\Nombre_del_sistema_operativo_vieja.txt
systeminfo | find /i "Dominio" >> g:\%username%\migracion_vieja\Dominio_vieja.txt
systeminfo | find /i "Fabricante del sistema" >> g:\%username%\migracion_vieja\Fabricante_Del_Sistema_vieja.txt
systeminfo | find /i "Modelo el sistema" >> g:\%username%\migracion_vieja\Modelo_Del_Sistema_vieja.txt
systeminfo | find /i "Tipo de sistema" >> g:\%username%\migracion_vieja\Tipo_De_Sistema_vieja.txt
ipconfig >> g:\%username%\migracion_vieja\ip_vieja.txt
@echo Completeda migración vieja!
thanks in advance and forgive for my english if is not clearly what i need =)
Best regards jonathan
Last edited by darthmalakit; 05 Oct 2019 at 14:13.