Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

VBS Script to read registry data, HTTP GET/POST to intranet site

Avatar of TransitionalData
TransitionalDataFlag for United States of America asked on
VB Script
4 Comments1 Solution735 ViewsLast Modified:
Hello,
   I've developed Batch scripts to help in processing freshly imaged computers to quicken the time it takes to process them before putting them in service.  Part of our corporate app creates a unique installation key that needs to be tracked per computer.  My current batch script, shown below
   1. Resets permissions on a registry key.
   2. Ensuring time is accuate
   3. outputs computername System Variables to a text file,
   4. Outputs a second system variable, IMGVER, to the text file
   5. reads a value from the registry (the unique key) using REG
   6. Formatting the exported registry info in the text file with Munge (Less than ideal)
   7. emailing the temp file with Blat.

The information that is being emailed all needs to be tracked.  it's being transposed manually at the moment as it's all in a spreadsheet.  An interal web application is being built for this tracking purpose.

I'm hoping someone can help with building a VBS script to help with the data collection and posting to the internal website.  The URL that will be used is as follows http://server/trackcomputer.php?computername=[computername]&imageversion=[imageversion]&clsid=[exported_registry_value]

So essentially I'm looking to replace lines 3-7 with a VB script that will format the URL and open IE and browse to that site.  I know the VBS could post it blindly, but I'd like it to open IE so I can have visual confirmation that the data has hit the server.

Can someone please help?  Thanks in advance.
subinacl.exe /verbose /subkeyreg \\%COMPUTERNAME%\HKEY_LOCAL_MACHINE\Software\PowerEcho /grant=everyone=F
net time /set /y
echo EMS Computer Name: %COMPUTERNAME% > %TEMP%\clsid.txt
echo Image Version Number: %IMGVER% >> %TEMP%\clsid.txt
REG QUERY HKEY_LOCAL_MACHINE\Software\PowerEcho /v CLSID >> %TEMP%\clsid.txt
c:\Windows\script_bin\munge.exe c:\windows\script_bin\replacements.ini -nt %TEMP%\clsid.txt
c:\windows\script_bin\blat.exe %TEMP%\clsid.txt -to sample@emailaddress.com -subject "CLSID For Imaged Laptop"
ASKER CERTIFIED SOLUTION
Avatar of ltlbearand3
ltlbearand3Flag of United States of America image

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answers