Can someone help me with this script please ?
we are getting new thin clients(win 10 Pro) and are building a script that will do the following. Can someone please assist in making a powershell or any script that can achieve the below tasks ?
1) Change the name of the client
2) join the active directory domain
3) Push the VMware horizon client onto the desktop of the thin client
Answers (1)
For the name change use this: Article: Get/Set ComputerName (itninja.com)
For the horizon silent install, use this: Install Horizon Client From the Command Line (vmware.com)
For Domain join use: Scripting : Looking for k2000 "Join Domain" powershell script............ (itninja.com) OR simply (with your values):
$domain= "your.domain.com"
$password= "admin_user_pswd" | ConvertTo-SecureString -asPlainText -Force
$user= "$domain\user.name"
$cred= New-Object System.Management.Automation.PSCredential($user,$password)
$oupath = "CN=XXXX,DC=XXXX,DC=XXXXX,DC=XXXX"
Add-Computer -domainname $domain -oupath $oupath -Credential $cred -ErrorAction silentlycontinue
Add-Computer -DomainName $domain -Credential $cred
Hope that helps get you going?