473,385 Members | 1,736 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Can we assign/get read/write registry values through javascript/vbscript?

Hi All,

Can any one help me on how to read & write the local machines registry
values through scripting language. (vbscript/javscript)?

I tried with Wscript.Shell Command & but with this we need to change
the client browser setting's of each machine which is not possible in
real scenario.

Can we get this functionality other than Wscript?
Jayanth
986-622-2617

Aug 2 '05 #1
3 17522


ja*******************@gmail.com wrote:

Can any one help me on how to read & write the local machines registry
values through scripting language. (vbscript/javscript)?

I tried with Wscript.Shell Command & but with this we need to change
the client browser setting's of each machine which is not possible in
real scenario.


It sounds you know how to change registry settings on Windows with
J(ava)Script or VBScript already, and you are even aware that a browser
is a special host environment putting restrictions on script.
If you need to change registry settings with script then choose a host
environment like WSH or HTA where script is allowed to do that, from
inside IE with normal security settings it is not allowed and there are
no ways to circumvent that.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Aug 2 '05 #2
VK

ja*******************@gmail.com wrote:
Hi All,

Can any one help me on how to read & write the local machines registry
values through scripting language. (vbscript/javscript)?

I tried with Wscript.Shell Command & but with this we need to change
the client browser setting's of each machine which is not possible in
real scenario.

Can we get this functionality other than Wscript?


You don't need WScript for this (neither JavaScript).

Simply make the right settings on one machine and export this branch
into .reg file.
The rest of your users will have to dowload it from the corporate
server and right-click / merge

Actually such thing as remote administration may appear useful, but
easier you do - better you get :-)

Aug 2 '05 #3
Hi

You can use WshShell.RegRead, WshShell.RegDelete and WshShell.RegWrite

You can also easilly browse trough the registry using a module called
Regobj.dll

var objReg = new ActiveXObject("RegObj.Registry");

Regobj.dll is also supposed to let you access the registry remotely
(never used it though)

You may want to use your script inside an html application (.hta)

http://msdn.microsoft.com/workshop/a...taoverview.asp

ja*******************@gmail.com wrote:
Hi All,

Can any one help me on how to read & write the local machines registry
values through scripting language. (vbscript/javscript)?

I tried with Wscript.Shell Command & but with this we need to change
the client browser setting's of each machine which is not possible in
real scenario.

Can we get this functionality other than Wscript?
Jayanth
986-622-2617


Aug 3 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Matt | last post by:
If I assign VBScript server side variable a to javascript variable x, it is fine. <% Dim a, b a = 10 %> var x = <%= a %>; alert(x); But if I do the other way around, then it has 500 error....
2
by: sriram pasham | last post by:
Hi Could any one tell me how to access(read) a registry key using javascript from a webpage(ASP page). Thanks in advance. Sriram *** Sent via Developersdex http://www.developersdex.com ***...
1
by: Shryeash Patel | last post by:
I wanted to know how I can switch between the "Obtain an IP address from a DHCP Server" and "Specify an IP Address". In addition, how I can assign a static IP to the my network adapter.
6
by: George Hester | last post by:
This location has a parasite checker using javascript. It is in a js file called parasite.js. It is freely available. http://www.doxdesk.com/parasite/ He\She is the only one I trust on the...
8
by: Fred | last post by:
Hello, Is there a way to read values from the registry as regular instead of verbatim? Regards, Fred
0
by: David Virgil Hobbs | last post by:
While studying the asp.net javascript problem I saw and used pages about asp.net basics at http://www.sitepoint.com/article/815/4 and...
8
by: Sergei | last post by:
Hi, I am displaying modal dialog and passing values from the main form to the modal dialog and back. It works fine but if I used the following syntax on Page_Load(just for testing) in VB to...
0
by: Alan King | last post by:
To All: I'm having difficulty getting the syntax correct for VB.NET to produce a listing of all software applications on a remote PC listed in the registry installed programs. I'm able to get...
3
by: MSK | last post by:
Hi I am a newbie to ASP.NET and VBScript, currently I am designing a page to show all the mapped drives using client-side scripts.. I want to read all the mapped drive details (name and Remote...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.