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
paulhenst

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
paulhenst

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
Thread Forum
Powershell
I was running a script on my 32bit OS that opened up IE and logged me onto my company's vpn. I am now using 64bit OS and My company's vpn does not like 64bit IE. (firefox and chrome are also iffy with our vpn, IE is the only 'official one they support'). When the script runs now on my 64bit os....
General Discussion
PowerShell 3.0 for Win 7 now available
Download: WMF 3.0 - Microsoft Download Center - Download Details You will notice in the requirements that Service Pack 1 must be installed. You will be downloading: Windows Management Framework 3.0 which includes: PowerShell 3.0, WMI & WinRM
News
powershell 1 or 2?
i thought windows 7 pro comes with powershell 2 installed.... when i look in sys32 folder it shows powershell 1... also when powershell is activated it is version 1.... is this correct or what is going on... system is fully updated... win 7 pro 64 bit thanks :(
General Discussion
do you use powershell?
do you use and/or have any cmdlets ?? such as: Get-counter Get-counter -Counter "\Processor(_Total)\% Processor Time" -SampleInterval 2 -MaxSamples 10
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 12:27.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App