User Tools

Site Tools


sysadmin:asbuilt

Differences

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

Link to this comparison view

Next revision
Previous revision
sysadmin:asbuilt [ 5/01/2022 07:48] – created lrosasysadmin:asbuilt [25/02/2022 13:19] (current) lrosa
Line 8: Line 8:
  
 <code powershell>$PSVersionTable</code> <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 Prerequisiti per i moduli
Line 13: Line 24:
 <code powershell>Install-Module -Name VMware.PowerCLI <code powershell>Install-Module -Name VMware.PowerCLI
 Install-Module -Name PureStoragePowerShellSDK</code> 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>
 +
 +
 +
  
    
  
sysadmin/asbuilt.1641368918.txt.gz · Last modified: 5/01/2022 07:48 by lrosa