-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds functions to retrieve password policies for each available VMware Aria product deployed in a VMware Cloud Foundation instance. Thes functions are dependent on enhancements in `PowerValidatedSolutions` v2.9.0 (March 2024) milestone: `Get-vRSLCMProductPassword`, `Get-vRSLCMLockerPassword`, and `Get-vRSLCMProductDetails`. Signed-off-by: Jared Burns <jared.burns@broadcom.com>
- Loading branch information
1 parent
dc29486
commit 7a06fe2
Showing
89 changed files
with
8,242 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
197 changes: 197 additions & 0 deletions
197
docs/documentation/functions/Get-AriaLocalUserAccountLockout.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,197 @@ | ||
# Get-AriaLocalUserAccountLockout | ||
|
||
## Synopsis | ||
|
||
Retrieves the password account lockout for local users. | ||
|
||
## Syntax | ||
|
||
```powershell | ||
Get-AriaLocalUserAccountLockout -vmName <String> -guestUser <String> -guestPassword <String> [-vrni] | ||
[-product <String>] [-drift] [-version <String>] [-reportPath <String>] [-policyFile <String>] | ||
[<CommonParameters>] | ||
``` | ||
|
||
## Description | ||
|
||
The `Get-AriaLocalUserAccountLockout` cmdlets retrieves the password account lockout for local users | ||
|
||
## Examples | ||
|
||
### Example 1 | ||
|
||
```powershell | ||
Get-AriaLocalUserAccountLockout -vmName sfo-vra01 -guestUser root -guestPassword VMw@re1! -product vra | ||
``` | ||
|
||
This example retrieves the VMware Aria Automation password account lockout. | ||
|
||
### Example 2 | ||
|
||
|
||
### Example 3 | ||
|
||
```powershell | ||
Get-AriaLocalUserAccountLockout -vmName sfo-vra01 -guestUser root -guestPassword VMw@re1! -drift -product vra -reportPath "F:\Reporting" -policyFile "passwordPolicyConfig.json" | ||
``` | ||
|
||
This example retrieves the VMware Aria Automation password account lockout and checks the configuration drift using the provided configuration JSON. | ||
|
||
### Example 4 | ||
|
||
```powershell | ||
Get-AriaLocalUserAccountLockout -vmName sfo-vra01 -guestUser root -guestPassword VMw@re1! -drift -product vra | ||
``` | ||
|
||
This example retrieves the VMware Aria Automation password account lockout and compares the configuration against the product defaults. | ||
|
||
|
||
## Parameters | ||
|
||
### -vmName | ||
|
||
The virtual machine name. | ||
|
||
```yaml | ||
Type: String | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: True | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### -guestUser | ||
The guest user name. | ||
```yaml | ||
Type: String | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: True | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### -guestPassword | ||
The guest user password. | ||
```yaml | ||
Type: String | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: True | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### -vrni | ||
The Aria Operations for Networks flag. | ||
```yaml | ||
Type: SwitchParameter | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: False | ||
Position: Named | ||
Default value: False | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### -product | ||
The product to retrieve the password account lockout policy | ||
```yaml | ||
Type: String | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### -drift | ||
The configuration drift flag. | ||
```yaml | ||
Type: SwitchParameter | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: False | ||
Position: Named | ||
Default value: False | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### -version | ||
The product version. | ||
```yaml | ||
Type: String | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### -reportPath | ||
The report path. | ||
```yaml | ||
Type: String | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### -policyFile | ||
The policy file. | ||
```yaml | ||
Type: String | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### Common Parameters | ||
This cmdlet supports the common parameters: `-Debug`, `-ErrorAction`, `-ErrorVariable`, `-InformationAction`, `-InformationVariable`, `-OutVariable`, `-OutBuffer`, `-PipelineVariable`, `-Verbose`, `-WarningAction`, and `-WarningVariable`. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). |
Oops, something went wrong.