Product, version and build:
(*** Please do not write "latest" as a version, specify a version number ***)
32 or 64 bit version of product:
Operating system:
32 or 64 bit OS:
DO NOT POST SUBSCRIPTIONS, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM
Hello I am using version PowerShell Studio 2017 v5.4.135
when I enter the following, it is not recognized as a type e.g. no intellisense etc..
[System.DirectoryServices.ActiveDirectoryAccessRule]
Therefore I tried the following first
[System.Reflection.Assembly]::LoadWithPartialName('System.DirectoryServices')
This loaded the assembly OK, however [System.DirectoryServices.ActiveDirectoryAccessRule] still does not work e.g. not recognized as not intellisense of methods etc..
I have also tried
Import-Module ActiveDirectory
but again [System.DirectoryServices.ActiveDirectoryAccessRule] not recognized
If I do [System.DirectoryServices.ActiveDirectoryAccessRule] in PowerGUI it is recognized straight away (without loading anything else) it works no problem (intellisense, methods etc.)
Please advise as soon as possible as I will be using the System.DirectoryServices name space more and more often
Thanks
BrantE
Certain .NET Types are not working with Intellisence
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Re: Certain .NET Types are not working with Intellisence
If you use the Add-Type cmdlet, PowerShell Studio will automatically load the assembly in the background for PrimalSense purposes:
Alternatively, if you are working with a psf (GUI) you can set the assembly via Ribbon->Home->Edit->Assemblies.
- Add-Type -AssemblyName System.DirectoryServices
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.