Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion specs/agents/metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var hostname;
if os == windows
// https://stackoverflow.com/questions/12268885/powershell-get-fqdn-hostname
// https://learn.microsoft.com/en-us/dotnet/api/system.net.dns.gethostentry
hostname = exec "powershell.exe [System.Net.Dns]::GetHostEntry($env:computerName).HostName" // or any equivalent *
hostname = exec "powershell.exe -NoLogo -NonInteractive -NoProfile -ExecutionPolicy Bypass -Command [System.Net.Dns]::GetHostEntry($env:computerName).HostName" // or any equivalent *
if (hostname == null || hostname.length == 0)
hostname = exec "cmd.exe /c hostname" // or any equivalent *
if (hostname == null || hostname.length == 0)
Expand Down