Hi All,
I've got a project where I need to enumerate the dacls on a bunch of shares, find group Everyone, and remove it. So I thought of using subinacl from within powershell.
The actual command
subinacl /share \\server\share /display=dacl
looks just fine if I run it directly from the shell. But if I try to dump that into a variable, or pipe it out to a file, the output looks like this (there's an extra space between every single character of the output):
= = = = = = = = = = = = = = = = = = = = = =
+ S h a r e \ \ v 2 k 3 0 1 \ l e v e l
= = = = = = = = = = = = = = = = = = = = = =
/ p e r m . a c e c o u n t = 2
/ p a c e = b u i l t i n \ a d m i n i s t r a t o r s A C C E S S _ A L L O W E D _ A C E _ T Y P E - 0 x 0
F u l l C o n t r o l
/ p a c e = p r a x i s \ j a n e u s e r A C C E S S _ A L L O W E D _ A C E _ T Y P E - 0 x 0
F u l l C o n t r o l
which isn't great for searching for "Everyone". Any idea why this is happening, and what I can do to fix it? I could work around it, or just take what I've got and search for "E V E R Y O N E" but I'd rather learn how to do this correctly. :-)
Thanks in advance!
Jim