Using Powershell to get current permissions of folders/sub-folders and files

Hi Team
Need assistance here.
Need a powershell script to get and list current AD groups and users having permissions to folders/its subfolders and files
Cheers

Hello,
The TechNet Wiki Discussion Forum is a place for the TechNet Wiki Community to engage, question, organize, debate, help, influence and foster the TechNet Wiki content, platform and Community.
Please note that this forum exists to discuss TechNet Wiki as a technology/application.
As it's off-topic here, I am moving the question to the
Where is the forum for... forum.
Karl
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
My Blog: Unlock PowerShell
My Book:
Windows PowerShell 2.0 Bible
My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

Similar Messages

  • Ever since I downloaded the Mountain Lion,my digital enhancement has gone south.For instance; You tube,pixalation has decreased,my app games-cannot gift.I believe I am current with all support doc's and files.Any suggestions?

    Ever since I downloaded the Mountain Lion,my digital enhancement has gone south.For instance; You tube,pixalation has decreased,my app games-cannot gift.I believe I am current with all support doc's and files.Any suggestions?

    Hi ...
    Open System Preferences > Flash Player then select the Advanced tab.
    Click Delete All under Browsing Data and Settings
    If you are using Safari to view YouTube content, with Safari open, press Command + Option + E to empty the Safari cache.
    Quit and relaunch Safari, try a video.
    And make sure Allow all other plug-Ins is selected in Safari > Preferences > Security
    As well as Allow Java.

  • Get Only Public Folders & Sub Folders with Calendars

    I'm trying to think of a way to get only public folders with a calendar (even calendars in sub folders). The closest I've come so far to getting that list was by using the following command:
    Get-PublicFolder -Identity \ -GetChildren | Where {$_.HasSubFolders -eq "True" -and $_.ParentPath -like "\*"} | select Identity
    I know that I'm missing something.  Can anyone help out?

    I think you can use below command
    Get-PublicFolder -Recurse | ? {$_.FolderType -like "IPF.Appointment"} |fl
    Get-PublicFolder -Recurse | ? {$_.FolderType -like "IPF.Appointment"} | Select Name, Identity, *Path*

  • Using Powershell Script Run simple query in MS Access 2007 and export the results of query to Excel

    Hi Experts,
    I have a Access 2007 DB file and 2 Big tables inside that (bigger than the size that can be easily handled by MS Excel 2007).
    My requirement is automate using powershell scripts the below things.
    1. Create a SQL query in Access DB and save that in access DB
    2. Run the saved query and export the result in excel sheet where I can create the charts and Pivots. Thanks in advance
    Prajesh

    Do you have to use the Access query, couldn't you just recreate the query in Powershell?  Here's a link with good info that references an existing script for querying an Access database:
    http://blogs.technet.com/b/heyscriptingguy/archive/2009/08/13/hey-scripting-guy-can-i-query-a-microsoft-access-database-with-a-windows-powershell-script.aspx
    Once you have your dataset you can pipe it to
    Export-Csv -NoType c:\pathtofile\output.csv

  • How do you get your Iphone to show sub folders in the mail program?

    Hallo
    I Have a lot of sub folders in the mail program, that I use to distribute my mails according to projects but they do not show on my Iphone? Is this function not possible?
    Thanks!
    Mikkel

    I didn't set anything - it just happened. I think it only works for IMAP accounts. If yours is IMAP, the only thing I can think of is to delete the account and set it up again

  • Getting Photo Stream to access sub-folders

    Is there a way to get iCloud/Photo Steam to recognize subfolders under the "Upload" folder?  I don't just dump photos under the upload folder, I import photos by date taken and they get their own folder based on date.  If i need to the "Upload" folder to be for a specific date then that really limits the amount of photos I will have access to via iCloud.  Please help if you can.
    Thanks,

    Did you ever solve this issue with sub-folders?  I am trying to make it work, seems like it just doesn't which is an unfortunate limitation for incorporating a PC into the eco-system.

  • Compressing folders,sub-folders and files using java

    Hello Friends,
    There's a small query if somebody could answer.
    I have to zip the contents of a folder which could have any hiearchy of folders and files.
    In short i want to do something what WinZip does but at runtime.
    Of how much help would be java.util.zip. In what format does this compression work and how similar is it to WinZip compression.
    Any help out there.
    Thanks in advance :)
    Regards
    Shajee

    Hello Friends,
    There's a small query if somebody could answer.
    I have to zip the contents of a folder which could
    have any hiearchy of folders and files.
    In short i want to do something what WinZip does but
    at runtime.
    Of how much help would be java.util.zip. A goodly amount.
    In what
    format does this compression work and how similar is
    it to WinZip compression.
    Same.

  • I get a error message: All downloads loads and file copies have been paused

    I have been trying to download the new 4 upgrade and I been getting this message: All downloads and file copies have been paused. The disk you are attempting to use is full. Remove files and emptying the Recycle Bin will free up additional space. Ok I don't have anyting in my recycle bin. Can someone please help me figure this out!
    Thanks!

    Start -> Computer -> C: drive, right click - Properties.
    How much free space do you have?
    You shold generally have 10%-15% free space on your boot )C:) drive.
    If not, you need to clear some space by deleting them/ moving them to other drives.

  • Use powershell to get synthetic fcp "target" port wwpn

    Hello,
    I am trying to query my virtual fcp target ports to get status and wwpn from within my VM for SAN automation.
    I have exhausted my searches only to find information/commands to use from the parent.
    PS C:\> $StorageSubsystem = Get-StorageSubsystem
    PS C:\> Get-Targetport -StorageSubsystem $StorageSubsystem
    PS C:\>
    PS C:\>
    PS C:\>
    I have found these:
    https://gallery.technet.microsoft.com/scriptcenter/Find-HBA-and-WWPN-53121140
    one liner:
    Get-WmiObject -class MSFC_FibrePortHBAAttributes -namespace "root\WMI" | Select -Expandproperty Attributes | % { ($_.PortWWN | % {"{0:x2}" -f $_}) -join ":"}
    All gives me my initiator WWNN/WWPN.
    I would like to get my discovered Target ports from within my VM. If anyone can point me in the right direction or has an example, I would greatly appreciate it.

    Hello,
    I am trying to query my virtual fcp target ports to get status and wwpn from within my VM for SAN automation.
    I have exhausted my searches only to find information/commands to use from the parent.
    PS C:\> $StorageSubsystem = Get-StorageSubsystem
    PS C:\> Get-Targetport -StorageSubsystem $StorageSubsystem
    PS C:\>
    PS C:\>
    PS C:\>
    I have found these:
    https://gallery.technet.microsoft.com/scriptcenter/Find-HBA-and-WWPN-53121140
    one liner:
    Get-WmiObject -class MSFC_FibrePortHBAAttributes -namespace "root\WMI" | Select -Expandproperty Attributes | % { ($_.PortWWN | % {"{0:x2}" -f $_}) -join ":"}
    All gives me my initiator WWNN/WWPN.
    I would like to get my discovered Target ports from within my VM. If anyone can point me in the right direction or has an example, I would greatly appreciate it.

  • Using PowerShell to Copy the content of a Word Document and Paste that content into a New Message in Outlook

    So, I'm a little new to PowerShell and I came across a PowerShell which allow me to copy the content od a spreadsheet, into the new message in Outlook 2007.  I have search and search on a way to do the same with a Word Document.  I would like to
    create a PowerShell Script that copies the content of a Word Document and paste that content in an email message.
    I am basing my script on this
    #Create and get my Word Obj
    $w1 = New-Object  -comobject Word.Application
    $w1.Visible = $True
    $UserWord = $w1.Workbooks.Open("C:\Users\hhhh\Documents\Powershell\test.docx")
    #create outlook Object
    $Outlook = New-Object  -comObject  Outlook.Application 
    $Mail = $Outlook.CreateItem(0)
    $Mail.SentOnBehalfOfName = "[email protected]"
    $Mail.Recipients.Add("[email protected]")
    #Add the text part I want to display first
    $Mail.Subject = "Test email"
    $Mail.Body = "My Comment on the Excel Spreadsheet"
    #Then Copy the Word using parameters to format it
    $Mail.Getinspector.WordEditor.Range().PasteExcelTable($true,$false,$false)
    #Then it becomes possible to insert text before
    $wdDoc = $Mail.Getinspector.WordEditor
    $wdRange = $wdDoc.Range()
    $Mail.Display()
    Any Help would be great!

    My requirements are the Word documents are a template of sorts.  The document will be changes prior to its email with some changes.  The other twist is that the customer might more that one recipients, and each recipient will have to have a separate
    email, with the same content of the word document. 
    For example: Say I'm doing maintenance. The Word doc might descript that maintenance, in a set format. Once save the script is run to generate 3 to 10 email with separate recipients with the body of the email containing what was in the Word document.

  • I want to set up two apple id's (w/facetime)  one for personal use, and one for professional use.   I get the validation email, click the link -and it says it won't work for security/timeout reasons.   failure prevents setup of second account.

    I can set up my personal account just fine.  personal apple id is my [email protected]  - I can setup the ipad and face time no problem.
    But I don't want to be facetime tutoring with my personal account.  I want students to find me by my .edu address
    I cannot complete the second apple Id setup, as the confirmation email always fails.  Even if I disable all firewall/blocking in outlook and windows. 
    I get an error every time.  
    Your request couldn't be completed.
    This may have occurred for security reasons or because your session timed out.
    So much for Apple being the "simpler" PC for users.  
    I've been a Windows user/technician for many years.   I've never seen anything this aggravating.
    Anyone run into this before?

    Saw this in another forum. You could try it.
    Under the FaceTime Account you can only have 1 email set up, but below that you can set up multiple email accounts as phone numbers, I do it all the time.
    FaceTime is set up with my account, but since the iPad is more of a family device (its mine, but everyone is allowed to use it), my sister programed her email so that her friends can call her on the iPad and so did my Mom and brother. Their friends dial their numbers (email addresses) and the iPad still rings even though the main number is mine account.
     Cheers, Tom

  • How can my daughter, using her mac, get access to a movie I made and stored on my mac itunes library.  Can cloud help?

    My daugter in in Florida and I am in Japan.  Is it possible to place a video that I made (currently in my itunes library) on the cloud and then have her access the cloud and download the movie.
    thank you - Tony

    Not really.  The easiest way is to get free Dropbox accounts and place the file there for her to pick up.

  • I am unable to use Iboost app, when i try to use it, I get an error "iBoost App is damaged" and reinstall from app store. I get the same error even after installing a fresh copy. Need help to resovle this issue.

    “iBoostUp.app” is damaged and can’t be opened. Delete “iBoostUp.app” and download it again from the App Store.
    Because of the above error, i am not able to use iboostup application. I have even tried to reinstall from app store, but the issue still continues.
    Need help.

    Perhaps the damaged file is an auxiliary file outside the app bundle and stored elsewhere on your Mac. Try deleting the app and all it files with an app for that purpose. Afree one is AppCleaner;
    http://www.freemacsoft.net/appcleaner/

  • Using Powershell to change a Windows Service logon account name and password

    Hi
    I have been sreaching the web on this and found a lot of advice none of which works.  I want to write a scipt that will change service passwords.   this is what I have
    $svc = get-wmiobject win32_service -filter "name='AdobeARMservice'"
    $svc.change($null,$null,$null,$null,$null,$null,$null,$null,$null,$null,'newpassword')
    I have seen advice thats its the 11th (as shown above) that I chnage and advice that its the 8th.  But no matter what i do it only seems to change the dependencies.

    Change(
     1    System.String DisplayName,
     2    System.String PathName,
     3    System.Byte ServiceType,
     4    System.Byte ErrorControl,
     5    System.String StartMode,
     6    System.Boolean DesktopInteract,
     7    System.String StartName,
     8    System.String StartPassword,
     9    System.String LoadOrderGroup,
    10    System.String[] LoadOrderGroupDependencies,
    11    System.String[] ServiceDependencies
    ¯\_(ツ)_/¯

  • Getting stylesheets to work in header.php and files associated with it

    Let's say I created a header.php file in my includes folder.  And I include it in my index.php file in the site root directory.
    Then in the header.php file, I have a link to the style sheet. 
    The issue I've always found is that you can't get the header.php file to apply the stylesheet.
    I can get it to work using global links, however I don't want to do that as I'll have to undo them before I upload the site.  (And I forget....)
    So anyways, I came up with this code today in an attempt to overcome this.  Here is my header file so far:
    "; } else           echo ""; ?>  
    So here is what it is doing:
    1. It is creating a variable called $directory which is equal to the current directory.
    2. Then it is creating another variable called $currentFolder which is equal to whether or not the variable $directory contains the word "includes".
    3. Then it says if $currentFolder is NOT false then it has the location of the stylesheet in relation to the header.php file.
    4. Else - if it IS false then the stylesheet is located in a location in relation to files in my root directory.
    This works perfectly fine....in Live view.  Both the header.php and index.php will format the header in live view.  Neither though will format it in Design view.  Which sucks cause I was pretty happy that I came up with this code on my own.
    The reason it isn't working in Design View - I realize now - is because Dreamweaver won't process that script in Design View. 
    Does anyone know of a way to get this script to run in Design View?  Or maybe some suggestions on editing this code to get it to work in Design View?
    Thanks!

    >The issue I've always found is that you can't get the header.php file to apply the stylesheet.
    Right. That's because, and it seems you understand this already, the css file relative location is different from the point of view of the header file, and the parent file. Since the header file is included in the parent at the server, the client then sees the css file in the wrong location.
    The solution is to use Design time style sheets. This will apply the css to the page only in design time - it won't actually insert the css file into the code. So, insert the css reference into the header file from the point of view of the parent - index.html. Then add a design time style sheet. That should work.

Maybe you are looking for

  • JDBC to Lotus Notes, only 255 bytes be read for each field. Any clue?

    Hi, I am programming with JDBC to Lotus Notes. I can extract data from .nsf files but for each field, only 255 bytes can be read, all the rest got truncated. I ran the ResultSetMetaData.DisplayColumnSize(), it returns 255. What is the problem? How ca

  • What version control system you use?

    We are 20 developer and we use bitkeeper as a version control system. But we have 4 envirronnement. dev/test/pre-prod/prod. Sometimes, 2-3 projects are affecting the same packages. And different packages version is all over the place since we have 4

  • Problem with linear chart

    Hello. After two days tray to solve problem, I need your help. I have problem with presentation some data. Data growning aproxx. linear. I read this data from device. Sometime my .vi not successful read data and in this case my chart have sags to zer

  • What is the last day to get $100 App Store Gift Card?

    Does anyone know when the current educational promotion (for the $100 App Store Gift Card) expire? I've looked everywhere and can't find it. I went into the Apple store yesterday to buy a 27" iMac but the configuration I wanted was not in stock and w

  • Browse samba and windows shares

    After reading and trying all of the tips suggested in this thread I got almost everything working. Just that despite the fact that I did allow the ports mentioned in the tutorial, I still have to stop iptables in order to be able to browse the shares