I want to rename a file on the C:/ of a remote PC to the hostname of that PC from my local PC.
Right now I have:
cd c:usersadmindesktopPSTools psexec @laptoptest1.txt -u domainadmin cmd.exe /c ren “C:batteryreport.html” “%computername%.html”
But it renames it to my local PC name instead of the remote PC name.
submitted by /u/Jrunkles1221
[link] [comments]
The post Rename file on remote PC to name of Remote PC from Local PC appeared first on How to Code .NET.