search
Categories
Sponsors
VirtualMetric Hyper-V Monitoring, Hyper-V Reporting
Archive
Blogroll

Badges
MCSE
Community

Cozumpark Bilisim Portali
Posted in Windows Powershell, Windows Server | No Comment | 4,048 views | 01/10/2013 10:30

You can use this function to convert your password into secure password.

1
2
3
4
5
6
7
8
9
10
function Generate-Password
{
	$Password = Read-Host "Please type your password"
	$Key = (3,4,2,3,56,34,254,222,1,1,2,23,42,54,33,233,1,34,2,7,6,5,35,43)
	$SecureString = ConvertTo-SecureString "$Password" -AsPlainText -Force
	$StandardString = ConvertFrom-SecureString $SecureString -Key $Key
	$StandardString
}
 
Generate-Password

You can use output key in your PowerShell scripts.