1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/library/windows/win_ping.ps1

16 lines
240 B
PowerShell
Raw Normal View History

#!powershell
# WANT_JSON
# POWERSHELL_COMMON
$params = Parse-Args $args;
$data = 'pong';
If ($params.data.GetType)
{
$data = $params.data;
}
$result = New-Object psobject;
Set-Attr $result "ping" $data;
echo $result | ConvertTo-Json;