> Source: [sk165316](https://support.checkpoint.com/results/sk/sk165316)

# sk165316 - mgmt_cli  does not work with PowerShell

| Property | Value |
|----------|-------|
| Solution ID | sk165316 |
| Date Created | 2020-02-19 |
| Last Modified | 2020-02-19 |
| Technical Level | General |
| Products | Security Management Server |
| Versions | R82.10, R82, R81.20 |
| OS | Windows |

## Symptoms

- mgmt_cli does not work with PowerShell. Logging in with API results in the following: `Error "Failed to parse login output file [file name]".`

## Cause

API does not work with UTF-8 encoding, which is enabled by default.

<br />

## Solution

You can change the encoding of PowerShell by setting the following variable:  
`$PSDefaultParameterValues = @{'Out-File:Encoding' = 'ascii'}`

<br />

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
