You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.
When I try to import 'import-WinModule' I get access denied. "cannot validate argument on parameter 'session'. @kborowinski were you able to get past this and if so, how?
The script block gets evaluated in the remote scope which will not have your local scope variables in it. I would highly recommend using string evaluated in the local scope for -Filter for a multitude of reasons beyond compatibility with this module.
Variables are not passed to Filter parameter on any cmdlet from ActiveDirectory module imported through Import-WinModule:
Workaround:
Use string formatting operator
The text was updated successfully, but these errors were encountered: