hawk icon indicating copy to clipboard operation
hawk copied to clipboard

Question: changing tenant name

Open perrywoo4n6 opened this issue 2 months ago • 6 comments

Your Question

Hi. Love your product, but how do I change the tenant name? I set the tenant name the first time I used it, but the program doesn't ask for tenant name each time. Even though I used it with another tenant, the program defaults to old tenant name when saving the output. I haven't been able to find where that information is kept at to change it. Can you please help me, as it causes issues with validity when the logs and output path has some other company's name. See attached image

Image

Thank you.

Perry

perrywoo4n6 avatar Oct 08 '25 22:10 perrywoo4n6

We'll take a look.

T0pCyber avatar Oct 09 '25 13:10 T0pCyber

Have you used a new PowerShell session? The folder path resides in the $Hawk variable. It's a Global variable. That variable should initialize during the start of any Hawk function running for the first time in a new PowerShell session.

If you're in the same PowerShell session. Try this below with the Filepath of your desire.

Initialize-HawkGlobalObject -Force -FilePath 'C:\YourFilePath'

T0pCyber avatar Oct 09 '25 14:10 T0pCyber

I will give it a try. Thank you.

Respectfully,

Perry Woo

On Thu, Oct 9, 2025, 7:22 AM Paul Navarro @.***> wrote:

T0pCyber left a comment (T0pCyber/hawk#295) https://github.com/T0pCyber/hawk/issues/295#issuecomment-3386120994

Have you used a new PowerShell session? The folder path resides in the $Hawk variable. It's a Global variable. That variable should initialize during the start of any Hawk function running for the first time in a new PowerShell session.

If you're in the same PowerShell session. Try this below with the Filepath of your desire.

Initialize-HawkGlobalObject -Force -FilePath 'C:\YourFilePath'

— Reply to this email directly, view it on GitHub https://github.com/T0pCyber/hawk/issues/295#issuecomment-3386120994, or unsubscribe https://github.com/notifications/unsubscribe-auth/BYPRF2C6BNKTMLP7Y6EJ66T3WZVQVAVCNFSM6AAAAACIVOVLEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGOBWGEZDAOJZGQ . You are receiving this because you authored the thread.Message ID: @.***>

perrywoo4n6 avatar Oct 09 '25 18:10 perrywoo4n6

Hi,

I tried it two different ways in a new powershell session, both were not successful. It still adds the old tenant name before I've signed in to any tenant. See attached picture. Any suggestions?

How do I completely remove Hawk, so I can start all over

Respectfully,

Perry Woo

On Thu, Oct 9, 2025, 7:22 AM Paul Navarro @.***> wrote:

T0pCyber left a comment (T0pCyber/hawk#295) https://github.com/T0pCyber/hawk/issues/295#issuecomment-3386120994

Have you used a new PowerShell session? The folder path resides in the $Hawk variable. It's a Global variable. That variable should initialize during the start of any Hawk function running for the first time in a new PowerShell session.

If you're in the same PowerShell session. Try this below with the Filepath of your desire.

Initialize-HawkGlobalObject -Force -FilePath 'C:\YourFilePath'

— Reply to this email directly, view it on GitHub https://github.com/T0pCyber/hawk/issues/295#issuecomment-3386120994, or unsubscribe https://github.com/notifications/unsubscribe-auth/BYPRF2C6BNKTMLP7Y6EJ66T3WZVQVAVCNFSM6AAAAACIVOVLEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGOBWGEZDAOJZGQ . You are receiving this because you authored the thread.Message ID: @.***>

perrywoo4n6 avatar Oct 09 '25 20:10 perrywoo4n6

I've tried uninstalling the module and reinstalling and it still pulls that tenant name from somewhere to create a subdirectory. Where is it pulling that information from to create the subdirectory? Maybe I can edit that file.

Respectfully,

Perry Woo

On Thu, Oct 9, 2025, 7:22 AM Paul Navarro @.***> wrote:

T0pCyber left a comment (T0pCyber/hawk#295) https://github.com/T0pCyber/hawk/issues/295#issuecomment-3386120994

Have you used a new PowerShell session? The folder path resides in the $Hawk variable. It's a Global variable. That variable should initialize during the start of any Hawk function running for the first time in a new PowerShell session.

If you're in the same PowerShell session. Try this below with the Filepath of your desire.

Initialize-HawkGlobalObject -Force -FilePath 'C:\YourFilePath'

— Reply to this email directly, view it on GitHub https://github.com/T0pCyber/hawk/issues/295#issuecomment-3386120994, or unsubscribe https://github.com/notifications/unsubscribe-auth/BYPRF2C6BNKTMLP7Y6EJ66T3WZVQVAVCNFSM6AAAAACIVOVLEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGOBWGEZDAOJZGQ . You are receiving this because you authored the thread.Message ID: @.***>

perrywoo4n6 avatar Oct 09 '25 20:10 perrywoo4n6

Hi Hawk Team,

I figured it out. For whatever reason the connection to MGgraph was sticking to the old tenant, even after signing into another tenant. I used the command "disconnect-mggraph" and that finally fixed the issue.

Yesterday, in a new powershell session, I signed into a new tenant, grab tenant files, then I immediately grabbed a specified user. The tenant files were of the old tenant and the user files were of the new tenant user.

Respectfully,

Perry Woo

On Thu, Oct 9, 2025, 7:22 AM Paul Navarro @.***> wrote:

T0pCyber left a comment (T0pCyber/hawk#295) https://github.com/T0pCyber/hawk/issues/295#issuecomment-3386120994

Have you used a new PowerShell session? The folder path resides in the $Hawk variable. It's a Global variable. That variable should initialize during the start of any Hawk function running for the first time in a new PowerShell session.

If you're in the same PowerShell session. Try this below with the Filepath of your desire.

Initialize-HawkGlobalObject -Force -FilePath 'C:\YourFilePath'

— Reply to this email directly, view it on GitHub https://github.com/T0pCyber/hawk/issues/295#issuecomment-3386120994, or unsubscribe https://github.com/notifications/unsubscribe-auth/BYPRF2C6BNKTMLP7Y6EJ66T3WZVQVAVCNFSM6AAAAACIVOVLEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGOBWGEZDAOJZGQ . You are receiving this because you authored the thread.Message ID: @.***>

perrywoo4n6 avatar Oct 09 '25 20:10 perrywoo4n6