From 8e56d55a0b54eae426b86972c759f8b9e69052f6 Mon Sep 17 00:00:00 2001 From: iRaven Date: Wed, 9 Apr 2025 23:23:55 -0500 Subject: [PATCH] Add Credential Example PS script --- Credentials-Example.ps1 | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Credentials-Example.ps1 diff --git a/Credentials-Example.ps1 b/Credentials-Example.ps1 new file mode 100644 index 0000000..02984a1 --- /dev/null +++ b/Credentials-Example.ps1 @@ -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 = "" \ No newline at end of file