Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 6th, 2008, 4:07 AM   #1
Jabo
Not a user?
 
Join Date: Sep 2007
Posts: 245
Rep Power: 1 Jabo is on a distinguished road
vbscript and winmgmts

I'm using a cookbook vbscript that contains the line:
vbscript Syntax (Toggle Plain Text)
  1. Set oSWB=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv")

It runs fine except on "generic" computers who don't have rights to edit the registry. Is there a way to elevate the rights within the script for those pcs, with or without hardcoding logins.

Or is there a way to give rights to edit the registry without giving access to the registry on WinXP?
Jabo is offline   Reply With Quote
Old Apr 7th, 2008, 8:15 AM   #2
Jabo
Not a user?
 
Join Date: Sep 2007
Posts: 245
Rep Power: 1 Jabo is on a distinguished road
Re: vbscript and winmgmts

Ok, I'm not hacking anything, this is a script handed to us by our Corporate partners to fix a problem, that they obviously copy and edited from a cookbook, because I found an almost identical script on a public tech website.

If I made no sense with my questions, it's because I'm not familiar with vbscripting, but was asked by the system admin to try to fix it to work with generic logins because I know VB and since I know VB then I know VBscripting as well.

After looking at MSDN for the last 8 hours, I can see it's gonna take a little time to learn vbscripting myself.
Jabo is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:10 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC