03 August, 2009

do a smart .NET 3.5 install...

The main problem (as I see it) with the .NET install, that it is not "smart" enough. I mean run it once or twice it will allways run the same install.
If you want to make sure your clients is .NET "enabled" just use my small startup script (or SCCM).

==========================================

reg query "HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5" /v Version | findstr "v3.5"
if %errorlevel%==0 goto end

"%~dp0dotnetfx35.exe" /q /norestart
exit /B %errorlevel%

:end
==========================================

02 August, 2009

run script only when the user got his desktop

Hi,

I had a problem, I needed to change all the workstations screen resolution at my client network.

I found a cool small tool named ResSwitch, the problem with it that it can only run when a user has it's desktop loaded.

I added the following lines to chack if the user desktop is ready.

====================================
:check_4_explorer
tasklist find "explorer"
if %errorlevel% == 1 goto check_4_explorer

"%~dp0ResSwitch.exe" /WIDTH:1280 /HEIGHT:1024
====================================