In this paper we start with a generalized black string solution with three free parameters and using a Wick rotation we obtain a time-dependent cylindrical symmetric one. The so generated solution can be considered among the generalized Einstein-Rosen type that can be interpreted as gravitational waves in 5D. For some particular values of the parameters a cosmic string is found. Moreover, we study the C-energy and the deficit angle associated to the waves as well as their polarizations.