So far, we have covered changes to the settings in Windows PowerShell Version 3.0 in a general way. Now, let's try to capture how Version 3.0 is useful to the system administrator regarding the ease of working with the console. This recipe consists of multiple subrecipes.
Add-Computer CMDLET is used for adding a local computer to a domain or workgroup.
Try executing the following code sequence:
PSDomain\PSAdmincredential and restarts the machine once added. It also uses the
Forceparameter, so it doesn't ask for confirmation.
PS C:\>Add-Computer -ComputerName Member01 -LocalCredential Member01\Admin01 ...