Friday, March 30, 2018

PoweShell TTUC (Tips, Tricks and Useful Commands) #114 – Move Files and Folders

PowerShell TTUC (Tips, Tricks and Useful Commands) - #114

Create a folder and assign appreciate permission using PowerShell

$OutputLocation = "C:\Temp\Folder1"
$adminUser = "Domain\Admin1"

#
if (-not(test-path $OutputLocaiton))  #verify the existance of "C:\Temp\Folder1" fodler
{
    #if not create a new folder
    New-Item -ItemType directory -Path $OutputLocaiton | out-null
    $cACL = Get-Acl $OutputLocaiton
    $nACL = New-Object  system.security.accesscontrol.filesystemaccessrule($adminUser,"Fullcontrol","Allow")
    $cACL.SetAccessRule($nACL)
    Set-Acl $OutputLocaiton $cACL

}




12 comments:

Thank you for sharing this tutorial with us! You are doing a great thing!

I ordered a replica gucci bag here. When I received the bag, it surprised me a lot.replica gucci handbags This bag is perfect and the quality is exactly the same.fake high quality gucci womens totes A dazzling masonry. I introduced this website to my friends, and my friends liked it very much.

Thanks for this useful post.
You also can get help with your assignments or papper on https://papercoach.co/

You know after a hard day I decided to have fun and play games of chance I climbed a bunch of sites and only on this I understood what was happening prosperous casino sites now I sit and spend all the time on this site

Ahhh I'm so glad I stumbled upon this site. I was very lucky literally in the first two hours I earned in more than one working day, you also want? hold on useful best net casino You can not thank

This blog offers intense detailing of the topic bouncing balls , red ball

مع انتهاء الأنشطة الصيفية وقبل أن ينتقل الجميع إلى الأنشطة الداخلية ، فقد حان الوقت لتنظيف السجاد والمفروشات بعمق لإزالة الأوساخ وغبار الطلع وبر الحيوانات الأليفة.
شركة تنظيف بالدمام
شركة تنظيف بالاحساء
شركة كشف تسربات المياه بالاحساء

very nice information you share with us. thanks for this.
hotmail login

Thanks for this information, its helpful
https://casino.bk8my.com/

Glance at this https://nobullshitseeds.com hybrids terpene profile and youll notice high levels of linalool, a flowery-smelling terpene that promotes relaxation and stress-relief. Strawberry Lemonade is a sativa-dominant strain that took 1st in High Times 2015 Denver Cannabis Cup as Best Sativa Concentrate https://lizavetacbd.com.

on of the best i read, great work and brilliance of education can be seen, thanks for the info.

Post a Comment

Popular Posts

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More