Skip to content

Commit

Permalink
Merge pull request #6 from scott1138/1.0.1
Browse files Browse the repository at this point in the history
Update readme.md for v1.0.1
  • Loading branch information
scott1138 authored Jun 29, 2020
2 parents 2a4b251 + 4d6913c commit 1da2983
Showing 1 changed file with 23 additions and 15 deletions.
38 changes: 23 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,17 @@ PS-Tools is a collection of tools to simplify the administrative processes.
* [Pending Improvements](#Pending-Improvements)

## Change Log
* v1.0.1 - 2020-?
* v1.0.1 - 2020-6-29
* New Cmdlets
* Write-InformationPlus
* Adds foreground\background color and nonewline options when calling Write-Information
* Fixes
* ?
* Lots of internal changes to resolve PSScriptAnalyzer findings
* Breaking changes
* Renamed commands
* Login-AzureAD to Connect-AzureADTenant
* Handle-Error to Format-Error
* Refresh-Module to Update-CustomModule
* v1.0.0 - 2020-06-24
* Initial collection

Expand All @@ -43,7 +51,7 @@ Several of the cmdlets require other modules be preset as well, including, but n
* [New-AADServicePrincipal](#New-AADServicePrincipal)
* Creates an Azure AD service principal. Can use generate either a password or certificate to be used for authentication.
* Outputs the client id and the password or certificate as a PFX.
* [New-ADUser](#New-ADUser)
* [New-User](#New-User)
* Create an AD user. There are three parameter sets, RSA, NoRSA, or FromFile. RSA and NoRSA are for creating single users from the command line.
* FromFile uses a CSV to provide data for multiple users at once. When RSA is used an additional email is sent to the Security team to request an RSA token with the phone type.
* With the AADSync switch, the user account will be created in the AAD synchronized OU and the user will be sent a single email explaining the AAD user registration process and a link to set the password. A phone number is required with the AADSync option.
Expand Down Expand Up @@ -96,40 +104,40 @@ Certificate exported to C:\Temp\SP-App-Env.pfx
```
##### [Return to Commands](#Commands)

### New-ADUser
### New-User

* For more details use:
```
Get-Help New-ADUser
Get-Help New-User
```

* Syntax
```
New-ADUser -FirstName <string> -LastName <string> -EmailAddress <string> -Description <string> [-Domain <string>] [-ADGroups <string[]>] [-AADGroups <string[]>] [-MobileNumber <string>] [-WhatIf] [-Confirm] [<CommonParameters>]
New-User -FirstName <string> -LastName <string> -EmailAddress <string> -Description <string> [-Domain <string>] [-ADGroups <string[]>] [-AADGroups <string[]>] [-MobileNumber <string>] [-WhatIf] [-Confirm] [<CommonParameters>]
New-ADUser -FirstName <string> -LastName <string> -EmailAddress <string> -Description <string> -RSA -PhoneType {Android | iPhone} [-Domain <string>] [-ADGroups <string[]>] [-AADGroups <string[]>] [-MobileNumber <string>] [-WhatIf] [-Confirm] [<CommonParameters>]
New-User -FirstName <string> -LastName <string> -EmailAddress <string> -Description <string> -RSA -PhoneType {Android | iPhone} [-Domain <string>] [-ADGroups <string[]>] [-AADGroups <string[]>] [-MobileNumber <string>] [-WhatIf] [-Confirm] [<CommonParameters>]
New-ADUser -UserFile <string> [-Domain <string>] [-WhatIf] [-Confirm] [<CommonParameters>]
New-User -UserFile <string> [-Domain <string>] [-WhatIf] [-Confirm] [<CommonParameters>]
```

* Create new user from command line (With RSA request)
```
New-ADUser -FirstName 'Nancy' -LastName 'Drew' -EmailAddress '[email protected]' -Description 'Some Description' -PhoneType iPhone -RSA
New-User -FirstName 'Nancy' -LastName 'Drew' -EmailAddress '[email protected]' -Description 'Some Description' -PhoneType iPhone -RSA
```

* Create new user from command line (No RSA request)
```
New-ADUser -FirstName 'Nancy' -LastName 'Drew' -EmailAddress '[email protected]' -Description 'Some Description'
New-User -FirstName 'Nancy' -LastName 'Drew' -EmailAddress '[email protected]' -Description 'Some Description'
```

* Create new user from command line (Specify groups, No RSA request)
```
New-ADUser -FirstName 'Nancy' -LastName 'Drew' -EmailAddress '[email protected]' -Description 'Some Description' -ADGroups @('ADGroup1','ADGroup2') -AADGroups @('AADGroup1','AADGroup2')
New-User -FirstName 'Nancy' -LastName 'Drew' -EmailAddress '[email protected]' -Description 'Some Description' -ADGroups @('ADGroup1','ADGroup2') -AADGroups @('AADGroup1','AADGroup2')
```

* Create new user from command line (Copy groups from SourceUser)
```
New-ADUser -FirstName 'Nancy' -LastName 'Drew' -EmailAddress '[email protected]' -Description 'Some Description' -SourceUser '[email protected]'
New-User -FirstName 'Nancy' -LastName 'Drew' -EmailAddress '[email protected]' -Description 'Some Description' -SourceUser '[email protected]'
```

* Create new users from a file
Expand All @@ -140,7 +148,7 @@ Joe,Hardy,Test User,[email protected],,,,,+1 555-444-1234
Nancy,Drew,Test User,[email protected],,,,,+1 555-444-5678
...
New-ADUser -FromFile <path>\users.csv
New-User -FromFile <path>\users.csv
```

* Create new users from a file (Specify Groups)
Expand All @@ -151,7 +159,7 @@ Joe,Hardy,Test User,[email protected],ADGroup1;ADGroup2,AADGroup1;AADGroup2,
Nancy,Drew,Test User,[email protected],ADGroup1;ADGroup2,AADGroup3;AADGroup4,,,+1 555-444-5678
...
New-ADUser -FromFile <path>\users.csv
New-User -FromFile <path>\users.csv
```

* Create new users from a file (With RSA)
Expand All @@ -162,7 +170,7 @@ Joe,Hardy,Test User,[email protected],,,true,iPhone,+1 555-444-1234
Nancy,Drew,Test User,[email protected],,,true,Android,+1 555-444-5678
...
New-ADUser -FromFile <path>\users.csv
New-User -FromFile <path>\users.csv
```

##### [Return to Commands](#Commands)
Expand Down

0 comments on commit 1da2983

Please sign in to comment.