<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>pspki Discussions Rss Feed</title><link>http://pspki.codeplex.com/discussions</link><description>pspki Discussions Rss Description</description><item><title>New Post: Import-module pskpi error</title><link>http://pspki.codeplex.com/discussions/441744</link><description>&lt;div style="line-height: normal;"&gt;looks like you have strange encoding issue. Try to fix these weird characters with normal ones.&lt;br /&gt;
&lt;/div&gt;</description><author>Camelot</author><pubDate>Mon, 29 Apr 2013 09:47:56 GMT</pubDate><guid isPermaLink="false">New Post: Import-module pskpi error 20130429094756A</guid></item><item><title>New Post: Import-module pskpi error</title><link>http://pspki.codeplex.com/discussions/441744</link><description>&lt;div style="line-height: normal;"&gt;Hi，Camelot.&lt;br /&gt;
because  when i was trying to import module pspki&lt;br /&gt;
i get the error like below.&lt;br /&gt;
i think the powershell can not regonize those tow strange command . 1 朏unction 2 朚odule  two&lt;br /&gt;
Although i have corrected to function and module , it didn't work.&lt;br /&gt;
so, i have to make the &amp;quot;#&amp;quot; before those two line to annotate it .&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;
Export-ModuleMember &amp;lt;&amp;lt;&amp;lt;&amp;lt;  朏unction @(Get-Command 朚odule $ExecutionContext.SessionState.Module | Where-Object {$Rest&lt;br /&gt;
rictedFunctions -notcontains $_.Name})&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;CategoryInfo          : InvalidArgument: (:) [Export-ModuleMember], ParameterBindingException&lt;/li&gt;
&lt;li&gt;
FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.ExportModuleMemberCommand&lt;br /&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
Export-ModuleMember -Alias @(Get-Command &amp;lt;&amp;lt;&amp;lt;&amp;lt;  朚odule $ExecutionContext.SessionState.Module)&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;CategoryInfo          : ObjectNotFound: (朚odule:String) [Get-Command], CommandNotFoundException&lt;/li&gt;
&lt;li&gt;FullyQualifiedErrorId : CommandNotFoundException,Microsoft.PowerShell.Commands.GetCommandCommand&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>lvnhjj</author><pubDate>Mon, 29 Apr 2013 05:53:25 GMT</pubDate><guid isPermaLink="false">New Post: Import-module pskpi error 20130429055325A</guid></item><item><title>New Post: Import-module pskpi error</title><link>http://pspki.codeplex.com/discussions/441744</link><description>&lt;div style="line-height: normal;"&gt;&lt;strong&gt;lvnhjj wrote:&lt;/strong&gt;&lt;br /&gt;
&lt;blockquote&gt;
HI，Guys &lt;br /&gt;
you can modify the psm1file in the line 202 and 203 like below,&lt;br /&gt;
take attention for the &amp;quot;#&amp;quot;&lt;br /&gt;
&lt;h1&gt;export module members&lt;/h1&gt;
&lt;h1&gt;Export-ModuleMember 朏unction @(Get-Command 朚odule $ExecutionContext.SessionState.Module | Where-Object {$RestrictedFunctions -notcontains $_.Name})&lt;/h1&gt;
&lt;h1&gt;Export-ModuleMember -Alias @(Get-Command 朚odule $ExecutionContext.SessionState.Module)&lt;/h1&gt;
&lt;/blockquote&gt;
why do I need to change there anything? I think, Export-ModuleMember commands are executed correctly.&lt;br /&gt;
&lt;/div&gt;</description><author>Camelot</author><pubDate>Sat, 27 Apr 2013 07:09:09 GMT</pubDate><guid isPermaLink="false">New Post: Import-module pskpi error 20130427070909A</guid></item><item><title>New Post: Import-module pskpi error</title><link>http://pspki.codeplex.com/discussions/441744</link><description>&lt;div style="line-height: normal;"&gt;HI，Guys &lt;br /&gt;
you can modify the psm1file in the line 202 and 203 like below,&lt;br /&gt;
take attention for the &amp;quot;#&amp;quot;&lt;br /&gt;
&lt;h1&gt;export module members&lt;/h1&gt;
&lt;h1&gt;Export-ModuleMember 朏unction @(Get-Command 朚odule $ExecutionContext.SessionState.Module | Where-Object {$RestrictedFunctions -notcontains $_.Name})&lt;/h1&gt;
&lt;h1&gt;Export-ModuleMember -Alias @(Get-Command 朚odule $ExecutionContext.SessionState.Module)&lt;/h1&gt;
&lt;/div&gt;</description><author>lvnhjj</author><pubDate>Sat, 27 Apr 2013 07:00:36 GMT</pubDate><guid isPermaLink="false">New Post: Import-module pskpi error 20130427070036A</guid></item><item><title>New Post: Import-module pskpi error</title><link>http://pspki.codeplex.com/discussions/441744</link><description>&lt;div style="line-height: normal;"&gt;sorry ，i have mistyped  pspki for pskpi。&lt;br /&gt;
OMG！！！&lt;br /&gt;
&lt;/div&gt;</description><author>lvnhjj</author><pubDate>Sat, 27 Apr 2013 06:39:37 GMT</pubDate><guid isPermaLink="false">New Post: Import-module pskpi error 20130427063937A</guid></item><item><title>New Post: Import-module pskpi error</title><link>http://pspki.codeplex.com/discussions/441744</link><description>&lt;div style="line-height: normal;"&gt;when i was trying to import the module to ps,&lt;br /&gt;
i got the error like this &lt;br /&gt;
also i have tryed to replace the psm1 file in the below link&lt;br /&gt;
&lt;a href="https://pspki.codeplex.com/workitem/30" rel="nofollow"&gt;https://pspki.codeplex.com/workitem/30&lt;/a&gt;&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;Import-Module : The module to process 'PSPKI.psm1', listed in field 'ModuleToProcess' of module manifest 'C:\Windows\sy
stem32\WindowsPowerShell\v1.0\Modules\PSPKI\PSPKI.psd1' was not processed because no valid module was found in any modu
le directory.
At line:24 char:34
+                     Import-Module &amp;lt;&amp;lt;&amp;lt;&amp;lt;  $_.Name -ErrorAction SilentlyContinue
    + CategoryInfo          : ResourceUnavailable: (PSPKI:String) [Import-Module], FileNotFoundException
    + FullyQualifiedErrorId : Modules_ModuleFileNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand__&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;</description><author>lvnhjj</author><pubDate>Sat, 27 Apr 2013 03:42:15 GMT</pubDate><guid isPermaLink="false">New Post: Import-module pskpi error 20130427034215A</guid></item><item><title>New Post: Source Code</title><link>http://pspki.codeplex.com/discussions/390853</link><description>&lt;div style="line-height: normal;"&gt;Sources are available: &lt;a href="https://pspki.codeplex.com/releases/view/101174" rel="nofollow"&gt;https://pspki.codeplex.com/releases/view/101174&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;</description><author>Camelot</author><pubDate>Sun, 14 Apr 2013 09:58:27 GMT</pubDate><guid isPermaLink="false">New Post: Source Code 20130414095827A</guid></item><item><title>New Post: Source Code for PKI.Core.dll</title><link>http://pspki.codeplex.com/discussions/429003</link><description>&lt;div style="line-height: normal;"&gt;finally, the source code for PKI.Core.dll library is published: &lt;a href="https://pspki.codeplex.com/releases/view/101174" rel="nofollow"&gt;https://pspki.codeplex.com/releases/view/101174&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;</description><author>Camelot</author><pubDate>Sun, 14 Apr 2013 09:57:41 GMT</pubDate><guid isPermaLink="false">New Post: Source Code for PKI.Core.dll 20130414095741A</guid></item><item><title>New Post: Source Code for PKI.Core.dll</title><link>http://pspki.codeplex.com/discussions/429003</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;I have plans to pull out PKI.Core.dll sources in the next release.&lt;/p&gt;
&lt;/div&gt;</description><author>Camelot</author><pubDate>Mon, 28 Jan 2013 08:13:19 GMT</pubDate><guid isPermaLink="false">New Post: Source Code for PKI.Core.dll 20130128081319A</guid></item><item><title>New Post: Source Code for PKI.Core.dll</title><link>http://pspki.codeplex.com/discussions/429003</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Vadims,&lt;/p&gt;
&lt;p&gt;Would you consider publishing the source for the PKI.Core.dll? &amp;nbsp;I would like to implement the scripts in my enterprise, but the obvious sensitive nature of the environment keeps us from using any untrusted closed-source DLLs.&lt;/p&gt;
&lt;p&gt;Sean&lt;/p&gt;
&lt;/div&gt;</description><author>harperse</author><pubDate>Wed, 09 Jan 2013 13:13:36 GMT</pubDate><guid isPermaLink="false">New Post: Source Code for PKI.Core.dll 20130109011336P</guid></item><item><title>New Post: Can't load the module via remote</title><link>http://pspki.codeplex.com/discussions/403465</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Hi, PSPKI is not supported to run in remote sessions (via PS Remoting) due to its design and there are no plans to add this support. Module already uses (or intended to use)&amp;nbsp;remote connections to CA servers. If you will run PSPKI module in remote sessions
 the module will become unusable because of credential delegation issue. Here is a short example:&lt;/p&gt;
&lt;p&gt;1) ComputerA (your worksation) -&amp;gt; ComputerC (CA server)&lt;/p&gt;
&lt;p&gt;2) ComputerA (your worksation)&amp;nbsp;-&amp;gt; ComputerB&amp;nbsp;-&amp;gt; ComputerC (CA server).&lt;/p&gt;
&lt;p&gt;when you run your script on ComputerA and access CA server on ComputerC, the script will work fine, because you are authenticated directly.&lt;/p&gt;
&lt;p&gt;When you run commands remotely on ComputerB, the script will fail, because ServerB has delegated credentials and they cannot be used to authenticate you on ComputerC. To resolve this you have to do either:&lt;/p&gt;
&lt;p&gt;1) allow credential delegation for ComputerB. Many administrators don't like this option, because it is unsecure. ComputerB will be able to authenticate anyone on other computers and you are in risk of network compromise if only single ComputerB is compromised.&lt;/p&gt;
&lt;p&gt;2) use explicit credentail transfer: CredSSP. This is alternate approach. This is more secure way to delegate credentials, however it requires additional configuration, explixit CredSSP use. Also I never tested CredSSP in remoting&amp;nbsp;with smart cards and can't
 guarantee that this would work as expected.&lt;/p&gt;
&lt;p&gt;In addition, I put a lot of effort to make commands in the module to support remote systems as much as possible (though, certain commands runs only locally, however). My main idea is to use the module on administrator's workstation (not directly on CA servers),
 so he is able to perform required PKI-related management tasks without having to log on to CA servers. That is, if you want to collect some reports about revoked certificates, you should run the module locally, collect all required data from remote CA servers
 and process them locally too.&lt;/p&gt;
&lt;/div&gt;</description><author>Camelot</author><pubDate>Fri, 16 Nov 2012 13:24:29 GMT</pubDate><guid isPermaLink="false">New Post: Can't load the module via remote 20121116012429P</guid></item><item><title>New Post: Can't load the module via remote</title><link>http://pspki.codeplex.com/discussions/403465</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Hi Guys,&lt;/p&gt;
&lt;p&gt;Currently, i try to trigger a script with serverA on serverB. I load the PSPKI module In the script on serverB. But thats not possible.&lt;/p&gt;
&lt;p&gt;When i trigger ther script on ther serverB with the following code:&lt;/p&gt;
&lt;div style="background-color:white; color:black"&gt;
&lt;pre&gt;Invoke&lt;span style="color:gray"&gt;-&lt;/span&gt;Command &lt;span style="color:gray"&gt;-&lt;/span&gt;ComputerName &lt;span style="color:#a31515"&gt;'serverB'&lt;/span&gt; &lt;span style="color:gray"&gt;-&lt;/span&gt;ScriptBlock {&amp;amp;&lt;span style="color:#a31515"&gt;'E:\Scripts\Dev\Thomas\CA\CAUserRevokedReport - Copy.ps1'&lt;/span&gt;}
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;I receive the message that my remote server have the Powershell version 1.0 but the server is an 2008R2&amp;nbsp;and Powershell 2.0 is installed by default.&lt;/p&gt;
&lt;p&gt;An colleague Peter Kriegel from the german powershell technet forum means that the script works with the command get-host to match the powershell versions but the better way is to use the environmet variable $PSVersionTable. I think so too and can explain
 my issue with&amp;nbsp;that.&amp;nbsp;Because an Remote&amp;nbsp;session with get-host&amp;nbsp;return allways&amp;nbsp;the version 1.0. This problem is also not solved in the version 3 of Powershell.&amp;nbsp;&amp;nbsp;Have you already an fix for it or an workarround?&lt;/p&gt;
&lt;p&gt;best regards&lt;br&gt;
Thomas&lt;/p&gt;
&lt;/div&gt;</description><author>digiflex</author><pubDate>Fri, 16 Nov 2012 10:26:27 GMT</pubDate><guid isPermaLink="false">New Post: Can't load the module via remote 20121116102627A</guid></item><item><title>New Post: Exclude autoenroll certificates</title><link>http://pspki.codeplex.com/discussions/399068</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;unfortunately, there is no way to determine whether the certificate was issued during autoenrollment or manual request process.&lt;/p&gt;
&lt;p&gt;BTW, depending on your DNS configuration, you can use short CA host name (NetBIOS name).&lt;/p&gt;&lt;/div&gt;</description><author>Camelot</author><pubDate>Fri, 12 Oct 2012 08:23:51 GMT</pubDate><guid isPermaLink="false">New Post: Exclude autoenroll certificates 20121012082351A</guid></item><item><title>New Post: Exclude autoenroll certificates</title><link>http://pspki.codeplex.com/discussions/399068</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;I would like to list all issued certificates except autoenrollment ones.&lt;br&gt;
My script shows all issued. How to change this code that autoenrollment ones are excluded?&lt;br&gt;
***********************************&lt;br&gt;
$caname = $computername.ToLower()&lt;/p&gt;
&lt;p&gt;$domaindns = $ENV:USERDNSDOMAIN.ToLower()&lt;/p&gt;
&lt;p&gt;$todaysdate = Get-Date$&lt;/p&gt;
&lt;p&gt;enddate = $todaysdate.AddMonths(2)&lt;/p&gt;
&lt;p&gt;$issuedcerts = Get-CertificationAuthority &amp;ldquo;$caname.$domaindns&amp;rdquo; | Get-IssuedRequest -property * -Filter &amp;quot;NotAfter -ge $todaysdate&amp;quot;, &amp;quot;NotAfter -le $enddate&amp;quot; | sort-object NotAfter, NotBefore&lt;/p&gt;
&lt;/div&gt;</description><author>jyrkis700</author><pubDate>Fri, 12 Oct 2012 07:23:32 GMT</pubDate><guid isPermaLink="false">New Post: Exclude autoenroll certificates 20121012072332A</guid></item><item><title>New Post: Error occured while running Import-Module PSPKI</title><link>http://pspki.codeplex.com/discussions/396351</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Enjoy ADCS automation with Windows&amp;nbsp;PowerShel!&lt;/p&gt;&lt;/div&gt;</description><author>Camelot</author><pubDate>Mon, 24 Sep 2012 08:38:47 GMT</pubDate><guid isPermaLink="false">New Post: Error occured while running Import-Module PSPKI 20120924083847A</guid></item><item><title>New Post: Error occured while running Import-Module PSPKI</title><link>http://pspki.codeplex.com/discussions/396351</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;That solved my problem.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;/div&gt;</description><author>har77</author><pubDate>Mon, 24 Sep 2012 08:07:08 GMT</pubDate><guid isPermaLink="false">New Post: Error occured while running Import-Module PSPKI 20120924080708A</guid></item><item><title>New Post: Error occured while running Import-Module PSPKI</title><link>http://pspki.codeplex.com/discussions/396351</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi, it looks like you haven't installed ADCS RSAT tools. If you are using client operating system, install RSAT, if you are using server OS, add required RSAT components in Server Manager.&lt;/p&gt;&lt;/div&gt;</description><author>Camelot</author><pubDate>Fri, 21 Sep 2012 10:58:26 GMT</pubDate><guid isPermaLink="false">New Post: Error occured while running Import-Module PSPKI 20120921105826A</guid></item><item><title>New Post: Error occured while running Import-Module PSPKI</title><link>http://pspki.codeplex.com/discussions/396351</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;After installing the &lt;a id="fileDownload0" tabindex="9" href="http://pspki.codeplex.com/downloads/get/463761"&gt;
PS PKI v2.0.exe&lt;/a&gt;&amp;nbsp;I ran the Import-Module PSPKI command. But I keep getting the following error,&lt;/p&gt;
&lt;p&gt;&lt;br&gt;
PS C:\Windows\system32&amp;gt; import-module PSPKI&lt;br&gt;
Write-ErrorMessage : Exception of type 'Microsoft.PowerShell.Commands.WriteErrorException' was thrown.&lt;br&gt;
At C:\Users\...\Documents\WindowsPowerShell\Modules\PSPKI\PSPKI.psm1:117 char:26&lt;br&gt;
&amp;#43; catch {Write-ErrorMessage &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;nbsp; -Source &amp;quot;CAPIUnavailable&amp;quot;}&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#43; CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : NotImplemented: (:) [Write-Error], WriteErrorException&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#43; FullyQualifiedErrorId : NotImplementedException,Write-ErrorMessage&lt;/p&gt;
&lt;p&gt;What shall I do to overcome this issue?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;/div&gt;</description><author>har77</author><pubDate>Fri, 21 Sep 2012 05:55:27 GMT</pubDate><guid isPermaLink="false">New Post: Error occured while running Import-Module PSPKI 20120921055527A</guid></item><item><title>New Post: Source Code</title><link>http://pspki.codeplex.com/discussions/390853</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Unfotunately .NET Library&amp;nbsp;sources are not yet available.&lt;/p&gt;&lt;/div&gt;</description><author>Camelot</author><pubDate>Thu, 09 Aug 2012 14:51:46 GMT</pubDate><guid isPermaLink="false">New Post: Source Code 20120809025146P</guid></item><item><title>New Post: Source Code</title><link>http://pspki.codeplex.com/discussions/390853</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Is there any source code for the underlying .NET libraries?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Andrew.&lt;/p&gt;
&lt;/div&gt;</description><author>andrewwillett</author><pubDate>Thu, 09 Aug 2012 12:39:37 GMT</pubDate><guid isPermaLink="false">New Post: Source Code 20120809123937P</guid></item></channel></rss>