Solved

How do I set folder permissions with VBScript

Posted on 2009-05-15
1
254 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
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Script to copy or move mouse-selected collection of files plus targets referenced by shortcuts (.lnk) The purpose of this article is to help illuminate the real challenges and options available (where they may exist) for utilizing simple scriptin…
Welcome, welcome!  If you are new to the series and haven't been following along, please take a brief moment to review the first three installments: Part 1 (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/A_266-VBScri…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now