Add Credential Example PS script
This commit is contained in:
parent
f201c3a8aa
commit
8e56d55a0b
12
Credentials-Example.ps1
Normal file
12
Credentials-Example.ps1
Normal 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 = ""
|
Loading…
x
Reference in New Issue
Block a user