# Set-BluGenieScriptCredentials

﻿

### Set-BluGenieScriptCredentials <a href="#set-blugeniescriptcredentials" id="set-blugeniescriptcredentials"></a>

### SYNOPSIS <a href="#synopsis" id="synopsis"></a>

Set Credentials at the command line

### SYNTAX <a href="#syntax" id="syntax"></a>

```
Set-BluGenieScriptCredentials [-SetUser] <String> [-SetPass] <String> [-Walkthrough] [<CommonParameters>]
```

### DESCRIPTION <a href="#description" id="description"></a>

Set Credentials without using Get-Credentials and being prompted for a password

### EXAMPLES <a href="#examples" id="examples"></a>

#### EXAMPLE 1 <a href="#example-1" id="example-1"></a>

```
Command: $Creds = Set-BluGenieScriptCredentials -UserName 'Guest' -Password 'Password!'
```

```
Description: Use this command to Set Credentials and save that information to a variable called $Creds
Notes:
```

#### EXAMPLE 2 <a href="#example-2" id="example-2"></a>

```
Command: $Creds = Set-ScriptCredentials -UserName 'TestDomain\Guest' -Password 'Password!'
```

```
Description: Use this command to Set Domain Credentials and save that information to a variable called $Creds
Notes: This command uses the Alias command name
```

#### EXAMPLE 3 <a href="#example-3" id="example-3"></a>

```
Command: $Creds = Set-ScriptCredentials -UserName 'TestDomain\Guest' -Password 'Password!'
```

```
$Creds.ShowPassword()Description: Use this command to show an already saved Cred Password
Notes: This is a known PowerShell method which will expose the current password.  This is not a secure method for managing Passwords.
```

#### EXAMPLE 4 <a href="#example-4" id="example-4"></a>

```
Command: Set-BluGenieScriptCredentials -Help
```

```
Description: Call Help Information
Notes: If Help / WalkThrough is setup as a parameter, this script will be called to setup the Dynamic Help Menu if not the normal Get-Help will be called with the -Full parameter
```

#### EXAMPLE 5 <a href="#example-5" id="example-5"></a>

```
Command: Set-BluGenieScriptCredentials -WalkThrough
```

```
Description: Call Help Information [2]
Notes: If Help / WalkThrough is setup as a parameter, this script will be called to setup the Dynamic Help Menu if not the normal Get-Help will be called with the -Full parameter
```

### PARAMETERS <a href="#parameters" id="parameters"></a>

#### SetUser <a href="#setuser" id="setuser"></a>

```
-SetUser <String>
   Description: User Name for the Current Credentials
   Notes: You can set a domain by using "Domain_Name\UserName"
   Alias: 'UserName','Usr'
   ValidateSet:
   
   Required?                    true
   Position?                    1
   Default value                
   Accept pipeline input?       true (ByPropertyName)
   Accept wildcard characters?  false
```

#### SetPass <a href="#setpass" id="setpass"></a>

```
-SetPass <String>
   Description: Password for the Current Credentials
   Notes:
   Alias: 'Password','Pw'
   ValidateSet:
   
   Required?                    true
   Position?                    2
   Default value                
   Accept pipeline input?       true (ByPropertyName)
   Accept wildcard characters?  false
```

#### Walkthrough <a href="#walkthrough" id="walkthrough"></a>

```
-Walkthrough [<SwitchParameter>]
   Description:  Start the dynamic help menu system to help walk through the current command and all of the parameters
   Notes:
   Alias: Help
   ValidateSet:
   
   Required?                    false
   Position?                    named
   Default value                False
   Accept pipeline input?       false
   Accept wildcard characters?  false
```

#### CommonParameters <a href="#commonparameters" id="commonparameters"></a>

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).
