12 lines
484 B
PowerShell
12 lines
484 B
PowerShell
# 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 = "" |