mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-12 06:02:56 +02:00
Updated the manuals
This commit is contained in:
@ -6,7 +6,7 @@ This PowerShell script removes an existing user account including the home direc
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./remove-user.ps1 [[-username] <String>] [<CommonParameters>]
|
||||
/home/markus/Repos/PowerShell/scripts/remove-user.ps1 [[-username] <String>] [<CommonParameters>]
|
||||
|
||||
-username <String>
|
||||
|
||||
@ -25,7 +25,7 @@ Example
|
||||
-------
|
||||
```powershell
|
||||
PS> ./remove-user.ps1 Joe
|
||||
✔️ Removed user 'Joe' including home directory in 11s.
|
||||
✅ Removed user 'Joe' including home directory in 11s.
|
||||
|
||||
```
|
||||
|
||||
@ -47,7 +47,7 @@ Script Content
|
||||
This PowerShell script removes an existing user account including the home directory.
|
||||
.EXAMPLE
|
||||
PS> ./remove-user.ps1 Joe
|
||||
✔️ Removed user 'Joe' including home directory in 11s.
|
||||
✅ Removed user 'Joe' including home directory in 11s.
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -67,7 +67,7 @@ try {
|
||||
}
|
||||
|
||||
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
||||
"✔️ Removed user '$username' including home directory in $($elapsed)s."
|
||||
"✅ Removed user '$username' including home directory in $($elapsed)s."
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -75,4 +75,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of remove-user.ps1 as of 08/15/2024 09:50:53)*
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of remove-user.ps1 as of 11/08/2024 12:34:54)*
|
||||
|
Reference in New Issue
Block a user