Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I had a task today to add a new Code Group to my PC, using mscorcfg.msc. Having recently learned how to use Powershell, I thought, how can I do the same thing using Powershell (everything looks like a nail when you have a new hammer).
Despite doing a number of different web searches, I haven't yet uncovered any means for getting Powershell to look at the Code Access Policy.
Can anyone suggest a way to do so?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

The command line way to add code groups is via caspol.exe. Powershell can of course be used to invoke this as well as be used to create XML files for import into CASPOL.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.