maurice-daly / DriverAutomationTool

Home of the Driver Automation Tool
https://www.msendpointmgr.com
BSD 2-Clause "Simplified" License
395 stars 120 forks source link

Import-Module BitsTransfer #82

Closed MeneshHarji closed 3 years ago

MeneshHarji commented 4 years ago

Just uploaded to the last versions and now getting this error when importing the driver into SCCM

Error: The 'Get-BitsTransfer' command was found in the module 'BitsTransfer', but the module could not be loaded. For more information, run 'Import-Module BitsTransfer'.

Import-Module : Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information. At line:162 char:1

It seems you need to

configuration startup useLegacyV2RuntimeActivationPolicy="true" supportedRuntime version="v4.0"/ startup configuration

dsolodow commented 4 years ago

Looks like the same as #58 . Guessing it has to do with the version of Windows you're running the tool on?

MeneshHarji commented 4 years ago

Its windows 2012 as its hosted on the primary sccm server

Get Outlook for Androidhttps://aka.ms/ghei36


From: Damien Solodow notifications@github.com Sent: Thursday, July 23, 2020 9:20:06 PM To: maurice-daly/DriverAutomationTool DriverAutomationTool@noreply.github.com Cc: Harji, Menesh MHarji@bgcpartners.com; Author author@noreply.github.com Subject: Re: [maurice-daly/DriverAutomationTool] Import-Module BitsTransfer (#82)

This email originated from outside the Firm

Looks like the same as #58https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_maurice-2Ddaly_DriverAutomationTool_issues_58&d=DwMCaQ&c=3v6EBbtpnn9A7jIZYjOw6KN7Pe17WoimzcinOq2Xztg&r=QmcEQofc-jqHnq0RAjEpXZue9DywI2QLIBJ8MwV3OHc&m=6Flm7CZwY8XJ3cl2nS_MELxPpPF4QiUpqvL9pHMsPng&s=5aslGLhmdSCq0kZsnjQvwlH6AJZEi4Y5ts7Rcw-Eem0&e= . Guessing it has to do with the version of Windows you're running the tool on?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_maurice-2Ddaly_DriverAutomationTool_issues_82-23issuecomment-2D663212332&d=DwMCaQ&c=3v6EBbtpnn9A7jIZYjOw6KN7Pe17WoimzcinOq2Xztg&r=QmcEQofc-jqHnq0RAjEpXZue9DywI2QLIBJ8MwV3OHc&m=6Flm7CZwY8XJ3cl2nS_MELxPpPF4QiUpqvL9pHMsPng&s=OY93465iuHxHKlIh-u1_-ANqsCVOQwtrfybNJRkmHs0&e=, or unsubscribehttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AQMDHFKGIIXR5UDPG45ARX3R5CLPNANCNFSM4PFWEGHA&d=DwMCaQ&c=3v6EBbtpnn9A7jIZYjOw6KN7Pe17WoimzcinOq2Xztg&r=QmcEQofc-jqHnq0RAjEpXZue9DywI2QLIBJ8MwV3OHc&m=6Flm7CZwY8XJ3cl2nS_MELxPpPF4QiUpqvL9pHMsPng&s=QvWDe-UIu1DSylKm4gYCG6Jx8mfMB2zL0Lkmk_fGDSg&e=.


CONFIDENTIAL An electronic communication(s)/message(s), including its contents and attachments, if any, may contain privileged or confidential information, or may be otherwise protected by work product immunity or other legal rules. No confidentiality or privilege is waived by any erroneously transmitted communication. Accessing, copying or re-using of information by non-intended or non-authorized recipients is prohibited. If you are not the named recipient please notify the sender and immediately delete this communication. You may not disseminate, distribute, or forward this message or disclose its contents to anybody else. Copyright and any other intellectual property rights in its contents are the sole property of BGC Partners Inc. and its affiliates (collectively, “BGC,” “we,” or “us”).

MAY CONTAIN ERRORS AND/OR VIRUSES Electronic communications/messages cannot be guaranteed to be secure or error-free. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of such transmission. If verification is required, please request a hard-copy version.

Although we routinely screen for viruses, recipients should check this communications/message and any attachments for viruses. We make no representation or warranty as to the absence of viruses in this e-mail or any attachments. Please note that, to ensure regulatory compliance and for the protection of our customers and business, we may monitor and read e-mails sent to and from server(s) used by us.

INFORMATION PURPOSES ONLY The information contained in this electronic communication/message and any attachments is for information purposes, and should not be regarded as an offer to sell, or a solicitation of an offer to buy, any security in any jurisdiction where such an offer or solicitation would be in violation of any local laws. It does not constitute a recommendation or take into account the particular investment objectives, financial conditions, or needs of specific investors. Any prices or data contained herein are indicative and do not represent where the underlying instrument(s) may trade in the market at any given point in time, nor does such price(s) represent a determination of the underlying value of a particular instrument(s). This information may be changed at any time without notice or obligation to update. BGC accepts no liability for any loss (whether direct, indirect or consequential) that may arise from any use of the information contained herein or derived herefrom. Reliance may not be placed on trade confirmations issued other than by our Operations Department.

RETENTION Please note that any electronic communications/messages conducted within or through BGC systems is subject to monitoring, review, retention, and external production.

BGC Financial LP is a broker-dealer registered with the U.S. Securities and Exchange, a member of FINRA and a member of SIPC.

BGC Financial LP is a member of the National Futures Association as a swap firm and a futures commission merchant.

BGC Derivatives Markets LP is a swap execution facility registered with the Commodity Futures Trading Commission.

BGC Brokers LP ("BGCB") is authorised and regulated by the Financial Conduct Authority ("FCA"). BGCB is a Limited Partnership formed under the laws of England (under Limited Partnership Act 1907 LP011453) and its VAT registration number is 577 406809. BGCB's registered office is at 5 Churchill Place, Canary Wharf, London, United Kingdom, E14 5RD. For any issues arising from this email please reply to the sender.

BGCB appears on the FCA register under no 454814. The FCA register appears at www.fca.org.uk/register. The FCA is a financial services industry regulator in the United Kingdom and is located at 12 Endeavour Square, London, E20 1JN.

An individuals’ personal data under the GDPR - For further information about the way BGC entities (and relevant affiliates) within the European Economic Area (EEA) use your personal data please see our Third Party Privacy Notice at www.bgcpartners.com/notices/ or at such other place as we may provide notice of from time to time. Marketing within the European Economic Area - BGC entities within the EEA may contact you about industry news, offers and information relating to their products and services which they think would be of interest to you. You can tell them you do not wish to receive such communications by forwarding the communication to the following applicable regional address:

US - USDPM@bgcpartners.com EMEA - DPM@bgcpartners.com

For additional disclosures, please visit http://www.bgcpartners.com/disclaimers/

dsolodow commented 4 years ago

Yep, that would do it. Short version is pre-Windows 2016 baseline was PowerShell 2.0, which was built on .NET Runtime 2.0, so all the out of box modules are built against the 2.0 runtime. Later versions switched to PowerShell 5.1 which uses the .NET Runtime 4.0 and the out of box modules were re-compiled for that. Since DAT is built with .NET 4.x, invoking 2.x modules is a PITA.

MeneshHarji commented 4 years ago

Working now

Get Outlook for Androidhttps://aka.ms/ghei36


From: Damien Solodow notifications@github.com Sent: Thursday, July 23, 2020 9:47:17 PM To: maurice-daly/DriverAutomationTool DriverAutomationTool@noreply.github.com Cc: Harji, Menesh MHarji@bgcpartners.com; Author author@noreply.github.com Subject: Re: [maurice-daly/DriverAutomationTool] Import-Module BitsTransfer (#82)

This email originated from outside the Firm

Yep, that would do it. Short version is pre-Windows 2016 baseline was PowerShell 2.0, which was built on .NET Runtime 2.0, so all the out of box modules are built against the 2.0 runtime. Later versions switched to PowerShell 5.1 which uses the .NET Runtime 4.0 and the out of box modules were re-compiled for that. Since DAT is built with .NET 4.x, invoking 2.x modules is a PITA.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_maurice-2Ddaly_DriverAutomationTool_issues_82-23issuecomment-2D663224217&d=DwMCaQ&c=3v6EBbtpnn9A7jIZYjOw6KN7Pe17WoimzcinOq2Xztg&r=QmcEQofc-jqHnq0RAjEpXZue9DywI2QLIBJ8MwV3OHc&m=Dgu_E-pM1QV1zyUi_43iCLDhCwJDQiY7DpsnjJRxR30&s=bNs4EDl13zkmLcEsUXxLYm1mH7Wr2IOy3x34pQqy1Ik&e=, or unsubscribehttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AQMDHFKWF4COGZSZW63XNQTR5COVLANCNFSM4PFWEGHA&d=DwMCaQ&c=3v6EBbtpnn9A7jIZYjOw6KN7Pe17WoimzcinOq2Xztg&r=QmcEQofc-jqHnq0RAjEpXZue9DywI2QLIBJ8MwV3OHc&m=Dgu_E-pM1QV1zyUi_43iCLDhCwJDQiY7DpsnjJRxR30&s=hBIhGM98nQH778qlxtIK0OvMYSu2WafRmgzGtxSpzPo&e=.


CONFIDENTIAL An electronic communication(s)/message(s), including its contents and attachments, if any, may contain privileged or confidential information, or may be otherwise protected by work product immunity or other legal rules. No confidentiality or privilege is waived by any erroneously transmitted communication. Accessing, copying or re-using of information by non-intended or non-authorized recipients is prohibited. If you are not the named recipient please notify the sender and immediately delete this communication. You may not disseminate, distribute, or forward this message or disclose its contents to anybody else. Copyright and any other intellectual property rights in its contents are the sole property of BGC Partners Inc. and its affiliates (collectively, “BGC,” “we,” or “us”).

MAY CONTAIN ERRORS AND/OR VIRUSES Electronic communications/messages cannot be guaranteed to be secure or error-free. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of such transmission. If verification is required, please request a hard-copy version.

Although we routinely screen for viruses, recipients should check this communications/message and any attachments for viruses. We make no representation or warranty as to the absence of viruses in this e-mail or any attachments. Please note that, to ensure regulatory compliance and for the protection of our customers and business, we may monitor and read e-mails sent to and from server(s) used by us.

INFORMATION PURPOSES ONLY The information contained in this electronic communication/message and any attachments is for information purposes, and should not be regarded as an offer to sell, or a solicitation of an offer to buy, any security in any jurisdiction where such an offer or solicitation would be in violation of any local laws. It does not constitute a recommendation or take into account the particular investment objectives, financial conditions, or needs of specific investors. Any prices or data contained herein are indicative and do not represent where the underlying instrument(s) may trade in the market at any given point in time, nor does such price(s) represent a determination of the underlying value of a particular instrument(s). This information may be changed at any time without notice or obligation to update. BGC accepts no liability for any loss (whether direct, indirect or consequential) that may arise from any use of the information contained herein or derived herefrom. Reliance may not be placed on trade confirmations issued other than by our Operations Department.

RETENTION Please note that any electronic communications/messages conducted within or through BGC systems is subject to monitoring, review, retention, and external production.

BGC Financial LP is a broker-dealer registered with the U.S. Securities and Exchange, a member of FINRA and a member of SIPC.

BGC Financial LP is a member of the National Futures Association as a swap firm and a futures commission merchant.

BGC Derivatives Markets LP is a swap execution facility registered with the Commodity Futures Trading Commission.

BGC Brokers LP ("BGCB") is authorised and regulated by the Financial Conduct Authority ("FCA"). BGCB is a Limited Partnership formed under the laws of England (under Limited Partnership Act 1907 LP011453) and its VAT registration number is 577 406809. BGCB's registered office is at 5 Churchill Place, Canary Wharf, London, United Kingdom, E14 5RD. For any issues arising from this email please reply to the sender.

BGCB appears on the FCA register under no 454814. The FCA register appears at www.fca.org.uk/register. The FCA is a financial services industry regulator in the United Kingdom and is located at 12 Endeavour Square, London, E20 1JN.

An individuals’ personal data under the GDPR - For further information about the way BGC entities (and relevant affiliates) within the European Economic Area (EEA) use your personal data please see our Third Party Privacy Notice at www.bgcpartners.com/notices/ or at such other place as we may provide notice of from time to time. Marketing within the European Economic Area - BGC entities within the EEA may contact you about industry news, offers and information relating to their products and services which they think would be of interest to you. You can tell them you do not wish to receive such communications by forwarding the communication to the following applicable regional address:

US - USDPM@bgcpartners.com EMEA - DPM@bgcpartners.com

For additional disclosures, please visit http://www.bgcpartners.com/disclaimers/

MikeDFW commented 4 years ago

I'm on Server 2012, PowerShell 5.1, .NET 4.5, 4.51, 4.52 ..but I'm getting the same error. I fixed it by copying the DriverAutomationTool.exe.config file from my old DAT folder to the new install folder. It was missing for some reason.

maurice-daly commented 3 years ago

The DriverAutomationTool.exe.config is required, without this you will get this experience on older server versions.