r/PowerShell • • Nov 24 '20

When hackers gain powershell access to a machine, they will check the powershell history. Here's a practical example:

https://youtu.be/CndMDvjX8dg?t=1631
232 Upvotes

43 comments sorted by

View all comments

Show parent comments

2

u/MyOtherSide1984 Nov 24 '20

I'm using Selenium as part of powershell, but I don't know a way to store the password for later user besides just using the secure string. I exported it once and haven't had to go back ever. This is part of a scheduled task script that logs into my Cox account and reports my data usage.

1

u/PMental Nov 24 '20

Ah yes, I misunderstood you, that should work. I tend to use Get-Credentialand exporting the resulting object with Export-CliXml but the end result is similar (apart from storing a username as well).