Collect from remote computers with PowerShell, WinRM

$computers = Get-Content .\serverlist.txt

Invoke-Command -computername $computers -FilePath .\getiscsi.ps1 | out-file C:\PSTools\iscsicollectrun.txt

Invoke-Command -ComputerName $computers -ScriptBlock {Test-WSMan} | out-file C:\PSTools\serverswithwinrmon.txt

Turn on/off WinRM on computers remotely psexec @c:\pstools\serverlist.txt -c -d powershell.exe “enable-psremoting -force”


Configure tftp on Linux

yum install tftp tftp-server xinetd

viĀ /etc/xinetd.d/tftp

Alter file to make look like

# default: off
# description: The tftp server serves files using the trivial file transfer
#       protocol.  The tftp protocol is often used to boot diskless
#       workstations, download configuration files to network-aware printers,
#       and to start the installation process for some operating systems.
service tftp
        socket_type             = dgram
        protocol                = udp
        wait                    = yes
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             = -c -s /var/lib/tftpboot
        disable                 = no
        per_source              = 11
        cps                     = 100 2
        flags                   = IPv4

chmod 777 /var/lib/tftpboot

iptables -I INPUT -p udp --dport 69 -j ACCEPT

/etc/init.d/xinetd start

chkconfig xinetd on

copy tftp://tftp_server_address/somefile.stk active