Day: August 13, 2014

  • Run VBScripts OSD Task Sequence

    Backup RegistryREG EXPORT HKLM\Software\Microsoft\COM3 %temp%\com.reg /y Change Registry KeyREG ADD HKLM\Software\Microsoft\COM3 /v REGDBVersion /t REG_BINARY /d 010000 /f Move Computer to New OUwscript.exe Move_Comp_To_OU.vbs “OU=New,OU=Computers,OU=XX,DC=XX,DC=XX”Disable 64-bit file system redirectionPKG_XX_OSD_ScriptsXX.XX\srv-dom Restore Registry BackupREG IMPORT %temp%\com.reg

  • WMI Queries

    root\cimv2SELECT * FROM Win32_ComputerSystem WHERE Manufacturer LIKE “%DELL%” root\cimv2SELECT * FROM Win32_ComputerSystem WHERE Model LIKE “%CF-53%” root\cimv2SELECT * FROM Win32_BaseBoard WHERE Product LIKE “%P5B-TMX%” root\cimv2SELECT * FROM Win32_ComputerSystem WHERE Systemtype LIKE “%x64%” Quick check run -> wmic baseboard get product,manufacturer-> wmic computersystem get model,name,manufacturer,systemtype-> wmic diskdrive get model

  • Install Fonts on Windows 7 OSD Task Sequence

    Copy Fonts to Tempxcopy *.ttf %SystemDrive%\Temp /Y /I /QPKG_XX_XX Set PowerShell Execution PolicyPowershell.exe -noprofile -command “Set-ExecutionPolicy Bypass LocalMachine” -force Run Add-Font.ps1Powershell.exe -noprofile -file Add-Font.ps1 -path “%SystemDrive%\Temp”PKG_XX_OSD_Scripts Revert PowerShell Execution PolicyPowershell.exe -noprofile -command “Set-ExecutionPolicy RemoteSigned LocalMachine” -force Remove C:\Tempcmd.exe /c rmdir “%SystemDrive%\Temp” /S /Q