PowerShell - Upload Test and reduce the speed -


it´s easy find , or create script test upload web based environment (for example sharepoint).

but how can specify/reduce upload speed? want simulate big , slow uploads , wan´t check if upload reached timeout infrastructure component. wan´t copy script different locations in infrastructure check component had timeout problem. (changing nework speed in infrastructure not option) reason test because few users can use slow internet connections (satellite, isdn, modem etc.) had upload big files.

how can create powershell script upload file reduced speed?

thank in advance!

you should after netadapter @ msdn: https://technet.microsoft.com/en-us/library/jj130867(v=wps.630).aspx

for example

[cmdletbinding()]     param(         [int]$throttlelimit = 5         )  foreach -parallel -throttlelimit $throttlelimit ($n in 1..5){    "working on $n"    "{0:hh}:{0:mm}:{0:ss}" -f (get-date)    }  } 

i hope find right solution answer ;-)


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -