?
Solved

How do I set folder permissions with VBScript

Posted on 2009-05-15
1
Medium Priority
?
304 Views
Last Modified: 2012-05-07
I have a vb script that removes a desktop shortcut and a Start Menu folder from each colProfile on a workstation
The Good: The script works perfectly on newer builds of XP

The Bad: On older builds the script runs and removes the desktop shortcut but does not remove the Start Menu folder.
I am thinking that with older builds the permissions allowing the current logged on user to modify the Start Menu.
Is there a solution to reset the permissions to allow the script to run. Maybe a VBScript so i can roll it out to about 150 users. All help will be greatly appreciated
0
Comment
Question by:JK-PBS
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 7

Accepted Solution

by:
LANm0nk3y earned 2000 total points
ID: 24400735
If you have the script already, why not have the script run through GPO?  Just make sure you put the new script on in the same folder as your GPO.

Easiest way to do this is, launching Group Policy Managment:
Go under "Group Policy Object", find the policy you are wanting to apply or create a new one.
Edit the policy

Under the policy editor:
Browse down to "Computer Configuration\Policies\Windows\Settings"
You'll see "Startup", doublclick
click "Add", then "Browse"

Open explorer window, browse to your script file, highlight it.  alt-click and copy.  Go back to your "Browse" window, alt-click, paste.

select the file, then click ok, ok.

This will now launch when the computer starts up.  This runs at the computer level, not at user level.  Therefore it will have admin rights to system resources.

Remember if you created another policy, you need to make sure you link the object to the OU (organization units) container that have the computers.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an addendum to the following article: Acitve Directory based Outlook Signature (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_24950055.html) The script is fine, and works in normal client-server domains…
This script will sweep a range of IP addresses (class c only, 255.255.255.0) and report to a log the version of office installed. What it does: 1.)      Creates log file in the directory the script is run from (if it doesn't already exist) 2.)      Sweep…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question