Get-Acl : The input object cannot be bound to any parameters

Hi I am trying to get a list of folder and permissions for network folders and I am getting the error Get-Acl : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its
properties do not match any of the parameters that take pipeline input?
$Files = "\\Server\Share"Get-ChildItem \\server\share| Where { $_.PSIsContainer } | Foreach {Get-Childitem $_.FullName} | Get-Acl $Files | Format-Table -property Owner | Where { $_.PSIsContainer } | Select-Object FullName, @{Name = 'AssociatedSecuirtyGroups'; Expression = {((Get-Acl $_).Access | ?{! $_.IsInherited} | Select-Object -ExpandProperty IdentityReference) -join ', '}}

It looks like you're mixing up some actions in that line of code.  The first Get-ACL is receiving pipeline input of all of the grandchildren of $Files, but you're also giving it the $Files parameter - that's your error.
You're also formatting output in the middle of the pipeline, I don't think that's going to work out well for you.  When you run get-acl you also lose the directory name, so the fullname attribute is meaningless at that point.
Maybe try something more like this:
$Root = "\\Server\Share"
$Results = @()
$Folders = Get-ChildItem $Root -exclude *.* | Foreach {Get-Childitem $_ -exclude *.*} | select fullname
Foreach ($Folder in $Folders) {
$ACL = Get-Acl $Folder.FullName
Foreach ($Group in $ACL.Access) {
If (!($Group.IsInherited)) {$Results += New-Object PSObject -Property @{Folder=$Folder.FullName;Group=$Group.IdentityReference;Owner=$ACL.Owner}}
$Results
Note that with Powershell v4 there's a -directory parameter for Get-ChildItem that would be better than this exclude.  I work with older systems so I use older PS to avoid any pitfalls.  In this case, if you have any files without extensions in those
subdirectories you'll pick those up as well.

Similar Messages

  • How do I get to the request object in a webflow.

    How do I get to the request object in a webflow.
    I created a input process and one function it needs to do is create a cookie.
    Problem is I don't have a response object.
    How do I create/get the response object so I can create a cookie.
    Thanks
    Michael C Ford
    ------------------ Code Line ------------------------------------
    public Object process(HttpServletRequest req, Object requestContext)
    throws ProcessingException
    // get the pipeline and namespace info for the process
    PipelineSession pSession = null;
    String namespace = null;
    String username = req.getRemoteUser();
    pSession = getPipelineSession(req);
    namespace = getCurrentNamespace(pSession);
    /* ***** DO THE INITIAL CREATE OF THE BEAN *** */
         try {
              Properties props = new Properties();
              props.put(
                   Context.INITIAL_CONTEXT_FACTORY,
                   "weblogic.jndi.WLInitialContextFactory");
              Context ctx = new InitialContext(props);
              Object homeObject = ctx.lookup("com.??.??PortalMgr");
              SeechangePortalMgrHome seechangePortalMgrHome =
              (SeechangePortalMgrHome) javax.rmi.PortableRemoteObject.narrow(
                                                      homeObject,
                                                      SeechangePortalMgrHome.class);
              SeechangePortalMgr portalMgr = seechangePortalMgrHome.create();
    /* Set the initail user */
    portalMgr.setUser(username);          
              UserRuntime userRuntime = (UserRuntime)portalMgr.getRuntimeObject();
              System.out.print("Run Time User is " + userRuntime.getUserName());
              System.out.print("Run Time User is " + userRuntime.getOrgSeq());
    // ** cookies for Actuate XXX=(customer sequence ID), YYY=ZZZ is a dummy per
    their requirement
              Cookie cCustSeqNumber = new Cookie("XXX",userRuntime.getOrgSeq());
              Cookie cPassword = new Cookie("YYY","ZZZ");
              cCustSeqNumber.setPath("/");
              cPassword.setPath("/");
              ??response.addCookie(cCustSeqNumber);
              ??response.addCookie(cPassword);          
         } catch (Exception ee) {
              System.out.print("Unable to create Portal Manager" + ee);
    // at this point we add the logic to produce the bean
    return "success";

    Thanks
    Just what I needed, except I needed to caste response.
    Michael C
    "Daniel Selman" <[email protected]> wrote:
    Michael,
    // get the HttpServletResponse from the HttpServletRequest
    HttpServletResponse response =
    equest.getAttribute( WebflowConstants.HTTP_SERVLET_RESPONSE );
    Cookie cPassword = new Cookie("YYY","ZZZ");
    cCustSeqNumber.setPath("/");
    cPassword.setPath("/");
    response.addCookie(cCustSeqNumber);
    response.addCookie(cPassword);
    You HAVE the HttpServletRequest...
    public Object process(HttpServletRequest req, ObjectrequestContext)
    throws ProcessingExceptionMake sense?
    Dan
    "michael C Ford" <[email protected]> wrote in message
    news:[email protected]...
    How can I get to the response this way ?
    this just stored the response as an attribute did it now ?
    If I don't have it, how can I use it in a setAttribute ?
    Sorry just a little slow
    I can't do this can I ?
    request.setAttribute(WebflowConstants.HTTP_SERVLET_RESPONSE,response);
    Cookie cPassword = new Cookie("YYY","ZZZ");
    cCustSeqNumber.setPath("/");
    cPassword.setPath("/");
    response.addCookie(cCustSeqNumber);
    response.addCookie(cPassword);
    "Daniel Selman" <[email protected]> wrote:
    Michael,
    I found this handy snippet in our code:
    // Put the httpServletResponse into the request, this is done
    in
    case IPs want to
    // use the response to deposit cookies. The IPs maynot howeverwrite
    // anything to the response as this will cause an
    IllegalStateException
    request.setAttribute(WebflowConstants.HTTP_SERVLET_RESPONSE,
    response);
    So, the HttpServletResponse is bound into the HttpServletRequest usingthe
    key, WebflowConstants.HTTP_SERVLET_RESPONSE.
    Magic!
    Sincerely,
    Daniel Selman
    "michael C Ford" <[email protected]> wrote in message
    news:[email protected]...
    How do I get to the request object in a webflow.
    I created a input process and one function it needs to do is create
    a
    cookie.
    Problem is I don't have a response object.
    How do I create/get the response object so I can create a cookie.
    Thanks
    Michael C Ford
    ------------------ Code Line ------------------------------------
    public Object process(HttpServletRequest req, Object
    requestContext)
    throws ProcessingException
    // get the pipeline and namespace info for the process
    PipelineSession pSession = null;
    String namespace = null;
    String username = req.getRemoteUser();
    pSession = getPipelineSession(req);
    namespace = getCurrentNamespace(pSession);
    /* ***** DO THE INITIAL CREATE OF THE BEAN *** */
    try {
    Properties props = new Properties();
    props.put(
    Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFactory");
    Context ctx = new InitialContext(props);
    Object homeObject = ctx.lookup("com.??.??PortalMgr");
    SeechangePortalMgrHome seechangePortalMgrHome =
    (SeechangePortalMgrHome) javax.rmi.PortableRemoteObject.narrow(
    homeObject,
    SeechangePortalMgrHome.class);
    SeechangePortalMgr portalMgr = seechangePortalMgrHome.create();
    /* Set the initail user */
    portalMgr.setUser(username);
    UserRuntime userRuntime = (UserRuntime)portalMgr.getRuntimeObject();
    System.out.print("Run Time User is " + userRuntime.getUserName());
    System.out.print("Run Time User is " + userRuntime.getOrgSeq());
    // ** cookies for Actuate XXX=(customer sequence ID), YYY=ZZZ isa
    dummy per
    their requirement
    Cookie cCustSeqNumber = new
    Cookie("XXX",userRuntime.getOrgSeq());
    Cookie cPassword = new Cookie("YYY","ZZZ");
    cCustSeqNumber.setPath("/");
    cPassword.setPath("/");
    ??response.addCookie(cCustSeqNumber);
    ??response.addCookie(cPassword);
    } catch (Exception ee) {
    System.out.print("Unable to create Portal Manager" + ee);
    // at this point we add the logic to produce the bean
    return "success";

  • The selected objects cannot be joined as they are invalid objects,( Compound paths, closed paths, Text Objects, Graphs, Live Paint group). You can use Join command to connect two or more paths, paths in groups; ot to close an open path.

    Hi I was trying to join two Ractangle Tool objects but getting this type of Error in illustrator cs6 :-
    The selected objects cannot be joined as they are invalid objects,( Compound paths, closed paths, Text Objects, Graphs, Live Paint group).
    You can use Join command to connect two or more paths, paths in groups; ot to close an open path.
    Please assist me asap.

    Yes, I know this is an old post, but I’m trying to clean them up. Did you solve this problem, if so what was the solution?
    This sound like a firewall issue. I would start by disabling the firewall and seeing if you can connect. If this works then you know where the problem is,
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • I cannot open Pages from the app or from a saved document on the desk top.  I get an error: "The application Pages cannot be opened  -1712"  Any suggestions?

    I cannot open Pages from the app or from a saved document on the desk top.  I get an error: "The application Pages cannot be opened  -1712"  Any suggestions?

    The following previous discussion has a solution that worked for a variety of people with the -1712 error on a variety of applications and may help: The application Safari can't be opened -1712

  • Still trying to get to the NetStream Object

    Hi, I am trying to get to the NetStream object so that I can listen to the NetStatusEvents. Unfortunately the code listed on:
    http://forums.adobe.com/message/2725207
    no longer works. Is there another way? Thanks.

    It can be frustrating, especially when the workflow is so different from what we are used to with video. The idea behind the structure is to let OSMF manage the stream and expose needed events on the MediaPlayer. It definitely is a different way of doing things, but most events you need can be gotten from there.
    That being said, somethings require the NetStream object. You can extend the VideoElement, which is passed a NetLoader in its constructor. You can get the NetStream off the loader, though it is a good idea to check if it is there, since loader can be one of many classes that may not have the netStream property.:
    if( elementLoader.hasOwnProperty( 'netStream' ) )
      var netStream:NetStream = elementLoader[ 'netStream' ];
    Of course, if you're using a MediaFactory, you may need to customize it to use your custom VideoElement.
    Hope that helps.

  • I just updated my iphone to ios7 and I keep getting stuck at the 'Set up your iPhone' screen. I click 'Restore from Itunes Backup', but it only ends up restarting after restoring and fails to get past the 'Set up your iPhone' screen. Any ideas?

    I just updated my iphone to ios7 and I keep getting stuck at the 'Set up your iPhone' screen. I click 'Restore from Itunes Backup', but it only ends up restarting after restoring and fails to get past the 'Set up your iPhone' screen. Any ideas?

    Normally, I would suggest restoring the iPad and uninstall and reinstall iTunes but you have done both of those things - more times than you ever imagined!
    Have you thought about turning auto syncing off?
    Without connecting your iPad to your laptop, start iTunes. Click on Edit. Click on Preferences. Click on Devices. Check the box next to "Prevent your iPod etc. from automatically syncing." Click OK.
    If you do this you can backup the iPad right away before it syncs. You may want to go into all of the iTunes tabs and just make sure that all of the current content on the iPad is selected to sync before you actually do sync.
    This doesn't solve the problem, but it would prevent the automatic sync and erasing content. Hopefully, in the next few days- when iOS 5 is released - you will also be relieved of this weird iPad behavior - since the iOS devices are supposed to become PC free.
    BTW - and this is no excuse for what you are experiencing, but I have found that some of the game apps that I had on my iPad turned out to be quite troublesome and after I removed them, my problems went away. I know that is almost sacrilege with regard to the Angry Birds addiction .... But I'm just saying ...

  • Just downloaded book but did not get all the way down now cant play it  any answers

    just downloaded book but did not get all the way down now cant play it  any answers

    in iTunes, access your purchase history via your account in the iTunes store, find the file in question, and click on the report a problem button. report the problem. more info in this support article. 
    clicking here  should take you directly to your iTunes store log-in window.

  • Just got Mac book pro. I can't connect to office remotely thru the remote window. My office is window based and I have no problem connecting while at the office thru the server but cannot at home. Any help would be appreciated!

    Just got Mac book pro. I can't connect to office remotely thru the remote window. My office is window based and I have no problem connecting while at the office thru the server but cannot at home. Any help would be appreciated!

    This what my IT replied with:
    That teh MacBook cannot connect with RWW because it requires Active-X to connect.  That MAc browsers (Safari) do not use Active-X but only Windows (IE) uses Active-X control.
    It would seem to me that there must be a way around this. Any help?
    Thanks,

  • When I try to sync my i-pod for new downloads I get an error: The i-pod cannot be synced. The required file cannot be found. Any ideas?

    I have just treated myself to a new PC. Everything seems to be fine and I can purchase new music from i-Tunes Store. However when I come to sync my i-Pod Classic I get an error message:
    The iPod cannot be synced. The required file cannot be found
    Any ideas?

    Try deleting your iPod's Photo cache to see if that helps. See this article to help you locate your iPod's Photo Cache.
    http://support.apple.com/kb/ts1314
    B-rock

  • HT3964 My MacBook Air running on Snow Leopard gets extremely slow (almost like a hang, except if you wait about half an hr, it actually moves) after login interface. sometimes it never gets past the background. Cannot log back in.

    My MacBook Air running on Snow Leopard gets extremely slow (almost like a hang, except if you wait about half an hr, it actually moves) after login interface. Sometimes it never gets past the background of the homepage, desktop doesn't seem to load. After multiple forced shut downs and left to run for hours, sometimes the desktop loads but the dock does not respond when applications are opened. The computer is then unable to shut down normally. Forced shut downs are necessary most times. Time machine backup takes extremely long, and attempts to use the time machine to bring the laptop back to the time befiore the problem arose was met with extremely slow and hung time machine function.
    Please help!

    There isn't much besides a failing hard drive or other hardware fault that can cause those symptoms. Run the Apple Hardware Test, or just take it to an Apple Store for testing.

  • I tried to open a 2 year old movie (3.2GB) through iDVD today from an external drive and now I cannot get the color wheel to stop spinning. I tried restarting, it allows me to login and then gets to the background screen and spins again. Any ideas?

    I tried ti open a 2 year old movie (3.2 GB) through iDvD today from an external drive and got the spinning color wheel. I restarted the computer to see if it would stop and it let's me login but then the color wheel continues to spin. Any ideas?

    After admittedly only a quick read the one thing you don't say is how you are trying to make this move.  Most people with moving library issues do it the wrong way.  Plenty of web sites tell you how to do it the wrong way.
    If the iTunes application is started before the drive with the library is fully mounted and awake iTunes will revert back to the internal drive.

  • I have the BOR object  selfitem not delegated to any subtype

    i use the above one in a task
    if i create a new subtype,delegate it to this and use it an another task does it effect the first one.

    Hii Kittu,
    Let me add few words about delegate.
    Once u make a subtype of a standard BO and make it a delegate type, It actually carries all the properties(Methods,Attribute, Events..) of standard BO(or what ever u have made as object type in delegation).
    Now may be u r using ur Standard BO at some where.[As per ur query]
    So when u make changes in the z-object, this will be reflected in the standard one, thats what is the delegation all about...
    But, but but , You can not change the existing (rather enherited properties) of standard BO.
    So add properties in z-object as per ur requirementas per ur requirement.
    Now once u use it, it will not affect the older ones...
    Hope it helps u...
    <b>"Dont forget to reward points"</b>
    Regards,
    Ashish

  • HT2995 I have no audio output implementing the toslink digital , can see the red light at the input end to audio recv'r any thoughts

    does the toslink output need turned on , currently there's a toslink connected to the headphone output , but no audio

    Hello, what shows as Sound Ouput choices in System Preferences>Sound?
    Also...
    Open Audio Midi Setup in Applications>Utilities, see the input & output options & KHz setting there.

  • Getting back the "this file cannot be played on an iPod" error message

    Apparently, my iTunes library contains some song files that are out-of-spec and unplayable on an iPod. When I first plugged in my iPod, I remember getting a message to the effect of "The file 'FOO' was not copied to the iPod 'BAR' because this file cannot be played on an iPod." This message repeated for several dozen files before I got annoyed and clicked the "Do not show me this message again" checkbox.
    Well, now I want to go through my iTunes library and clean up these incompatible files, so I WANT to see these error messages again. Is there any way, perhaps by mucking with the iTunes plist file, of getting them back?
    Any and all help appreciated. Thanks!
    Mac mini G4/1.42, MacBook Pro Core Duo 1.83Ghz   Mac OS X (10.4.9)  

    Hi there,
    You may find the troubleshooting steps in the article below helpful.
    iTunes: May be unable to transfer videos to iPhone, iPad, or iPod
    http://support.apple.com/kb/TS1497
    -Griff W.

  • My Ipad will not unlock.  When I slide to unlock it speaks 'unlock key', if I touch the date it 'speaks the date', but I cannot get into the pad.  Was working fine yesterday, any suggestions would be appreciated.  Lisa

    My Ipad will not unlock.  When I 'slide to unlock it speaks 'unlock key', if I touch the date it 'speaks the date', when I turn it on is 'speaks the time', but I cannot get into this ipad at all.  It was working correctly yesterday, any idea's would be appreciated.

    Your iPad is likely stuck in in VoiceOver mode.  Try triple-clicking the home button or connecting your iPad to iTunes on your computer.  You can disable VoiceOver in iTunes from the iPad's summary page by scrolling down to the Options box and clicking on Configure Accessibility.
    Good luck!

Maybe you are looking for

  • I only want to download e-mail via wifi, how do I set this up?

    I have just got iPhone4 and only want to download and send e-mails via wifi connection i.e. NOT the 3G network, is it possible to set up this as option and if so how?

  • Disappointment?

    Hello. I have some Family I would like to Video Chat to (because I don't see them often) but they have PCs and use MSN Messenger. I downloaded MSN Messenger for MAC but this doesn't support video or audio between a MAC and a PC (as far as I can tell)

  • IMovie exporting to camera

    I am trying to export a movie back to my camera, the video exports fine but the audio does not follow. However if I playback the camera through the Imovie the audio is there. I assume there is some encoding that only Imovie can playback, how can I ch

  • Why do i get an error message says im missing msvcr80.dll?

    i went to upgrade to the new version, it said it downloaded then this message poped up msvcr80.dll missing windows error 126

  • NiUSRP Spectral Monitoring problem

    Hi I am using USRP to monitor 2.4 Ghz ISM band. I have used one of the written examples to monitor power in real time for 2.4 Ghz but I have realized although the Fetch RX Data is inside a loop but if I transmit a signal( lets say a narrowband signal