+ 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
    820
    Thank Post
    39
    Thanked 8 Times in 7 Posts
    Rep Power
    15

    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. IDG Tech News

  3. #2

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,284
    Blog Entries
    2
    Thank Post
    598
    Thanked 879 Times in 617 Posts
    Rep Power
    287

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

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

  4. #3

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,623
    Thank Post
    96
    Thanked 685 Times in 528 Posts
    Rep Power
    158

    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

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

    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?

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

    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, 06:48 PM
  4. Mass setting NTFS permissions
    By localzuk in forum Windows
    Replies: 7
    Last Post: 8th January 2007, 05: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
  •