Skip to content

Instantly share code, notes, and snippets.

{
"TaskType": "OSBuild",
"TaskName": "Win10 Ent 1803 x64 es-ES",
"TaskVersion": "19.1.24.1",
"TaskGuid": "ddb2c9d2-61db-4c97-873a-404be31c7161",
"CustomName": "",
"OSMFamily": "20180619215059Enterprise",
"OSMGuid": "4e54aff4-e3ce-4a3b-aa7d-4e62c52d87c5",
"Name": "Windows 10 Enterprise x64 1803 17134.112 es-ES",
"ImageName": "Windows 10 Enterprise",
@manelrodero
manelrodero / DISM1803.bat
Last active June 29, 2022 19:50
DISM Offline Servicing Windows 10 1803
@echo off
:: Script para relizar el 'offline servicing' de 'install.wim'
:: v1.3 13/09/2018 by inLabFIB
:: Basado en el tweet de Ari Saastamoinen: https://twitter.com/AriSaastamoinen/status/1010870453148311552
:: Referencias:
:: https://execmgr.net/2018/06/07/windows-10-image-maintenance/
:: https://miketerrill.net/2018/06/23/optimizing-win10-os-upgrade-wim-sizes/
:: https://www.osdeploy.com/osmedia/quick-start.html
@manelrodero
manelrodero / WriteToHKCUFromSystem.ps1
Last active September 27, 2022 11:45
Merge *.reg file to current user, all users and defaultprofile
# Writing Current User registry keys in SCCM as System
# https://tdemeul.bunnybesties.org/2022/04/writing-current-user-registry-keys-in.html
# Modificado 27/06/2022 para UPC (Entorno GET)
[CmdletBinding()]
param(
[Parameter(Mandatory = $true)]
[ValidatePattern('\.reg$')]
[string]$RegFile,
@manelrodero
manelrodero / Download-SoftwareForHydrationKit.ps1
Last active July 2, 2022 16:36
Script to download all the software needed to implement Johan Arwidmark's Hydration Kit
<#
.SYNOPSIS
Script to download all the software needed to implement Johan Arwidmark's Hydration Kit.
.DESCRIPTION
This script downloads all the software needed to implement Johan Arwidmark's Hydration Kit
(Windows Server, SQL Server, Configuration Manager, Windows ADK, etc.)
.NOTES
Created : 1 July 2022
@manelrodero
manelrodero / Export-WindowsServer2022WIMfromISO.ps1
Last active July 2, 2022 15:19
Script to extract the Windows Server 2022 Standard with Desktop Experience image from a Windows Server 2022 media
<#
.SYNOPSIS
Script to extract the Windows Server 2022 Standard with Desktop Experience image from a Windows Server 2022 media.
.DESCRIPTION
This script extracts the Windows Server 2022 Standard with Desktop Experience image from a Windows Server 2022 media.
.NOTES
Created : 1 July 2022
Modified : 2 July 2022
@manelrodero
manelrodero / Copy-SoftwareToHydrationKitDS.ps1
Last active July 2, 2022 16:16
Script to copy all the software needed to implement Johan Arwidmark's Hydration Kit to Deployment Share
<#
.SYNOPSIS
Script to copy all the software needed to implement Johan Arwidmark's Hydration Kit to Deployment Share.
.DESCRIPTION
This script copies all the software needed to implement Johan Arwidmark's Hydration Kit
(Windows Server, SQL Server, Configuration Manager, Windows ADK, etc.) to MDT Deployment Share.
.NOTES
Created : 1 July 2022
@manelrodero
manelrodero / New-DiskpartRecovery.ps1
Created September 30, 2022 20:46
Create Recovery partition using diskpart.exe (Task Sequence)
$tsenv = New-Object -COMObject Microsoft.SMS.TSEnvironment
$LogPath = $tsenv.Value("_SMSTSLogPath")
$UEFI = $tsenv.Value("_SMSTSBootUEFI")
If ($UEFI -eq $TRUE) {
"select disk 0", "list partition", "select partition 3", "shrink desired=984 minimum=984", "create partition primary", "format quick fs=ntfs label=Recovery", "set id=`"de94bba4-06d1-4d40-a16a-bfd50179d6ac`"", "gpt attributes=0x8000000000000001", "list partition" | diskpart.exe | Tee-Object -FilePath "$LogPath\Create-RecoveryPartition.log"
}
else {
"select disk 0", "list partition", "select partition 2", "shrink desired=984 minimum=984", "create partition primary", "format quick fs=ntfs label=Recovery", "set id=27", "list partition" | diskpart.exe | Tee-Object -FilePath "$LogPath\Create-RecoveryPartition.log"
}
@manelrodero
manelrodero / adobe_prtk.bat
Created October 3, 2022 11:18
Script para serializar Adobe Acrobat DC usando adobe_prtk.exe
@echo off
setlocal
echo Copiando 'AdobeExpiryCheck.exe' a '%temp%' ...
copy /y AdobeExpiryCheck.exe %temp% > nul
echo Copiando 'adobe_prkt.exe' a '%temp%' ...
copy /y adobe_prtk.exe %temp% > nul
@echo off
:: https://learn.microsoft.com/en-us/archive/blogs/askds/a-treatise-on-group-policy-troubleshootingnow-with-gpsvc-log-analysis
:: https://learn.microsoft.com/en-us/answers/questions/120736/gpos-not-applied-ad-group-issue.html
:: http://www.sysprosoft.com/policyreporter.shtml
echo GPO Debug Activation:
echo - Adding "GPSvcDebugLevel" registry key...
reg add "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Diagnostics" /v "GPSvcDebugLevel" /t REG_DWORD /d 0x00030002 /f > nul
@manelrodero
manelrodero / WSL-WSL2-Install.ps1
Created October 23, 2022 11:31
Install WSL/WSL2 (Windows 10 2004+)
# Instalación manual en versiones anteriores a Windows 10 2004
# https://docs.microsoft.com/en-us/windows/wsl/install-manual
#
# - Instalar Feature Microsoft-Windows-Subsystem-Linux
# - Instalar Feature VirtualMachinePlatform
# - Reiniciar el ordenador
# - Instalar Linux Kernel Update (MSI) https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
# - Fijar WSL2 como versión por defecto
# dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart