ebsea, I understand where you're coming from, but I agree with jrv completely.
As you've presented the problem, it will be very hard for you to find help here, since you're asking for free help to do something that will probably require quite a bit of research and testing on our side for something that normally most of us here would
charge for (as consultants).
Instead, may I suggest that you concentrate on small steps of what you're trying to achieve, do a lot of testing on your side and ask very concrete questions when you come across a problem?
I.e.,
Is it possible to script backup to \\nas-2015\monthly\01 for jan, \\nas-2015\monthly\02 for feb,
etc?
That's a concrete question, the answer is yes.
If you want to programmatically modify the folder something goes to depending on the month of the year (or any other time variable), in PowerShell you can use the Get-Date CmdLet.
To look at all of the properties and methods that the object it returns has, just do:
Get-Date | Get-Member
This will show you that there is a Month property of type Integer (among other things), so doing:
(Get-Date).Month
Will return the number of the current month. So 1, 2, ... 12. However, this will not have a leading zero for months with a single digit, which is useless for what you're after.
While we could do silly things like string manipulation (append a zero to the left side of the string and then return only the two characters from the right, as was done in VBScript), this is PowerShell and there is no need for that nonsense anymore.
Instead, looking at the documentation (https://technet.microsoft.com/en-us/library/hh849887.aspx) shows us that Get-Date has a -Format parameter and delving a bit deeper onto how to
use it (https://technet.microsoft.com/en-us/library/ee692801.aspx) tells us it can do exactly what we're after. In the case of returning the month with a leading 0 for single digit months
we simply do:
Get-Date -Format MM
And that's it, job done.
Hope this helped. If you have any more concrete questions feel free to ask.
Fausto