Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mikenelson-io committed Aug 9, 2024
1 parent bea0a82 commit 8b4d2ab
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Get-MgUser | Get-Member
# Open swagger


# Create a new user in AD
# Create a new user in AD and add to a group
## Define user details
$userName = "JohnDoe"
$firstName = "John"
Expand All @@ -27,6 +27,9 @@ New-ADUser -SamAccountName $userName -GivenName $firstName -Surname $lastName -A
## Add user to a group
Add-ADGroupMember -Identity "GroupName" -Members $userName




# Automate for multiple users via a .csv file
$users = Import-Csv "C:\demo\poshautomate\newADusers.csv"
foreach ($user in $users) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ Using Windows Terminal:
- Type `Get-Pro` and press `Tab` to complete the cmdlet name.
- Using command history:
- Use the up and down arrow keys to navigate through command history.
- Use the `h` and `l` keys to navigate through command history.
- Use `Get-Histry` and `Invoke-History` to show and run a command from history:
- Use `Get-History` and `Invoke-History` to show and run a command from history:

```powershell
Get-History
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
### PowerShell References

*Although this is not an all-inclusive list, it does highlight some of the most important references for PowerShell.*
_Although this is not an all-inclusive list, it does highlight some of the most important references for PowerShell._

#### History

- [The Monad Manifesto](https://devblogs.microsoft.com/powershell/the-monad-manifesto/)
- [The Monad Manifesto](https://jsnover.com/Docs/MonadManifesto.pdf)

#### Documentation

Expand Down

0 comments on commit 8b4d2ab

Please sign in to comment.