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.

0 Comments   [ + ] Show comments

Answers (1)

Answer Summary:
Posted by: JordanNolan 1 month ago
10th Degree Black Belt

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.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ