> For the complete documentation index, see [llms.txt](https://docs.blusapphire.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.blusapphire.io/log-forwarding/99_retired/blugenie/enable-blugeniewinrmoverwmi.md).

# Enable-BluGenieWinRMoverWMI

## NAME

&#x20;Enable-BluGenieWinRMoverWMI

## SYNOPSIS

&#x20;Enable-BluGenieWinRMoverWMI will try and connect to a remote host and enable WinRM

## SYNTAX

&#x20;Enable-BluGenieWinRMoverWMI \[\[-ComputerName] \<String>] \[-looptimer \<Int32>] \[-termloopcounter \<Int32>] \[-MaxConcurrentUsers \<Int32>]

&#x20;\[-MaxProcessesPerShell \<Int32>] \[-MaxMemoryPerShellMB \<Int32>] \[-MaxShellsPerUser \<Int32>] \[-MaxShellRunTime \<Int32>] \[-SetMaxValues]

&#x20;\[-SetValues] \[-ReturnDetails] \[-Walkthrough] \[-ReturnObject] \[-OutUnEscapedJSON] \[-FormatView \<String>] \[\<CommonParameters>]

## DESCRIPTION

&#x20;Enable-BluGenieWinRMoverWMI will try and connect to a remote host and enable WinRM. The Service, Firewall, and Configuration will be enabled.

### PARAMETERS

#### &#x20;-ComputerName \<String>

&#x20;Description: Computer name of the remote host

#### &#x20;Notes:

&#x20;Alias:

&#x20;ValidateSet:

&#x20;Required? *false*

&#x20;Position? *1*

&#x20;Default value: *None*

&#x20;Accept pipeline input? *false*

&#x20;Accept wildcard characters? *false*

#### &#x20;-looptimer \<Int32>

&#x20;Description: How long to wait before processing another loop

&#x20;Notes: *Default 5 seconds*

#### &#x20;Alias:

&#x20;ValidateSet:

&#x20;Required? *false*

&#x20;Position? *named*

&#x20;Default value *5*

&#x20;Accept pipeline input? *false*

&#x20;Accept wildcard characters? *false*

#### &#x20;-termloopcounter \<Int32>

&#x20;Description: How many times the process should loop before exiting

&#x20;Notes: *Default 6 times*

&#x20;Alias:

&#x20;ValidateSet:

&#x20;Required? *false*

&#x20;Position? *named*

&#x20;Default value *6*

&#x20;Accept pipeline input? *false*

&#x20;Accept wildcard characters? *false*

#### &#x20;-MaxConcurrentUsers \<Int32>

&#x20;Description: Set WMI value for MaxConcurrentUsers

&#x20;Notes: *Default 25*

&#x20;Alias:

&#x20;ValidateSet:

&#x20;Required? *false*

&#x20;Position? *named*

&#x20;Default value *25*

&#x20;Accept pipeline input? *false*

&#x20;Accept wildcard characters? *false*

#### &#x20;-MaxProcessesPerShell \<Int32>

&#x20;Description: Set WMI value for MaxConcurrentUsers

&#x20;Notes: Default 100

&#x20;Alias:

&#x20;ValidateSet:

&#x20;Required? false

&#x20;Position? named

&#x20;Default value 100

&#x20;Accept pipeline input? false

&#x20;Accept wildcard characters? false

#### &#x20;-MaxMemoryPerShellMB \<Int32>

&#x20;Description: Set WMI value for MaxMemoryPerShellMB

&#x20;Notes: Default 1024

&#x20;Alias:

&#x20;ValidateSet:

&#x20;Required? false

&#x20;Position? named

&#x20;Default value 1024

&#x20;Accept pipeline input? false

&#x20;Accept wildcard characters? false

#### &#x20;-MaxShellsPerUser \<Int32>

&#x20;Description: Set WMI value for MaxShellsPerUser

&#x20;Notes: Default 30

&#x20;Alias:

&#x20;ValidateSet:

&#x20;Required? false

&#x20;Position? named

&#x20;Default value 30

&#x20;Accept pipeline input? false

&#x20;Accept wildcard characters? false

#### &#x20;-MaxShellRunTime \<Int32>

&#x20;Description: Set WMI value for MaxShellRunTime

&#x20;Notes: Default 2147483647 for PowerShell 3.0 and above

&#x20;Alias:

&#x20;ValidateSet:

&#x20;Required? false

&#x20;Position? named

&#x20;Default value 2147483647

&#x20;Accept pipeline input? false

&#x20;Accept wildcard characters? false

#### &#x20;-SetMaxValues \[\<SwitchParameter>]

&#x20;**Description**: Allow for WMI value to be set to the Max Values and overwrite any parameters given.

&#x20;Notes:

&#x20;Alias:

&#x20;ValidateSet:

&#x20;Required? false

&#x20;Position? named

&#x20;Default value False

&#x20;Accept pipeline input? false

&#x20;Accept wildcard characters? false

#### &#x20;-SetValues \[\<SwitchParameter>]

&#x20;Description: Allow for WMI value to be set.

&#x20;Notes: By default this is view only

&#x20;Alias:

&#x20;ValidateSet:

&#x20;Required? false

&#x20;Position? named

&#x20;Default value False

&#x20;Accept pipeline input? false

&#x20;Accept wildcard characters? false

#### &#x20;-ReturnDetails \[\<SwitchParameter>]

&#x20;Description: Gather more detailed information on WMI and PowerShell

&#x20;Notes: By default the return is (True / False) for Enabled or not

&#x20;Alias:

&#x20;ValidateSet:

&#x20;Required? false

&#x20;Position? named

&#x20;Default value False

&#x20;Accept pipeline input? false

&#x20;Accept wildcard characters? false

#### &#x20;-Walkthrough \[\<SwitchParameter>]

&#x20;Description: Start the dynamic help menu system to help walk through the current command and all of the parameters

&#x20;Notes:

&#x20;Alias: Help

&#x20;ValidateSet:

&#x20;Required? false

&#x20;Position? named

&#x20;Default value False

&#x20;Accept pipeline input? false

&#x20;Accept wildcard characters? false

#### &#x20;-ReturnObject \[\<SwitchParameter>]

&#x20;Description: Return information as an Object

&#x20;Notes: By default the data is returned as a Hash Table

&#x20;Alias:

&#x20;ValidateSet:

&#x20;Required? \tfalse

&#x20;Position? named

&#x20;Default value False

&#x20;Accept pipeline input? false

&#x20;Accept wildcard characters? false

#### &#x20;-OutUnEscapedJSON \[\<SwitchParameter>]

&#x20;Description: Remove UnEsacped Char from the JSON information.

&#x20;Notes: This will beautify json and clean up the formatting.

&#x20;Alias:

&#x20;ValidateSet:

&#x20;Required? false

&#x20;Position? named

&#x20;Default value False

&#x20;Accept pipeline input? false

&#x20;Accept wildcard characters? false

#### &#x20;-FormatView \<String>

&#x20;Description: Select which format to return the object data in.

&#x20;Notes: Default value is set to (None). This value is only valid when using the -ReturnObject parameter

&#x20;Alias:

&#x20;ValidateSet: 'Table','Custom','CustomModified','None','JSON','OutUnEscapedJSON','CSV'

&#x20;Required? false

&#x20;Position? named

&#x20;Default value Table

&#x20;Accept pipeline input? false

&#x20;Accept wildcard characters? false

&#x20;\<CommonParameters>

&#x20;This cmdlet supports the common parameters: Verbose, Debug,

&#x20;ErrorAction, ErrorVariable, WarningAction, WarningVariable,

&#x20;OutBuffer, PipelineVariable, and OutVariable. For more information, see

&#x20;about\_CommonParameters (https\:/go.microsoft.com/fwlink/?LinkID=113216).

### INPUTS

### OUTPUTS

&#x20;TypeName: System.Collections.Hashtable

#### NOTES

&#x20;\* Original Author : Michael Arroyo

&#x20;\* Original Build Version : 1812.2301

&#x20;\* Latest Author : Michael Arroyo

&#x20;\* Latest Build Version : 2002.2801

&#x20;\* Comments :

&#x20;\* PowerShell Compatibility : 2,3,4,5.x

&#x20;\* Forked Project :

&#x20;\* Link :

&#x20;\~

### &#x20;\* Dependencies :

&#x20;\~ Invoke-WalkThrough - Invoke-WalkThrough is an interactive help menu system

&#x20;\~ Get-ErrorAction - Get-ErrorAction will round up any errors into a simple object

### &#x20; EXAMPLE 1

&#x20;PS C:\\>Command: Enable-BluGenieWinRMoverWMI -ComputerName \[Computer Name]

&#x20;Description: This will enable WinRM over WMI

&#x20;Notes:

### &#x20; EXAMPLE 2&#x20;

&#x20;PS C:\\>Command: Enable-BluGenieWinRMoverWMI -Help

&#x20;Description: Call Help Information

&#x20;Notes: If Help / WalkThrough is setup as a parameter, this script will be called to setup the Dynamic Help Menu if not the normal

&#x20;Get-Help will be called with the -Full parameter

### &#x20; EXAMPLE 3&#x20;

&#x20;PS C:\\>Command: Enable-BluGenieWinRMoverWMI -WalkThrough

&#x20;Description: Call Help Information \[2]

&#x20;Notes: If Help / WalkThrough is setup as a parameter, this script will be called to setup the Dynamic Help Menu if not the normal

&#x20;Get-Help will be called with the -Full parameter

### &#x20; EXAMPLE 4&#x20;

&#x20;PS C:\\>Command: Enable-BluGenieWinRMoverWMI -OutUnEscapedJSON

&#x20;Description: Enable-BluGenieWinRMoverWMI and Return Output as UnEscaped JSON format

&#x20;Notes: The OutUnEscapedJSON is used to beatify the JSON return and not Escape any Characters. Normal return data is a Hash Table.

### &#x20; EXAMPLE 5

&#x20;PS C:\\>Command: Enable-BluGenieWinRMoverWMI -ReturnObject

&#x20;Description: Enable-BluGenieWinRMoverWMI and Return Output an Object

&#x20;Notes: The ReturnObject is used to return a PowerShell Object. Normal return data is a Hash Table.

### EXAMPLE 6&#x20;

&#x20;PS C:\\>Command: Enable-BluGenieWinRMoverWMI -ReturnObject -FormatView JSON

&#x20;Description: Enable-BluGenieWinRMoverWMI and Return Object formatted in a JSON view

&#x20;Notes: The ReturnObject is used to return a PowerShell Object. Normal return data is a Hash Table.

### &#x20;EXAMPLE 7&#x20;

&#x20;PS C:\\>Command: Enable-BluGenieWinRMoverWMI -ReturnObject -FormatView Custom

&#x20;Description: Enable-BluGenieWinRMoverWMI and Return Object formatted in a PSCustom view

&#x20;Notes: Format-Custom is designed to display views that are not just tables or just lists. You can use the views defined in the

&#x20;\*format.PS1XML files in the PowerShell directory, or you can create your own views in new PS1XML files and use the

&#x20;Update-FormatData cmdlet to add them to PowerShell.

RELATED LINKS
