Overblog
Suivre ce blog Administration + Créer mon blog

Deploy Windows Server 2008 or higher in vCenter script

Publié le par damcuvelier

Set a CSV file with informations: Domain vCenterInstance Cluster VMTemplate CustomSpec Location DataStore DiskStorageFormat NetworkName Memory CPU DiskCapacity SubnetLength GW IP_DNS Hostname IP JoinDomainYN Deploy Windows Server 2008 or higher in vCenter...

Lire la suite

Copy User and OU to new AD

Publié le par damcuvelier

From a server in old AD: ExpUsrsInOu.ps1: #Export User in OU: $CanoName = Get-ADOrganizationalUnit -Filter * -Properties CanonicalName | Select-Object -Property CanonicalName foreach($OUpath in $CanoName.CanonicalName) { $ExportPath = 'C:\users_in_ou.csv'...

Lire la suite

Create AD Powershell Script

Publié le par damcuvelier

A simple script to create a AD in powershell: # .\CreateDom.ps1 -DomainName MyDomain -AdminPassword P@ssw0rd! Param($DomainName,$AdminPassword) if(!$DomainName){Write-Output "Value for Domain Name (DomainName) is mandatory"; Exit} if(!$AdminPassword){Write-Output...

Lire la suite