ActiveDirectory module greyed out

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 6 years and 5 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
dank42
Posts: 61
Last visit: Tue Apr 26, 2022 7:49 am

ActiveDirectory module greyed out

Post by dank42 »

Hi,

I have just re-activated PSS 2017 on a new machine and copied over a PSF I've been working on and all the ActiveDirectory cmdlets are greyed out in the form...is this common?

Everything functions as it should but it's quite annoying not having the intellisense :(

It's only the AD cmdlets that aren't working correctly everything else is fine.

PowerShell Studio 2017 v5.4.141


Cheers,

Dan
Attachments
snapshot.PNG
snapshot.PNG (13.93 KiB) Viewed 2332 times
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: ActiveDirectory module greyed out

Post by jvierra »

They have to be added t the cache. Try a cache rebuild.

The AD CmdLets won't work correctly if you are not in a domain.
Be sure to test the CmdLets at in the PS command shell - "powershell.exe".
User avatar
dank42
Posts: 61
Last visit: Tue Apr 26, 2022 7:49 am

Re: ActiveDirectory module greyed out

Post by dank42 »

I have rebuilt the form several times but having no joy :/

Unless there is a specific way to do a "cache rebuild"

My machine is in a domain and the cmdlets work in the ISE etc.

If I verify the script it brings back the following:

User-Management.psf: -----------------------------------------------
User-Management.psf: Missing Modules:
User-Management.psf: -----------------------------------------------
User-Management.psf:
User-Management.psf: ActiveDirectory
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: ActiveDirectory module greyed out

Post by jvierra »

cacher.png
cacher.png (66.06 KiB) Viewed 2308 times
User avatar
dank42
Posts: 61
Last visit: Tue Apr 26, 2022 7:49 am

Re: ActiveDirectory module greyed out

Post by dank42 »

Sorted, ActiveDirectory was un-ticked.

Thank you :)
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: ActiveDirectory module greyed out

Post by jvierra »

Now you know how to manage the cache. If you want to be sure all modules are loaded then do a full rebuild and PSS will find all installed modules and register them.
This topic is 6 years and 5 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked