Solved

How do I set folder permissions with VBScript

Posted on 2009-05-15
1
300 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 500 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…
Hello again, all.  For those of you that have been following along, you'll know that this is my third article on this topic (though it is not Part III).  This article is sort of remedial, and probably the topic with which I should have started the s…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

688 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