Check PowerShell version:
PS C:\Windows\System32> $PSVersionTable.PSVersion
Major Minor Patch PreReleaseLabel BuildLabel
----- ----- ----- --------------- ----------
7 6 1
iDRAC Redfish get:
$cred = Get-Credential
$idrac = "169.254.1.1"
Invoke-RestMethod -Uri "https://$idrac/redfish/v1/" -Method Get -Credential $cred -SkipCertificateCheck
Get the actual mapped network drive path:
Get-PSDrive
Get serial number (service tag) from BIOS (if wmic is not available, possibly from Win11+?)
$computerBIOS = Get-WmiOject Win32_BIOS
Write-Host $computerBIOS.SerialNumber