Would anyone have a worklet that can rename a folder in a users profile, i.e looking to rename C:\Users\USERSPROFILE\AppData\Roaming\Microsoft\Signatures so the folder Signatures is renamed to SignaturesOLD
Page 1 / 1
Hi p.blakeley,
I had success with this Worklet, no eval code
Remediation Code:
gci -name c:\users | foreach ($_) {
Rename-Item -Path "C:\users\$_\AppData\Roaming\Microsoft\Signatures" -NewName "SignaturesOLD"
}



Let me know if you have any issues.
Regards,
Hi Mark, i have given that a try but it is erroring saying Evaluation Code is required, any ideas?

We can skip the eval code by typing ‘exit 1’ or ‘exit 0’.
It is only used if you want to routinely detect and modify an endpoint, in this case its really a one-time use case, so we statically skip the eval code.
Regards,
Mark
Reply
Login to the community
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.