Reputation
Top tag
Next privilege 200 Rep.
See reduced ads
Badges
3
Impact
~7k people reached

  • 0 posts edited
  • 0 helpful flags
  • 0 votes cast
Feb
13
awarded  Autobiographer
Feb
7
revised I need to clear out the same directory on multiple servers across a network. How do I do this?
Fix indentation of answer
Nov
23
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.
Nov
19
revised get-adcomputer error: “Invalid Enumeration Context” when running powershell script
$rest_of_your_pattern is no longer needed in reg-ex as it is handled in initial dsquery command
Nov
19
awarded  Editor
Nov
19
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! :)
Nov
19
revised get-adcomputer error: “Invalid Enumeration Context” when running powershell script
Updated initial dsquery command with filter to eleviate concerns of inefficiency, rightly pointed out by Mark M.
Nov
19
answered is there a good tool for viewing the permissions in AD?
Nov
19
answered get-adcomputer error: “Invalid Enumeration Context” when running powershell script
Nov
19
answered How to give a user NTFS rights to a folder, via Powershell
Nov
19
awarded  Teacher
Nov
10
answered I need to clear out the same directory on multiple servers across a network. How do I do this?