User Tools

Site Tools


sysadmin:asbuilt

AsBuilt

Installazione

Verificare che la versione sia almeno 5.1

$PSVersionTable

Se ci sono problemi ad installare

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

oppure se proprio non va

[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
Register-PSRepository -Default -Verbose
Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted

Prerequisiti per i moduli

Install-Module -Name VMware.PowerCLI
Install-Module -Name PureStoragePowerShellSDK

Core:

Install-Module -Name AsBuiltReport

Per cercare i moduli disponibili:

Find-Module -Name AsBuiltReport.* -Repository PSGallery

Per creare una nuova configurazione:

New-AsBuiltConfig
Set-PowerCLIConfiguration -Scope AllUsers -ParticipateInCEIP $false  -Confirm:$false
Set-PowerCLIConfiguration -Scope AllUsers -InvalidCertificateAction Ignore -Confirm:$false
New-AsBuiltReport -Report VMware.vSphere -Target vcenter.domain.local -Username administrator@vsphere.local -Password VMware1! -Format Word,Text -OutputFolderPath 'C:\Reports' -EnableHealthCheck
sysadmin/asbuilt.txt · Last modified: 25/02/2022 13:19 by lrosa