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

# sk183915 - How to get the IP Address and currently Logged-In User using Unsigned PowerShell in a Push Operation

| Property | Value |
|----------|-------|
| Solution ID | sk183915 |
| Date Created | 2025-09-10 |
| Last Modified | 2025-09-16 |
| Technical Level | General |
| Products | Endpoint Security |
| Versions | E89.X |
| OS | Windows |

## Solution

In some circumstances, administrators need to verify the IP address and the currently logged-in user on Endpoint client machines. Admins can obtain this information by remote execution of PowerShell scripts via Push Operations.
**Note** - This article complements [sk173414](https://support.checkpoint.com/results/sk/sk173414), which describes how to run PowerShell scripts on Harmony Endpoint client machines.  

**Procedure**:

1. Access the Harmony Endpoint Administrator Portal.
2. Go to the **Asset Management** tab and right-click the computer name.   
   **Note** - To extend this to multiple computers, use the **Push Operations** tab.
3. Click **Push Operations** \> **Agent Settings** \> **Remote Command** .   
   ![](https://sc1.checkpoint.com/sc/SolutionsStatics/NEW_SK_NOID1757095403536/1202509051251191.png)
4. Enter the required details.   
   ![](https://sc1.checkpoint.com/sc/SolutionsStatics/NEW_SK_NOID1757095403536/2202509051252362.png)
5. Use the code below to create a PowerShell script and save it as a `.ps1` file. For example, `pushtest1.ps1`  
   The script writes the IP address and username to a file on the Desktop of the currently logged-in user.  

   |-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
   | -----SCRIPT--- `Set-Content "$env:USERPROFILE\Desktop\Pushoperations.txt" 'Write-Output "Hello, PUSH OPERATIONS WORKING OK"'` `try {` ` Write-Output "Hello, World!"` ` # Show network configuration` ` ipconfig` ` # Show current user` ` whoami` ` # Success` ` Write-Output "OK"` ` exit 0` `}` `catch {` ` Write-Output "ERROR"` ` exit 1` `}` ---END OF SCRIPT --- |

6. Click **Upload** and add the script.  
   ![](https://sc1.checkpoint.com/sc/SolutionsStatics/NEW_SK_NOID1757095403536/3202509051253463.png)
7. Click **Create**.
8. Go to the **Push Operations** tab and hover over the operation's output in the web management.  
   The system displays the output including the IP address and the user logged into the system.  
   ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk183915/image (5)202509171037322.png)

---

# 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
