Adding comment headers to wip1

This commit is contained in:
silversword411 2021-05-11 22:53:37 -04:00
parent 700c23d537
commit 33dfbcbe32
No known key found for this signature in database
GPG Key ID: 6F4BD176F56B50CA
1 changed files with 18 additions and 1 deletions

View File

@ -1,5 +1,22 @@
<#
.SYNOPSIS
I do this
.DESCRIPTION
I really do a lot of this
.OUTPUTS
Results are printed to the console. Future releases will support outputting to a log file.
.NOTES
Change Log
V1.0 Initial release
Reference Links: www.google.com
#>
$domain = "myDomain" $domain = "myDomain"
$password = "myPassword!" | ConvertTo-SecureString -asPlainText -Force $password = "myPassword!" | ConvertTo-SecureString -asPlainText -Force
$username = "$domain\myUserAccount" $username = "$domain\myUserAccount"
$credential = New-Object System.Management.Automation.PSCredential($username,$password) $credential = New-Object System.Management.Automation.PSCredential($username, $password)
Add-Computer -DomainName $domain -OUPath "OU=testOU,DC=domain,DC=Domain,DC=com" -Credential $credential -Restart Add-Computer -DomainName $domain -OUPath "OU=testOU,DC=domain,DC=Domain,DC=com" -Credential $credential -Restart