Managing Windows Local Users with PowerShell
-
@WrCombs said in Managing Windows Local Users with PowerShell:
@scottalanmiller said in Managing Windows Local Users with PowerShell:
@WrCombs said in Managing Windows Local Users with PowerShell:
Part of a series on WIndows Systems Administration by Scott Alan Miller
Can we get a link to this?
I've not put the ToC together yet. But the tag works.
sweet - thanks.
I have some interest in Windows Administration , ThanksMe too
-
so ugly compared to using bash in linux...I just hate the way powershell syntax is.
-
@StuartJordan said in Managing Windows Local Users with PowerShell:
so ugly compared to using bash in linux...I just hate the way powershell syntax is.
What does the syntax in linux "using bash" look like?
-
@WrCombs In regards to adding users on Linux..not adding Windows users.
-
even the net user command looks cleaner:
"net localgroup administrators username /add"
But yep, powershell is the future and that is now defunct....
-
the only bonus, you do get tab completion is powershell...mainly because you need it for the long ass commands lol
-
@StuartJordan said in Managing Windows Local Users with PowerShell:
the only bonus, you do get tab completion is powershell...mainly because you need it for the long ass commands lol
Self fulfilling need
-
@StuartJordan said in Managing Windows Local Users with PowerShell:
even the net user command looks cleaner:
"net localgroup administrators username /add"Yeah, faster, simpler, easier, more obvious, more memorable.
-
@WrCombs said in Managing Windows Local Users with PowerShell:
@StuartJordan said in Managing Windows Local Users with PowerShell:
so ugly compared to using bash in linux...I just hate the way powershell syntax is.
What does the syntax in linux "using bash" look like?
So definitely "using Bash" needs quotes, it's "in standard UNIX" and Bash just calls it. It's really Windows vs. Linux here rather than PowerShell vs Bash. But the "official" Windows way is this PS CmdLet mess. The standard Linux way looks like this...
useradd sally
Then to add a password all at once is more complex. net user is the winner of simplicity.
Here is how you do a single line add with useradd in Linux...
useradd -p $(echo mysecret | openssl passwd -1 -stdin) sally
-
Topic has been forked, please keep discussions of OS comparisons to a different thread.