maurice-daly / DriverAutomationTool

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

Import-Module : A drive with the name '<SITECODE>' already exists. #469

Open mukcodes opened 1 year ago

mukcodes commented 1 year ago

Hey Guys,

I have been getting the following error when using the tool. Unsure how to fix this? No other errors show in the logs.

Import-Module : A drive with the name '<SITECODE>' already exists.
At line:17474 char:8
+                             Import-Module $ModuleName
+                             ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceExists: (<SITECODE>:String) [Import-Module], ProviderInvocationException
    + FullyQualifiedErrorId : DriveAlreadyExists,Microsoft.PowerShell.Commands.ImportModuleCommand