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/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;
}
2014-06-17 22:44:06 +02:00
$result = New-Object psobject;
Set-Attr $result "ping" $data;
echo $result | ConvertTo-Json;