I want to copy and replace a existing dll file through powershell.
I want to copy and replace a existing dll file through powershell script.
I have various command sets.I coudnn;t suceed.Please help me.
Any help is appreciate.
You probably just have a syntax issue. Can you post what you are doing? Or better yet, if you just want to copy a DLL file, keep it simple and Just create a simple batch file.
- Start and Online Kscript
- Set it for all Windows OS
- Add the DLL as a Dependency
- Create a task for Run a Batch File
Script Name: Copythis.bat
Batch File: Copy "MyFile.dll" "C:\Windows\System32\" /Y
Make sure you have the /Y to overwrite. You also may want to juse the Verify option to check if the file you are copying already exists or not.