VMware Aria Automation Orchestrator 8.16.2
2024-06-20 16:31:19.570 +02:00INFO [Start downloading dependencies]
2024-06-20 16:31:19.571 +02:00INFO
2024-06-20 16:31:19.572 +02:00INFO HTTP proxy is configured
<# | |
Tests for https://hcritter.devdojo.com/powershell-performance-test-file-reading | |
#> | |
[CmdletBinding()] | |
param( | |
[Parameter(Mandatory=$false)] | |
[Switch]$Measure | |
) | |
# Create a file with 50'000 lines |
function Test-IsCurrentUserAdmin{ | |
if($IsLinux){ | |
if((id -u) -eq 0){ | |
return $true | |
}else{ | |
return $false | |
} | |
} | |
if($IsWindows){ | |
$current = New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent()) |
<# | |
.SYNOPSIS | |
New-vCenterDiagram.ps1 | |
.DESCRIPTION | |
New-vCenterDiagram - Create a Mermaid Class Diagram. | |
.PARAMETER InputObject | |
Specify a valid InputObject. | |
# Disable Citrix Workspace AutoStart | |
if((id -u) -eq 0){ | |
@( | |
'/Library/LaunchAgents' | |
'/Library/LaunchDaemons' | |
) | ForEach-Object { | |
$citrixitem = Get-ChildItem $_ | Where-Object Name -match citrix | |
Write-Host ($citrixitem | Select-Object Name, FullName | Out-String) | |
$citrixitem | ForEach-Object { | |
Rename-Item -Path $($_.FullName) -NewName $($_.FullName -replace '.plist', '.bak') -PassThru |
<# | |
.SYNOPSIS | |
Check KMS Settings | |
.DESCRIPTION | |
1. Get License Information from Windows Software Licensing Management Tool (slmgr.vbs) | |
2. Get KMS Information from DNS (nslookup -type=srv _vlmcs._tcp) | |
3. Get License Information from local Registry Software Protection Platform | |
4. Check connectivity to KMS Server and the port from the local Registry | |
5. Check connectivity to KMS Server and the port from the slmgr.vbs |
function Write-IXLoginformation { | |
<# | |
.SYNOPSIS | |
Write Loginformation | |
.DESCRIPTION | |
Write Loginformation to a logfile and, or screen. The default logfile-size is 4mb, to change this use the switch MaxLogFileSizeMB | |
.PARAMETER InputObject | |
Specify the input-object. |