Back to articles
February 4, 2025
auth, remote, remote login, SecureString, windows

Windows Create Secure Creds

In a secure Windows environment, create a SecureString to authenticate between Windows computers

$adminName = 'admin-username'

$pw = 'St00p1dP@ssw0rd'

$pwSecure = $pw | ConvertTo-SecureString -AsPlainText -Force

$cred = New-Object pscredential ($adminName, $pwSecure)
Loading comments...