|
adaz posted:Bumping this thread in case there are any more questions and the scripting guys have been running a great series on powershell & active directory this week that everyone should check out:
|
# ¿ Sep 26, 2011 11:34 |
|
|
# ¿ Apr 30, 2024 21:47 |
|
This is awesome: you map a share from a normal shell: can't use your admin token. You map it from an elevated shell: can't loving resolve. What the gently caress do you want from me. e: works after restarting the shell. Urgh. Also, any program that can create 260+ chars paths needs to die in a fire. HAHA you can look at it, but you can't touch it! Long story short, I'm now writing a script that recursively renames to shortest possible name + takes ownership (in which order? both!) and deletes anything still alive. gently caress you, NTFS. evil_bunnY fucked around with this message at 10:35 on Oct 11, 2011 |
# ¿ Oct 11, 2011 10:14 |
|
Serfer posted:See also subst.
|
# ¿ Oct 11, 2011 21:20 |
|
psylent posted:I'm incredibly new to Powershell, as a senior helpdesk monkey I can see how it's going to be incredibly helpful. An easier way to do this is to define deny rights on your filesystems and just plop them in that group when they leave (after disabling the account). More work beforehand, but very simple day-to-day.
|
# ¿ Dec 19, 2011 13:00 |
|
Get-ChildItem, if I see you around I'm going to beat your rear end to a pulp. That is all.
evil_bunnY fucked around with this message at 21:56 on Dec 12, 2012 |
# ¿ Dec 12, 2012 18:12 |
|
It would be trivial to make a CLI script user-friendly instead.
|
# ¿ Apr 16, 2013 15:41 |
|
code:
code:
|
# ¿ Oct 24, 2013 17:43 |
|
|
# ¿ Apr 30, 2024 21:47 |
|
Just /MIR it and log to a file.
|
# ¿ Sep 18, 2014 19:52 |