<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Use DLL files in PowerShell	</title>
	<atom:link href="https://tekcookie.com/use-dll-files-in-powershell/feed/" rel="self" type="application/rss+xml" />
	<link>https://tekcookie.com/use-dll-files-in-powershell/</link>
	<description>Everything about IT</description>
	<lastBuildDate>Fri, 12 Aug 2022 11:12:11 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Keith Howard		</title>
		<link>https://tekcookie.com/use-dll-files-in-powershell/#comment-5312</link>

		<dc:creator><![CDATA[Keith Howard]]></dc:creator>
		<pubDate>Fri, 12 Aug 2022 11:12:11 +0000</pubDate>
		<guid isPermaLink="false">https://tekcookie.com/?p=1490#comment-5312</guid>

					<description><![CDATA[&lt;p&gt;Hello, thanks for  your helpful reply re: Add-Type. Have a good day. 🙂&lt;/p&gt;
]]></description>
			<content:encoded><![CDATA[<p>Hello, thanks for  your helpful reply re: Add-Type. Have a good day. 🙂</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: jeffythampi		</title>
		<link>https://tekcookie.com/use-dll-files-in-powershell/#comment-5280</link>

		<dc:creator><![CDATA[jeffythampi]]></dc:creator>
		<pubDate>Mon, 08 Aug 2022 21:38:06 +0000</pubDate>
		<guid isPermaLink="false">https://tekcookie.com/?p=1490#comment-5280</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://tekcookie.com/use-dll-files-in-powershell/#comment-5269&quot;&gt;KEITH HOWARD&lt;/a&gt;.

Hi Keith,

The C# code in the article is just to show the functionality of the dll. 
The dll&#039;s can be referred inside the PS code using the dll file path

#Referring the dll in the script
Add-Type -Path &quot;C:\PowerShell\custlib.dll&quot;

#To access an object in the dll, Create object of CustomClass which is defined in the DLL, create new object of the class
$custObj = New-Object CustomNamespace.CustomClass

#Access the variable using the new object $custObj
$custObj.variablename

Hope this is what you are looking for.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://tekcookie.com/use-dll-files-in-powershell/#comment-5269">KEITH HOWARD</a>.</p>
<p>Hi Keith,</p>
<p>The C# code in the article is just to show the functionality of the dll.<br />
The dll&#8217;s can be referred inside the PS code using the dll file path</p>
<p>#Referring the dll in the script<br />
Add-Type -Path &#8220;C:\PowerShell\custlib.dll&#8221;</p>
<p>#To access an object in the dll, Create object of CustomClass which is defined in the DLL, create new object of the class<br />
$custObj = New-Object CustomNamespace.CustomClass</p>
<p>#Access the variable using the new object $custObj<br />
$custObj.variablename</p>
<p>Hope this is what you are looking for.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: KEITH HOWARD		</title>
		<link>https://tekcookie.com/use-dll-files-in-powershell/#comment-5269</link>

		<dc:creator><![CDATA[KEITH HOWARD]]></dc:creator>
		<pubDate>Sun, 07 Aug 2022 17:26:30 +0000</pubDate>
		<guid isPermaLink="false">https://tekcookie.com/?p=1490#comment-5269</guid>

					<description><![CDATA[&lt;p&gt;Hello, That&#8217;s an interesting article. However, I am trying to refer to constants in installed C# DLLs from a PowerShell script. I do not want to include the C# source code in the PowerShell script. Is this possible? Many thanks. -Keith&lt;/p&gt;
]]></description>
			<content:encoded><![CDATA[<p>Hello, That&#8217;s an interesting article. However, I am trying to refer to constants in installed C# DLLs from a PowerShell script. I do not want to include the C# source code in the PowerShell script. Is this possible? Many thanks. -Keith</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
