Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2562

PS script to rename folder on multiple servers

$
0
0

Hi.

Sometimes I need to rename some user folders on our CTX servers.

For this purpose im thinking of making a PS script to do the job for me.

This is what I want the script to do:

rename \\srvpctx10\c$\Documents and Settings\*username* to \\srvpctx10\c$\Documents and Settings\*username241012* (current date)

rename \\srvpctx11\c$\Documents and Settings\*username* to \\srvpctx11\c$\Documents and Settings\*username241012* (current date)

rename \\srvpctx12\c$\Documents and Settings\*username* to \\srvpctx12\c$\Documents and Settings\*username241012* (current date)

rename \\srvpctx13\c$\Documents and Settings\*username* to \\srvpctx13\c$\Documents and Settings\*username241012* (current date)

and so on....

Best regards


Viewing all articles
Browse latest Browse all 2562

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>