I have the following desired state configuration script with a script resource referencing a module I'm using. The error I get is that in the test block, Get-NTFSAccess is not recognized. What's rude about this is that in the ISE, it's not only recognized, it autocompletes the function name and parameters for me. Could this be a scope issue?
import-module NTFSSecurity -verbose
Thank you, that was the problem! Since I'm using a push method and not pull, the target server could not pull the module from my source server. When I copied the module to the target server's modules directory, it worked fine.