141 reputation
bio website kikuchiyo.org
location Millbrae, CA
age 33
visits member for 2 years, 9 months
seen Jun 27 at 19:19

Goal: Programmer providing open source support benefiting equalization of access to information, and servicing small businesses and, or, low-income families.


    active directory ( experience: three years )
    powershell ( experience: three years )
    javascript ( experience two years )
    bash ( experience: two years )
    ruby ( experience: one year )
    sas ( experience: three years )
    dos ( experience: three years )

comment How to give a user NTFS rights to a folder, via Powershell
I wish I had a Windows machine to test on. I'm totally winging it, lol. Did you try write-host "username=$username" immediately after you assign the $username? If it outputs "username=", then it must be the read-host. Also, we have a discrepancy where I use $user_name and you $username. Sorry about that. I'm sure you probably used $username, but just in case, thought I'd double check. Wish I could help more. Good luck, Don.
comment get-adcomputer error: “Invalid Enumeration Context” when running powershell script
Mark, you are correct, and I updated the suggestion to filter as your task requires. This should eleviate concerns of efficiency on the 10k objects. I think the only advantage is handling small strings instead of objects with unused data, and that you can potentially get alternative information on the issue and, or, by-pass the current issue. Either way, good luck! :)