Get-BitsTransfer -AllUsers Remotly?
i attempting see if can retrieve bits jobs running on remote machine. have tried code , works great if using local machine nothing returned remote machine. suggestions how retrieve information?
$jobwork = {
#get-all bits downloads
$jobout = get-bitstransfer -allusers | ? { $_.jobstate -ne 'transferred'}
$jobout
}
$jobresults = start-job -scriptblock $jobwork -name $job_name -argumentlist $compname
in script specifying go computer..
you passing compname used, think code confused , not doing anything
you might need invoke-command -computername { job }
Windows Server > Windows PowerShell
Comments
Post a Comment