jumpserver/utils/2018_07_15_set_win_protocol...

10 lines
163 B
Bash

#!/bin/bash
#
python ../apps/manage.py shell << EOF
from assets.models import Asset
Asset.objects.filter(platform__startswith='Win').update(protocol='rdp')
EOF