Windows Powershell


hi

i had downloaded sample titled "pswsrolebasedplugins" url http://code.msdn.microsoft.com/windowsdesktop/pswsrolebasedplugins-9c79b75a , followed instructions outlined in sample regard powershell , visual studio 2012 rc

my environment

server : windows server 2012 rc datacenter

when enter command set-executionpolicy -executionpolicy unrestricted

i below message

set-executionpolicy : windows powershell updated execution policy successfully, setting overridden policy defined @ more specific scope.  due
override, shell retain current effective execution policy of remotesigned. type "get-executionpolicy -list" view execution policy settings.
more information please see "get-help set-executionpolicy".
@ line:1 char:1
+ set-executionpolicy -executionpolicy unrestricted
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + categoryinfo          : permissiondenied: (:) [set-executionpolicy], securityexception
    + fullyqualifiederrorid : executionpolicyoverride,microsoft.powershell.commands.setexecutionpolicycommand

the message in red letters meaning of message , how resolve

i run "installmodata.ps1" sample

i build appropriate dlls ( debug , release ) using visual studio 2012 rc

and @ powershell prompt when type "setupendpoint.ps1" below error message again in red color

error: custom plugin assembly .\microsoft.samples.management.odata.rolebasedplugins.dll not found. please either put in current folder or build sample (so
can picked bin folder)
@ d:\pswsrolebasedplugins sample\c#\setup\setupendpoint.ps1:20 char:13
+             throw "error: custom plugin assembly $assemblyname not found. please ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + categoryinfo          : operationstopped: (error: custom p...rom bin folder):string) [], runtimeexception
    + fullyqualifiederrorid : error: custom plugin assembly .\microsoft.samples.management.odata.rolebasedplugins.dll not found. please either put in current fol
   der or build sample (so can picked bin folder)

can guide me going wrong?

regards,

srinivasan


srinivasansaripalli

hi,

there 2 links refer to, please go through them more information:

set-executionpolicy : windows powershell updated execution policy successfully, setting overridden policy defined @ more specific scope!!!

http://blogs.msdn.com/b/pasen/archive/2011/12/07/set-executionpolicy-windows-powershell-updated-your-execution-policy-successfully-but-the-setting-is-overridden-by-a-policy-defined-at-a-more-specific-scope.aspx

issues configuring powershell executionpolicy via group policy

http://blog.whatsupduck.net/2010/09/issues-with-configuring-powershell.html

regards,

yan li


yan li

technet community support



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

DCOM received error "2147746132" from...

DFSR RPC replication errors 5014 1726 with large files over VPN

ADFS 3.0 Event ID 4625 | An Error occurred During Logon | Status: 0xC000035B