ReneGe
asked on
Batch File: Is ".NET" 2.0 or higher installed on remote PC
Hi there,
I need a batch file that will tell me if a remote PC, has .NET 2.0 or higher installed.
Expected output: Yes or No
NOTE:
-I am domain admin
-All PCs are XP Pro
Thanks for your help,
Rene
I need a batch file that will tell me if a remote PC, has .NET 2.0 or higher installed.
Expected output: Yes or No
NOTE:
-I am domain admin
-All PCs are XP Pro
Thanks for your help,
Rene
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
FYI,
Here is my final script.
Here is my final script.
@echo off
SETLOCAL enabledelayedexpansion
SET MustUpdate=Yes
SET LogFile=%~n0.log
IF EXIST "%LogFile%" DEL /F /Q "%LogFile%"
FOR /F %%A in ('NET VIEW ^| Findstr -i "\\PC"') DO (
ECHO QUERING %%A
FOR /f "delims=" %%B IN ('reg query %%A\HKLM\SOFTWARE\Microsoft\.NETFramework\Policy ^| FINDSTR -i "v2 v3 v4 v5"') DO SET MustUpdate=No
IF !MustUpdate! EQU Yes ECHO %%A>>"%LogFile%"
SET MustUpdate=Yes
)
nice (-:
I'll remember that.
for me, for an application I'm writing, I wrote a small method in C# that returns true or false.
I'll remember that.
for me, for an application I'm writing, I wrote a small method in C# that returns true or false.
ASKER
Thanks for the " nice (-: "
I am not a programmer, so I'm limmited to batch files.
Thanks again for helping me.Cheers
I am not a programmer, so I'm limmited to batch files.
Thanks again for helping me.Cheers
ASKER
Cheers,
Rene