# module  does not exist

**URL:** <https://forums.powershell.org/t/module-does-not-exist/10369>\
**Category:** DSC\
**Created:** [March 22, 2018, 5:26pm UTC](https://forums.powershell.org/t/module-does-not-exist/10369 "2018-03-22T17:26:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![aalmeida](https://avatars.discourse-cdn.com/v4/letter/a/f4b2a3/32.png) [@aalmeida](https://forums.powershell.org/u/aalmeida)\
**Post date:** [March 22, 2018, 5:26pm UTC](https://forums.powershell.org/t/module-does-not-exist/10369/1 "2018-03-22T17:26:49Z")

</div>

I`m running a configuration via PULL server and it gets this error:  
Job {69867AC0-2E1E-11E8-9E69-0050568A9182} :  
MIResult: 6  
Error Message: The PowerShell DSC resource MSFT\_ScriptResource from module does not exist at the PowerShell module path nor is it registered as a WMI DSC resource.  
Message ID: DscResourceNotFound  
Error Category: 7  
Error Code: 6  
Error Type: MI

I don`t know why it is trying to use 1.0 version… Both PULL and node machines are whit version 1.1

---

<div class="post-metadata">

**Author:** ![donj](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/donj/32/137_2.png) [@donj](https://forums.powershell.org/u/donj)\
**Post date:** [March 22, 2018, 5:37pm UTC](https://forums.powershell.org/t/module-does-not-exist/10369/2 "2018-03-22T17:37:44Z")

</div>

Check the MOF. Something is demanding v1.0 of that module.

---

<div class="post-metadata">

**Author:** ![aalmeida](https://avatars.discourse-cdn.com/v4/letter/a/f4b2a3/32.png) [@aalmeida](https://forums.powershell.org/u/aalmeida)\
**Post date:** [March 22, 2018, 5:46pm UTC](https://forums.powershell.org/t/module-does-not-exist/10369/3 "2018-03-22T17:46:30Z")

</div>

1 instance of MSFT\_ScriptResource as $MSFT\_ScriptResource1ref  
2 {  
3 ResourceID = “[Script]DisableFirewall”;  
4 GetScript = " \n Return @{ \n Result = [string]$(netsh advfirewall show allprofiles) \n } \n ";  
5 TestScript = " \n If ((netsh advfirewall show allprofiles) -like "State_On_") { \n Write-Verbose "One or more firewall profiles are On" \n Return $false \n } Else { \n Write-Verbose "All firewall profiles are off" \n Return $true \n } \n ";  
6 SourceInfo = “C:\Users\Administrator\Documents\test-repos\PS-DSC.SQLServer\ConfigFiles\2-PreStaging.ps1::28::4::Script”;  
7 SetScript = " \n Write-Verbose "Setting all firewall profiles to off" \n netsh advfirewall set allprofiles state off \n ";  
8 ModuleName = “PSDesiredStateConfiguration”;  
9  
10 ModuleVersion = “1.1”;  
11  
12 ConfigurationName = “PreStaging.SQLPullDSC-1”;  
};

Line 10 was ModuleVersion = “1.0”;  
Then I changed to 1.1 and it passed. How can I compile MOF file with 1.1 version???

Thanks a Lot!

---

<div class="post-metadata">

**Author:** ![donj](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/donj/32/137_2.png) [@donj](https://forums.powershell.org/u/donj)\
**Post date:** [March 22, 2018, 5:56pm UTC](https://forums.powershell.org/t/module-does-not-exist/10369/4 "2018-03-22T17:56:13Z")

</div>

Look at the machine you’re compiling on, and make sure you’re explicitly importing the version you want used.

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 9:16pm UTC](https://forums.powershell.org/t/module-does-not-exist/10369/5 "2024-05-16T21:16:31Z")

</div>


