PS cmdlet to copy, rename with computer’s name, and place into a different folder. Please help!

Hey guys, I have what I believe is a unique “need” with powershell. I need to be able to create a PS cmdlet that copies a file from one folder, renames it to the name of the computer, and places the renamed copy into another folder. In what order, doesn’t matter. It can copy it and place it into another folder then rename it but either way the file has to be copied and renamed to reflect the unique name of the PC. This command would be executed everyday at 1PM (machine’s time).

I want to believe this is possible but the hardest part, I mean literally I cannot find a single thing online about it, is renaming a file with the computer’s name.

submitted by /u/URG_Admin
[link] [comments]

Leave a Reply