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 was archived by the owner on Jun 16, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Jun 16, 2021. It is now read-only.
Variables are not passed to Filter parameter of any cmdlet from ActiveDirectory module #42
When I try to import 'import-WinModule' I get access denied. "cannot validate argument on parameter 'session'. Kris Borowinski (@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