From 33dfbcbe328eea72f401980691d0ecad701844c1 Mon Sep 17 00:00:00 2001 From: silversword411 Date: Tue, 11 May 2021 22:53:37 -0400 Subject: [PATCH] Adding comment headers to wip1 --- scripts_wip/Win_AD_Join_Computer.ps1 | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/scripts_wip/Win_AD_Join_Computer.ps1 b/scripts_wip/Win_AD_Join_Computer.ps1 index c4030d4e..92442176 100644 --- a/scripts_wip/Win_AD_Join_Computer.ps1 +++ b/scripts_wip/Win_AD_Join_Computer.ps1 @@ -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" $password = "myPassword!" | ConvertTo-SecureString -asPlainText -Force $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 \ No newline at end of file