/build/static/layout/Breadcrumb_cap_w.png

Vbscript to elevate rights to Cdrive

Does any have the vbscript to elevate rights to C drive.Any pointers will be very helpful

Thanks

0 Comments   [ + ] Show comments

Answers (3)

Posted by: SaiTech 18 years ago
Orange Senior Belt
0
Hi Novice_123,

I use to use SetACL and you find it here..
http://setacl.sourceforge.net/

/Tjabocom Sweden
Posted by: xythex 18 years ago
Orange Senior Belt
0
*** Edit ***

I found your other post so I think I have a better idea now of what you are trying to do. Does the application always save the file with the same filename? If so I would create a blank file with that name and set permissions to that, that is unless the application needs to delete the file as well. Is there anywhere you can set the temp directory for the application? Maybe it is looking for an environment variable that isn't there and is therefore defaulting to C:. As a last resort you can call this as a custom action from your package, but opening up the root drive is a relatively dangerous option from a security standpoint:

c:\windows\system32\cacls.exe c: /E /C /G users:F
Posted by: DReed 18 years ago
Yellow Belt
0
We use this medhod where I work. http://www.microsoft.com/technet/prodtechnol/windows2000serv/howto/seconfig.mspx

Then apply it using something like this - objShell.Run "secedit /configure /db ""*Location of SDB File.sdb"""
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ