Powershell-copy dll files in GAC

Source: Internet
Author: User

Scenario: We perform SharePoint development in the customer's VM environment. Due to permission restrictions (the IE settings cannot be modified ), in many cases, apart from executing applications (IE, VS2010, cmd windows, and PowerShell command windows integrated with SharePoint) as Administrator, we may need to copy GAC dll files, what should we do?

The following example describes how to copy the Common. dll of the HR system from the GAC to the D disk.

Ps c: \> cd. \ Windows

Ps c: \ Windows> cd. \ assembly

Ps c: \ Windows \ assembly> cd. \ GAC_MSIL

Ps c: \ Windows \ assembly \ GAC_MSIL> cd. \ LJ. SharePoint. HR. Common

Note: You can view the dll file in sequence by pressing the next or last key on the keyboard.

Ps c: \ Windows \ assembly \ GAC_MSIL \ LJ. SharePoint. HR. Common> cd. \ 1.0.0.0 _ 652eb99

08dcf33c9

Ps c: \ Windows \ assembly \ GAC_MSIL \ LJ. SharePoint. HR. Common \ 1.0.0.0 _ 652eb9908dcf3

3c9> dir

Directory: C: \ Windows \ assembly \ GAC_MSIL \ LJ. SharePoint. HR. Common \ 1.0.0.0 __

652eb9908dcf33c9

Mode LastWriteTime Length Name

---------------------------

-A --- 25/08/2011 140800 LJ. SharePoint. HR. Common. dll

Ps c: \ Windows \ assembly \ GAC_MSIL \ LJ. SharePoint. HR. Common \ 1.0.0.0 _ 652eb9908dcf3

3c9> copy *. dll d :\

Author: MingleLui
Source: http://mingle.cnblogs.com/

Scenario: We perform SharePoint development in the customer's VM environment. Due to permission restrictions (the IE settings cannot be modified ), in many cases, apart from executing applications (IE, VS2010, cmd windows, and PowerShell command windows integrated with SharePoint) as Administrator, we may need to copy GAC dll files, what should we do?

The following example describes how to copy the Common. dll of the HR system from the GAC to the D disk.

Ps c: \> cd. \ Windows

Ps c: \ Windows> cd. \ assembly

Ps c: \ Windows \ assembly> cd. \ GAC_MSIL

Ps c: \ Windows \ assembly \ GAC_MSIL> cd. \ LJ. SharePoint. HR. Common

Note: You can view the dll file in sequence by pressing the next or last key on the keyboard.

Ps c: \ Windows \ assembly \ GAC_MSIL \ LJ. SharePoint. HR. Common> cd. \ 1.0.0.0 _ 652eb99

08dcf33c9

Ps c: \ Windows \ assembly \ GAC_MSIL \ LJ. SharePoint. HR. Common \ 1.0.0.0 _ 652eb9908dcf3

3c9> dir

Directory: C: \ Windows \ assembly \ GAC_MSIL \ LJ. SharePoint. HR. Common \ 1.0.0.0 __

652eb9908dcf33c9

Mode LastWriteTime Length Name

---------------------------

-A --- 25/08/2011 140800 LJ. SharePoint. HR. Common. dll

Ps c: \ Windows \ assembly \ GAC_MSIL \ LJ. SharePoint. HR. Common \ 1.0.0.0 _ 652eb9908dcf3

3c9> copy *. dll d :\

Author: MingleLui
Source: http://mingle.cnblogs.com/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.