Windows 7 Forums


Windows 7: Powershell get-acl help

21 Jan 2011   #1

Windows 7 Proffesional x86
 
 
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 System SpecsSystem Spec

24 Jan 2011   #2

Windows 7 Proffesional x86
 
 

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 System SpecsSystem Spec
Reply

 Powershell get-acl help problems?



Thread Tools



Similar help and support threads for: Powershell get-acl help
Thread Forum
PowerShell 3.0 for Win 7 now available News
powershell General Discussion
Solved powershell 1 or 2? General Discussion
do you use powershell? General Discussion


All times are GMT -5. The time now is 03:46 AM.



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