Search found 9 matches

by Technosapien
Sun Sep 18, 2016 4:40 am
Forum: PowerShell
Topic: Unable to find type [Microsoft.ActiveDirectory.Management.ADIdentityNotFoundException]
Replies: 10
Views: 15684

Re: Unable to find type [Microsoft.ActiveDirectory.Management.ADIdentityNotFoundException]

depends on whatcaused th eerror since you are ignoring most errors. When we do a try/catch you MUST also apply a general catch block in case the exception is not parsed as expected. I understand this. Because I can only trigger 2 error types for this query, I am catching them. I will later add a ca...
by Technosapien
Thu Sep 15, 2016 4:48 pm
Forum: PowerShell
Topic: Unable to find type [Microsoft.ActiveDirectory.Management.ADIdentityNotFoundException]
Replies: 10
Views: 15684

Re: Unable to find type [Microsoft.ActiveDirectory.Management.ADIdentityNotFoundException]

@Jvierra

I think this is a PS Studio bug rather than a general PS one. This is evidenced by the type error not occurring when catch block is triggered in ISE.
by Technosapien
Wed Sep 14, 2016 5:24 pm
Forum: PowerShell
Topic: Unable to find type [Microsoft.ActiveDirectory.Management.ADIdentityNotFoundException]
Replies: 10
Views: 15684

Re: Unable to find type [Microsoft.ActiveDirectory.Management.ADIdentityNotFoundException]

Hey jvierra. I can confirm that in a basic setting such as follows the exception type can be detected. try { Get-ADUser -Identity 'FAKEACCOUNT' } catch [Microsoft.ActiveDirectory.Management.ADIdentityNotFoundException] { Write-Host "Account not detected exception" } However the exception t...
by Technosapien
Wed Sep 14, 2016 12:48 am
Forum: PowerShell
Topic: Unable to find type [Microsoft.ActiveDirectory.Management.ADIdentityNotFoundException]
Replies: 10
Views: 15684

Unable to find type [Microsoft.ActiveDirectory.Management.ADIdentityNotFoundException]

I have a Catch block for the exception type that comes up when a user isn't found in AD. In PowerShell Studio I'm still receiving the error Unable to find type [Microsoft.ActiveDirectory.Management.ADIdentityNotFoundException] . Same script works without issue in ISE. I have the Import-Module Active...
by Technosapien
Thu Oct 01, 2015 11:24 pm
Forum: PowerShell GUIs
Topic: [RESOLVED]PS Studio Failing to store string variable???
Replies: 0
Views: 18444

[RESOLVED]PS Studio Failing to store string variable???

Combination of errors on my behalf Now resolved. Sorry for trouble.
by Technosapien
Sun Aug 02, 2015 4:35 am
Forum: PowerShell GUIs
Topic: Function based form updates not executing sequentially
Replies: 7
Views: 4101

Re: Function based form updates not executing sequentially

Thanks JVierra :)

I'll review the code you've provided and read up more on DoEvents
by Technosapien
Sun Aug 02, 2015 12:50 am
Forum: PowerShell GUIs
Topic: Function based form updates not executing sequentially
Replies: 7
Views: 4101

Re: Function based form updates not executing sequentially

What is your question. You describe a lot of scenarios but fail to ask a question. Are you saying that your code won't run? My code does run. My problem is I have functions that include textbox updates. These updates included as part of my functions are not executing until all the functions finish....
by Technosapien
Sat Aug 01, 2015 7:37 pm
Forum: PowerShell GUIs
Topic: Function based form updates not executing sequentially
Replies: 7
Views: 4101

Re: Function based form updates not executing sequentially

Bump

Is this the right forum or is there a different one for license holders :?:
by Technosapien
Thu Jul 30, 2015 6:14 pm
Forum: PowerShell GUIs
Topic: Function based form updates not executing sequentially
Replies: 7
Views: 4101

Function based form updates not executing sequentially

I have a form that takes a hostname as input then; 1) When user clicks check status, a function is called to check if the pc exists in AD. 2) If it does it grabs info from AD and updates relevant textboxes on form. 3) Tries to ping device using .Net object. 4) if successful displays IP, if fails dis...