WordPress.com
.DESCRIPTIONYou can add multiplmachines to domain using this script..PARAMETER ComputerNameThe name of the computer to add to Domain..PARAMETER DomainNameThe name of domain to be joined..EXAMPLE.\Add-Domain -DomainName -ComputerName localhost #>Function Add-Domain { [CmdletBinding()] Param( [Parameter(Mandatory=$true,HelpMessage=’Provide a domain name.')] $DomainName, [Parameter(Mandatory=$true,HelpMessage=’Press Enter once all computernames are entered.')] [String[]]$ComputerName, $UserName= (Get-Credential -message "Enter Domain administrator username and password"), $LocalCred ) [System.Windows.Forms.MessageBox]:: Show("Joining Computer to Domain, Click OK to continue") Foreach($Computer in $ComputerName) { $LocalCred = Get-Credential -Message "Enter $Computer local Username and password" Invoke-Command -computerName $Computer -credential $LocalCred -scriptBlock {Param ($x,$y)Add-Computer -DomainName $x -Credential $y $ErrorActionPreference = 'Continue'} -argumentlist $DomainName,$UserName Write-Verbose "Adding $Computer to $DomainName" }} ................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related searches
- wordpress passing data between pages
- wordpress business templates
- wordpress rss feed not working
- wordpress jquery is not defined
- create wordpress blog
- wordpress roles editor
- wordpress full rss feed
- wordpress rss feed settings
- wordpress rss feed plugin
- wordpress display rss feed
- wordpress rss feed link
- wordpress rss feed to post