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 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 22: Line 33:
 <code powershell>Find-Module -Name AsBuiltReport.* -Repository PSGallery</code> <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.1641373942.txt.gz · Last modified: 5/01/2022 09:12 by lrosa