Advertisement
JakeBentz

Create Password File

Apr 24th, 2017
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # /=======================================================================
  2. # /=
  3. # /=  Create_Password_File.ps1
  4. # /=
  5. # /=  AUTHOR: Jake Bentz
  6. # /=  DATE: 10/11/2016
  7. # /=
  8. # /=  REQUIREMENTS: None
  9. # /=
  10. # /=  DESCRIPTION: This script creates an encrypted password file
  11. # /=
  12. # /=  REVISION HISTORY
  13. # /=   VER  DATE        AUTHOR/EDITOR   COMMENT
  14. # /=   1.0  10/11/2016  Jake Bentz      Created script
  15. # /=
  16. # /=======================================================================#
  17.  
  18. #Set variable for password file
  19. $passwordFile = .\OSPwd.txt
  20.  
  21. # First time create password file
  22. Read-Host "Enter password for the local administrator account on the templates:" -AsSecureString | convertfrom-securestring | out-file $passwordFile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement