0
是否有可能将此博客代码从控制台应用程序转换为PowerShell?如果是的话,怎么样?控制台应用程序到Powershell for SharePoint om
http://digsharepoint.blogspot.com/2011/11/retrieving-credentials-from-secure.html
是否有可能将此博客代码从控制台应用程序转换为PowerShell?如果是的话,怎么样?控制台应用程序到Powershell for SharePoint om
http://digsharepoint.blogspot.com/2011/11/retrieving-credentials-from-secure.html
你为什么不只是创建一个类库DLL使用完全相同的代码,只是使用
#Load assemblies (needed for SharePoint Server)
[void][System.Reflection.Assembly]::LoadWithPartialName("YourDllNameSpace")
加载这个DLL你的PowerShell这将在GAC加载,但你可以还指定LoadFile和DLL的路径。
请参阅this发布了解更多信息。
希望它能帮助,
安德鲁