+ Post New Thread
Results 1 to 5 of 5
Scripts Thread, Login script to change ntfs permissions on cmd.exe in Coding and Web Development; Command Post In relation to the above post, I have manually set deny permissions on cmd.exe and command.com for the ...
  1. #1
    Kyle's Avatar
    Join Date
    Jan 2006
    Posts
    972
    Thank Post
    91
    Thanked 14 Times in 13 Posts
    Rep Power
    21

    Login script to change ntfs permissions on cmd.exe

    Command Post

    In relation to the above post, I have manually set deny permissions on cmd.exe and command.com for the pupils and it solves the problem above.

    Is there a vbscript that can be run on login script that changes the permissions on this file?

  2. #2

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,400
    Thank Post
    636
    Thanked 961 Times in 661 Posts
    Blog Entries
    2
    Rep Power
    319

    Re: Login script to change ntfs permissions on cmd.exe

    You might want to investigate the usage of cacls.exe.

  3. #3

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,590
    Thank Post
    109
    Thanked 762 Times in 593 Posts
    Rep Power
    180

    Re: Login script to change ntfs permissions on cmd.exe

    You will need to use a startup script so that your script runs with sufficient priviledges.

    Cacls is the way to go though

  4. #4
    ajbritton's Avatar
    Join Date
    Jul 2005
    Location
    Wandsworth
    Posts
    1,632
    Thank Post
    23
    Thanked 75 Times in 45 Posts
    Rep Power
    34

    Re: Login script to change ntfs permissions on cmd.exe

    Can't you do this through Group Policy under Computer Config, Windows Settings, Security Settings, File System, then add the path to the file/folder you want to affect and set the required permissions?

  5. #5
    tosca925's Avatar
    Join Date
    Aug 2005
    Location
    Midlands
    Posts
    1,547
    Thank Post
    4
    Thanked 4 Times in 4 Posts
    Rep Power
    22

    Re: Login script to change ntfs permissions on cmd.exe

    Can't you do this through Group Policy under Computer Config, Windows Settings, Security Settings, File System, then add the path to the file/folder you want to affect and set the required permissions?
    Yes you can, we do this with certain machines in certian OU's who have software installed that mey need to write to the C:\windows\temp folder.

SHARE:
+ Post New Thread

Similar Threads

  1. GTK restrict drives and NTFS permissions
    By CyberNerd in forum Thin Client and Virtual Machines
    Replies: 2
    Last Post: 11th May 2007, 05:32 PM
  2. Replies: 4
    Last Post: 25th April 2007, 11:22 AM
  3. script to change permissions on Reg Key
    By e_g_r in forum Windows
    Replies: 4
    Last Post: 16th February 2007, 05:48 PM
  4. Mass setting NTFS permissions
    By localzuk in forum Windows
    Replies: 7
    Last Post: 8th January 2007, 04:23 PM
  5. Replies: 4
    Last Post: 21st June 2006, 05:21 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •