Jump to content
MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. ×

dfnkt

Member
  • Content Count

    17
  • Joined

  • Last visited

  • Donations

    $0.00 

Community Reputation

0 Neutral

About dfnkt

  1. Here are my findings, his so far is working great. Alot of work for such a small script but it does its job. Revision 2 I guess would be a way to write directly to the registry without the need for text files. Not a bad attempt for never having used the FOR command. @ECHO OFF cd \ SET VAR=eTrust Antivirus Base SET VAR1=eTrust PestPatrol Signatures SET VAR2=eTrust Vet Engine CompVer | Find "%VAR%" >> C:\ITM.txt CompVer | Find "%VAR1%" >> C:\ITM2.txt CompVer | Find "%VAR2%" >> C:\ITM3.txt REG ADD HKLM\SOFTWARE\ComputerAssociates\eTrustITM\Status FOR /F "tokens=4 delims=, " %%i
  2. I am looking on advice to writing a script in preferably Batch/CMD or VBS with PERL being an option. What I am trying to accomplish is either directly writing information obtained from a command line tool into some strings / keys into the registry. We are currently running CA Threat Manager 8.1 (AV and PestPatrol). From CA there is a command line tool called 'CompVer' that will output all the particular information related to signature version and AV base version. I either need to run this CompVer utility in a script and directly write 3 of the results into a registry key or write them out to
  3. It was just orginally setup for them to not be domain users because of what little access they need from us. We are having other issues related to them being in their own little world, so we may have to break down and fold them into the mix and absorb the cost associated.
  4. We are looking for a way to have group policies apply to our remote sales force. We have approx 150 people who have laptops that are NOT joined to our domain but who do have to login as domain users when they connect to the VPN. For instance we want to create a GPO which will set the default saving type in Office 2007 to be compatible with Office 2003. We would like this to be applied to users who connect via VPN to our network. Important Points: Their computers are not part of our domain (or another domain for that matter, WORKGROUP all the way.) The users all have a domain user created for t
  5. Well, if you did that, you'd be left with a script that's basically identical to mine. The only real differences, are the messages. Here's the same script again, with your new messages const HKLM = &H80000002 strComputer = "." Set objWMI=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv") strKeyPath = "Software\Microsoft\Internet Explorer" strValueName = "Version" objWMI.GetStringValue HKLM, strKeyPath,strValueName,strValue intIEVers = CInt(Left(strValue, InStr(strValue, ".")-1)) Set objWMI = GetObject("winmgmts:{impersonationLevel
  6. Yes , programmers should also think about we "poor" users of Opera, Firefox, Konqueror.... jaclaz I have been a permanent firefox user since 2004, don't think I could ever go back.
  7. Like I said before... Looks like you're still trying to do it (in your last post). However, the script I wrote does EXACTLY what you asked for (it's tested). If you're doubting Thomas and don't trust the conditional statements, try using combinations of intSP = 2 or intSP = 3, and intIEVers = 6 or intIEVers = 7 (or even intIEVers = 8) just before the if's. You'll see exactly how it behaves for each scenario. Adding an OS check would be a good idea though, unless all your boxes run XP. Absolutely. Nowadays, IE7 has a far bigger market share than IE6 and is still on the rise. And it's been o
  8. ===== Post Nº 1 ===== Wow thanks for all the responses! The only problem for just checking for 2 conditions is that if IE7 is found as well as SP3, they just can't immediately remove IE7 without first removing SP3. I was wanting the script to be extra wordy to give them specific directions on what to do. I have so far gotten 2 scripts, the first will show you what SP is installed followed by a message of what IE version is installed. The second script uses an "If xxxxxx then If xxxxx then else" and seems to function fairly well when I only try to look for the presence of an IE version >=7
  9. Is there not a way to make a vbscript look at multiple if's before having to "then"? If SP3 and IE7 found then msgbox "remove sp3, then remove ie7, reinstall sp3" if sp2 and IE7 found then msgbox "remove ie7 then install sp3" if SP3 and IE6 found then msgbox "no further action needed" if sp2 and ie6 found then msgbox "please install sp3" ^^ something like that?
  10. Will try the code out! But thanks to microsoft once SP3 is installed, IE 7 is locked onto a machine. http://blogs.msdn.com/ie/archive/2008/05/0...-and-xpsp3.aspx
  11. Thanks guys! One final question, I've pieced the IE7 detection together with a service pack detection script I had written. I have the two working together however how would you make it so that checks if IE7 and SP3 are installed and THEN gives you a msg box telling you that you need to uninstall SP3/ Then uninstall IE7? Here is the whole script I'm working with now: const HKLM = &H80000002 strComputer = "." Set objWMI = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv") Set objWMI2 = GetObject("winmgmts:{impersonationLevel=imperso
  12. We have line of business apps that do not have any support for IE 7 let alone IE 8 (or vista for that matter) anywhere in sight. The purpose of this is to make it easier for our helpers who are less technically inclined at an upcoming conference determine if IE7 is installed (which they need to remove). Thanks for the reply and I will take a look at it.
  13. I am currently trying to write a batch file to query the registry to determine if internet explorer 7 is installed and echo a message to the user appropriately. The path in the registry is HKLM\Software\Microsoft\Internet Explorer\Version Vector The key is: "IE" IE 7 has a value of "7.0000" and 6 has a value of "6.0000". I am trying to develop a batch (wouldn't be opposed to VBS) to echo a msg to the user regarding what was found. By simply using @ECHO OFF REG QUERY "HKLM\Software\Microsoft\Internet Explorer\Version Vector" /v IE I can see what the value is but I would like to do something s
  14. Need some help if anyone is good with vbscript. What I need the script to do is query for the existence of service pack version, and then use logic to say "if servicepack = 3 then msgbox "sp3 installed" or "else msgbox "sp3 not installed". I have pasted what I have into a pastebin in a link below. This was hacked together from 2 previous scripts that I wrote. It's been 6 months or more since I worked with VBscript and I'm sure I'm missing something easy. http://pastebin.com/m328b3e34
×
×
  • Create New...