---
title: "Powerview"
date: 2024-07-02
draft: false
---

### creating a credential object with powerview
```bash
$pass = ConvertTo-SecureString 'JDg0dd1s@d0p3cr3@t0r' -AsPlainText -Force
$cred = New-Object System.Management.Automation.PSCredential('streamio.htb\JDgodd', $pass)
```
-> Useful when you're logged in as `U1` and want to pivot to `U2` ; but do not have remote  access privs. 

