Skip to content
MorganTechSpace
  • Home
  • Powershell
  • Office 365
  • Azure AD
  • Exchange Online
  • SharePoint Online
  • Active Directory
  • Contact

C#

Change Password – Exception has been thrown by the target of an invocation

March 13, 2020September 25, 2015 by Morgan

You may receive the error “System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation” when you try to …

Read more

Categories Active Directory, AD Permission, C#, Ldap

Exception has been thrown by the target of an invocation – Access is denied

March 13, 2020September 25, 2015 by Morgan

Problem I have received the error “System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> System.UnauthorizedAccessException: Access …

Read more

Categories Active Directory, AD Permission, C#, Ldap

Convert SID to Username using C#

March 13, 2020September 10, 2015 by Morgan

In C#, we can use the P-Invoke function LookupAccountSid to resolve user name from sid and we can also use …

Read more

Categories C#, Development, Network, Security, WIn32_API

Find name of Exchange Organization in C#

March 14, 2020September 2, 2015 by Morgan

In .NET C#, you can find the name your Exchange Organization using DirectoryEntry class from Configuration context store. Use the …

Read more

Categories Active Directory, C#, Exchange Server

Get System Information in C#

March 14, 2020August 27, 2015 by Morgan

In C#, we can get system information like Operation System , Processor Architecture and Drive Details using the built-in class …

Read more

Categories C#, Desktop, System Administration, WMI

C#: Get nested group membership for AD user

March 14, 2020August 1, 2015 by Morgan

In .NET C#, we can get the list of AD user group memberships using two methods. In first method, we …

Read more

Categories Active Directory, C#

C# : Check If Machine is Online or Offline

March 14, 2020July 23, 2015 by Morgan

In C#, We can test if a remote computer is online or offline using Ping service. For security reason, the …

Read more

Categories C#, Firewall, Network, Remote Administration

C# : The server is unwilling to process the request

March 14, 2020July 17, 2015 by Morgan

Problem I am receiving the error “The server is unwilling to process the request” when changing the AD attribute userAccountControl …

Read more

Categories Active Directory, C#

C# : Get Executing Assembly Folder Path

March 14, 2020July 11, 2015 by Morgan

In C#, we can read directory path of executing assembly file using different methods. In this article, I am going …

Read more

Categories C#, File System

Import Bulk AD Users from CSV using C#

March 14, 2020July 11, 2015 by Morgan

In this article. I am going write C# code samples to create bulk AD users from CSV file and create …

Read more

Categories Active Directory, AD Management, C#, CSV
Older posts
Newer posts
← Previous Page1 … Page3 Page4 Page5 … Page12 Next →

Categories

  • Powershell
  • Microsoft 365
  • Azure AD
  • SharePoint Online
  • Exchange Online
  • Microsoft Teams
  • Office 365 Groups
  • Active Directory
  • Microsoft Graph
  • PnP-PowerShell
  • CSOM

Recent Posts

  • Get Azure AD (Entra ID) App-Only Access Token with PowerShell
  • Working with REST API in PowerShell using Invoke-RestMethod
  • M365 User SignIn Activity – Neither tenant is B2C or tenant doesn’t have premium license
  • How to Join or Concatenate String and Number Using PowerShell
  • Find Location and County by IP Address with PowerShell
  • Microsoft 365
  • Azure AD
  • SharePoint Online
  • Exchange Online
  • Microsoft Teams
  • Microsoft 365 Groups
  • OneDrive for Business
  • Azure AD Authentication
  • Active Directory
  • Exchange Server
  • PowerShell
  • PnP PowerShell
  • Microsoft Graph
  • CSOM
  • VBScript

Follow us

  • Facebook
  • Twitter
DMCA.com Protection Status
  • Privacy-Policy
  • Disclaimer
  • TermsOfUse
  • About
Copyright © 2025 MorganTechSpace