hi all, please help me with this... in WINDOWS POWERSHELL
I need to copy files to multiple computers from my computer with following specifications..
1)I need to provide username
2)I need to provide password also
3)while running it should not prompt again for password /*important*/
I USED THE FOLLOWING CODE BUT IT IS PROMPTING FOR PASSWORD AGAIN
###############################################################################################
read-host -assecurestring | convertfrom-securestring | out-file e:\SSS\pass.txt$password=get-content e:\SSS\pass.txt | convertto-securestring
$credential=new-object -typename System.Management.Automation.PSCredential -argumentlist KS\KS012\Administrator, $password