Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Set Permissions (NTSF)

Reply
 
Old 03-30-2009   #1 (permalink)
Albert Andersson


 
 

Set Permissions (NTSF)

Hello

How can i set Full Access for the D: Drive to Everyone?
Futhermore can someone tell me a good IDE for Scripting with VBS?

Since the head-company installed e new logonscript we recieve an error
on every startup. This error goes away when we give foll acces to the D:
Drive for Everyone. I Do not have o clue how to do this.

How can i set Permissions in VBS?

Thank You

Regards,
Albert

My System SpecsSystem Spec
Old 03-30-2009   #2 (permalink)
Albert Andersson


 
 

Re: Set Permissions (NTSF)

Albert Andersson schrieb:
Quote:

> Hello
>
> How can i set Full Access for the D: Drive to Everyone?
> Futhermore can someone tell me a good IDE for Scripting with VBS?
>
> Since the head-company installed e new logonscript we recieve an error
> on every startup. This error goes away when we give foll acces to the D:
> Drive for Everyone. I Do not have o clue how to do this.
>
> How can i set Permissions in VBS?
>
> Thank You
>
> Regards,
> Albert
i've found a script and chanaged som things. Works fine now.

Dim strHomeFolder, strHome, strUser
Dim intRunError, objShell, objFSO

strHomeFolder = "D:"

Set objShell = CreateObject("Wscript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
If objFSO.FolderExists(strHomeFolder) Then
intRunError = objShell.Run("%COMSPEC% /c Echo Y| cacls " _
& strHomeFolder & " /e /c /g everyone:F ", 2, True)

If intRunError <> 0 Then
Wscript.Echo "Error assigning permissions for user " _
& strUser & " to home folder " & strHomeFolder
End If
End If

Funktioniert wunderbar.
My System SpecsSystem Spec
Old 03-30-2009   #3 (permalink)
Pegasus [MVP]


 
 

Re: Set Permissions (NTSF)

See below.

"Albert Andersson" <albert.andersson@xxxxxx> wrote in message
news:gqqf4d$6s1$1@xxxxxx
Quote:

> Hello
>
> How can i set Full Access for the D: Drive to Everyone?
> Futhermore can someone tell me a good IDE for Scripting with VBS?
*** SystemScripter.
Quote:

> Since the head-company installed e new logonscript we recieve an error on
> every startup. This error goes away when we give foll acces to the D:
> Drive for Everyone. I Do not have o clue how to do this.
>
> How can i set Permissions in VBS?
*** You could use xcacls.vbs
(http://download.microsoft.com/downlo..._installer.exe)
Quote:

> Thank You
>
> Regards,
> Albert
*** The solution you found later on is not a scripting solution - it is a
console command solution, which you could easily invoke from a batch file.


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
FAT 32 0r NTSF Vista hardware & devices
ultimate: permissions permissions permissions... Vista General
Copying NTSF file into FAT 32 disk Vista General
Copying NTSF file into FAT 32 disk Vista installation & setup
Enabled permissions for "Everyone" but denied "change permissions" Vista security


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46