Powershell get-acl help


  1. Posts : 2
    Windows 7 Proffesional x86
       #1

    Powershell get-acl help


    Hi,

    I was thinking of making a script for powershell, but it was harder than i thought. I'am a beginner of the beginners when it comes to powershell, so i was wondering if any of you could help me (or maybe make me one) with making one.

    This is what i was thinking of(not sure if this is even possible):

    When you start powershell you get this line:


    "Please type the direction of which folder you want to see a acces list, then press enter"
    Example: c:\myscripts <ENTER>

    "Please type the folder of where you want to save the .xls file. then press enter"
    Example: c:\myscripts <ENTER>



    Then i want the possibility to have powerpoint saving the acces list as a excel file in the folder which has been selected.

    I've been looking for scripts for the past 3 days, but unfortunately i havent found anything.

    Thanks in advantage, ill just continue making failing scripts!

    Paul


    My English isn't that good, if i havent been clear please say so.
      My Computer


  2. Posts : 2
    Windows 7 Proffesional x86
    Thread Starter
       #2

    This is how far i've got... (translated from dutch to english) it looks a bit weird, but no idea what I have to type next.

    Write-Host -ForegroundColor Red "this script lets you export a excel file with the acces list of the folder of your choice.
    "
    #
    #gaining info.
    #
    $Locatiecheck = read-host -prompt "Please type the direction of which folder you want to see a acces list, then press enter. Example: c:\myscripts"
    $Locatiefile = read-host -prompt "Please type the folder of where you want to save the .xls file. then press enter Example: c:\myscripts"

    cd:\$Locatiecheck
    Get-Acl > $Locatiefile
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 09:21.
Find Us