View the step-by-step solution to:


Need a Microsoft PowerShell program that will accomplish the following:

1)     Get the

current date and time in the following format and save it as a variable:

a.      Day-month-year-hour:minute

2)     Make a directory (in your home account) that contains the year

3)     Make a directory in the new directory created in 2) for the month (/users/dwitten/2017/11)

4)     Make a directory in the new directory created in 3) for the day (/users/dwitten/2017/11/07)

5)     Make an empty file in the directory created in 4) as yourName-savedDate.txt (witten-07-11-2017-18:05.txt

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Ask Expert Tutors You can ask 0 bonus questions You can ask 0 questions (0 expire soon) You can ask 0 questions (will expire )
Answers in as fast as 15 minutes