top of page

PowerShell - Create cred file for Encryption scripts

  • Writer: Jon Boyette
    Jon Boyette
  • Apr 15, 2022
  • 1 min read

Saved personally as a CreateCREDfile.ps1, it does just that, prompts for creds to encrypt the password in a .cred to use with scripts

$Hash = @{

'Admin' = Get-Credential -Message 'Please enter administrative credentials'


}

$Hash | Export-Clixml -Path "${env:\userprofile}\Encryptedfilenameofchoice.cred"


 
 
 

Recent Posts

See All
PowerShell - List All Domain SPNs

Save as same List_ALL_SPNs.ps1 or similar, this LDap calls the Domain for all Service Principal names and accounts related #Build LDAP...

 
 
 
PowerShell - Start-Monitoring

This is a great script used to Monitor and Email if a server is up or down, once ran, and smtp and from address is set, then run:...

 
 
 

Comments


Post: Blog2 Post
  • Facebook
  • Twitter
  • LinkedIn

©2022 by Boyette Technical Services. Proudly created with Wix.com

bottom of page