Add Credential Example PS script

This commit is contained in:
iRaven 2025-04-09 23:23:55 -05:00
parent f201c3a8aa
commit 8e56d55a0b

12
Credentials-Example.ps1 Normal file
View File

@ -0,0 +1,12 @@
# Credential File - Do not distribute unless otherwise told by Technolog Networks IT.
# For account: EXAMPLE SCRIPT
$Username = "technolog\user"
$Password = ConvertTo-SecureString "password" -AsPlainText -Force
$DomainCredential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $username, $password
Write-Host "$Username credentials were imported."
# Clear user/pass after use for security.
# Leave these blank!
$Username = ""
$Password = ""