User Tools

Site Tools


sysadmin:asbuilt

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
sysadmin:asbuilt [ 5/01/2022 09:12] lrosasysadmin:asbuilt [25/02/2022 13:19] (current) lrosa
Line 1: Line 1:
 +====== AsBuilt ======
 +
 +[[https://www.asbuiltreport.com/|Home page]].
 +
 +
 +===== Installazione =====
 +Verificare che la versione sia almeno 5.1
 +
 +<code powershell>$PSVersionTable</code>
 +
 +Se ci sono problemi ad installare
 +
 +<code powershell>[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12</code>
 +
 +oppure se proprio non va
 +
 +<code powershell>[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
 +Register-PSRepository -Default -Verbose
 +Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted</code>
 +
 +
 +Prerequisiti per i moduli
 +
 +<code powershell>Install-Module -Name VMware.PowerCLI
 +Install-Module -Name PureStoragePowerShellSDK</code>
 +
 +Core:
 +
 +<code powershell>Install-Module -Name AsBuiltReport</code>
 +
 +Per cercare i moduli disponibili:
 +
 +<code powershell>Find-Module -Name AsBuiltReport.* -Repository PSGallery</code>
 +
 +Per creare una nuova configurazione:
 +
 +<code powershell>New-AsBuiltConfig</code>
 +
 +<code powershell>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</code>
 +
 +
 +
 +
 +