To change the permission of a NTFS file:

#Add / Change NT Permissions
############################# get current permissions
$acl = Get-Acl -Path <FileName>#SID from NT AUTHORITY\SYSTEM
$SidString = ‚S-1-5-18‘

# add a new permission
$permission = [System.Security.Principal.SecurityIdentifier] $SidString, ‚FullControl‘,’Allow‘
$rule = New-Object -TypeName System.Security.AccessControl.FileSystemAccessRule -ArgumentList $permission
$acl.SetAccessRule($rule)

# set new permissions
$acl | Set-Acl -Path <FileName>

 

 

Keine Kommentare

  1. New washington ~ Video
    New washington New washington New Washington, Indiana We are giving away $1200 in prizes – enter simply by sending us your own city pictures! OSM Map General Map Google Map MSN Map OSM Map General Map Google Map MSN Map OSM Map General Map Google Map MSN Map OSM Map General Map Google Map MSN Map Please wait while loading the map. New Washington Zip Code Map Estimated median household income in 2016: $50,192 (it was $37,368 in 2000) Estimated per capita income in 2016: $20,666 (it was $19,343 in 2000) Estimated median house or condo value in 2016: $142,504 …
    The post New washington ~ Video appeared first on Bank.

    Cash News

  2. Public universities in tennessee @ Video
    Public universities in tennessee Public universities in tennessee Undergraduate Our world-class faculty will teach you how to apply what you learn in the classroom to real-world situations. As a student, you will become a problem solver and critical thinker. You may begin the admissions process by submitting your application. The university also assists in providing
    continue reading
    The post Public universities in tennessee @ Video appeared first on Mobile News.

    Oakland Finance

  3. auto paint supplies

    What time does kansas play – Video
    What time does kansas play What time does kansas play Donald Trump Could Lift Democrats to Victory in Kansas Mary Joyce of Overland Park, Kans., is a lifelong Republican. Her husband Dave has voted for both parties, but idolizes Richard Nixon as one of the nation’s greatest presidents. Two years ago, the couple did what they usually do: voted a straight Republican ticket, including a vote for Donald Trump for President and Kevin Yoder for Congress. Thanks to voters like the Joyces, Trump won Kansas by more than 20 points, while Yoder won the state’s 3rd Congressional district by more …
    The post What time does kansas play – Video appeared first on Pharmacy .

    Kansas Business
    BONUS FREE DOFOLLOW Links SITE

    https://www.notabeneacademic.com/index.php/forums/Sujet/fluconazole-otc/page/10/
    http://magazinkedr.ru/blog/gotovimsya-k-sezonu2017#comment_60735
    http://freakx.road.jp/fcgi/k-bbs/k-bbs.cgi
    http://taydakov.ru/otzyvy/100851/
    http://nepaleseonline.com/forum/topic/auto-insurance-price/

    http://espunkt.com/test-123/?unapproved=27132&moderation-hash=7de971ce19a6960ea8f710d9d07965e2#comment-27132
    http://singlesordoubles.com/2015/12/business-planning/?unapproved=33632&moderation-hash=a02b0cc4e55b33baa8bb346a2853aa37#comment-33632
    https://ghostgum.com/2017/12/31/tester-2/?unapproved=12542&moderation-hash=1c195481a38d2280a0e08c75cd5bfd2b#comment-12542
    http://teflcoursedublin.com/faq-about-tefl/?unapproved=9509&moderation-hash=15fee1a3cdab046057e40fa9adb3eacd#comment-9509
    https://metroyoga.net/2016/07/11/hello-world/?unapproved=13359&moderation-hash=eff62bc6456bce5371ecf52817cde504#comment-13359

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.