Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


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




Thread Tools



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

Our Sites

Site Links

About Us

Find 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 01:05 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33