He realizado un cambio en el script (javaV3.bat) usado para instalar java para eliminar las versiones antiguas en el mismo proceso.
Este es el repositorio de github
Enjoy!
Culex.
He realizado un cambio en el script (javaV3.bat) usado para instalar java para eliminar las versiones antiguas en el mismo proceso.
Este es el repositorio de github
Enjoy!
Culex.
Hello everyone,
Hoy tenemos tres scripts the Powershell que nos ayudan a la hora de cambiar el nombre de una maquina, añadirla a un dominio o borrarla de un dominio.
ChangeComputerName.ps1
AddComputerToDomain.ps1
RemoveComputerFromDomain.ps1
El código lo podéis descargar aquí. DomainTools
Enjoy!
Culex.
Hello everyone,
Después de unas cuantas semanas lockdown volvemos a la carga con una serie de scripts de Powershell que pueden ser útiles para los administradores de sistemas.
El primero de ellos nos permites obtener un listado del software instalado en una serie de maquinas.
InstallSoftByComputer.ps1
Solo es necesario proporcionar un fichero con el listado de equipos que queremos consultar y 'voila'
El código lo podéis descargar aquí. Software Instalado
Enjoy!
Culex.
Algo que parece trivial siempre se puede complicar un poco y nos obliga a usar la materia gris para resolver el problema.
Necesitaba instalar NFS server en un windows server 2016 y después de fallar dos veces me parecía muy extraño porque es algo que no tiene dificultad alguna.
Mirando un poco los logs de windows vi que era algo relacionado con el puerto que usa NFS, el 111 y el 2049
Port 111 (TCP and UDP) and 2049 (TCP
and UDP) for the NFS server
Pensé que algún otro proceso debía tenerlo en uso y efectivamente así era, usando el comando netstat puedes ver el identificador del proceso (PID) que usa un puerto en concreto.
netstat -aof | findstr :111
En el ejemplo vemos que esta usado por el PID 8620
Luego usando el task manager vimos, que efecto, estaba en uso por un proceso de ARCServe
Alguna veces despues de ejecutar el comando - Sysprep /generalize /shutdown /oobe - puede aparecer este error.
Para solucionarlo hay que hacer lo siguiente:
Import-Module appx
Import-Module dism
Get-AppxPackage -AllUsers | Remove-AppxPackage
Mirar si ya tienes algún usuario ya existe. Y eliminarlo.
Culex.
Sometimes I have found this error when you run this command (Sysprep /generalize /shutdown /oobe)
In this situation you have to do the next:
Here you are a guide for making windows images using sysprep. This can be useful if we have to set up several computers that share the same/similar configuration.
Once we have the list we need to made up two Powershell scripts, once for removing the provision of the apps and another one for uninstalling them.
The first one should have next structure:
DISM /Online /Remove-ProvisionedAppxPackage /PackageName: (Package name)
Get-AppxPackage “(Package name)” | Remove-AppxPackage
Note: If posible we have to actívate script execution on Powershell using next command
Set-ExecutionPolicy Unrestricted.
Once the scripts have been run we have to roll back the script execution policy using next command.
Set-ExecutionPolicy Default
This command runs Sysprep and leave the computer ready for creating the image.
We pay attention to the drive letter assigned and run following command.
dism /capture-image /imagefile:c:\Install.wim /capturedir:( assigned letter):\ /name:"Windows 10 Pro" /Description:"Windows 10 Pro" /compress:maximum /checkintegrity /verify /bootable
Once the proccess has finished we split the “Install.wim” on order to be able of using FAT32 formar.
Dism /Split-Image /ImageFile:Install.wim /SWMFile:install.swm /FileSize:3800
Now we mount the ISO we have used for installing the VM and copy
everything on a folder (e.g. \myWindosImage) . This folder Will be use for
creating the final installation media.
We replaced the original “Install.wim” o “install.esd”, on folder “\myWindosImage \sources” for the files “Install.swm, Install2.swm…” we created previously and finally we copy everything on a USB stick with system file FAT32
Here you are the files I’ve used for this example.
Enjoy.
Culex.