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