Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista Tutorial - How to grant credential to install a SnapIn ?

Reply
 
Old 08-10-2007   #1 (permalink)
Joannes Vermorel
Guest


 
 

How to grant credential to install a SnapIn ?

As a part of a continuous integration process, I would like to be able
to install and load a custom snapin into PowerShell. Yet, when I try
to do the "installutil" operation from the "integration" account on a
Win2k3 box, I get the error message pasted below.

Does anyone what I should to to authorize the installutil operation?

Thanks in advance,
Joannès
http://www.lokad.com sales forecasting

System.UnauthorizedAccessException: Access to the registry key
'HKEY_LOCAL_MACHINE\Software\Microsoft\PowerShell\1\Power
ShellSnapIns\FooSnapIn' is denied.

The Rollback phase of the installation is beginning.
See the contents of the log file for the C:\integration\foo.dll
l assembly's progress.
The file is located at .
Rolling back assembly 'C:\integration\foo.dll'.
Affected parameters are:
logtoconsole =
assemblypath = C:\integration\foo.dll
logfile =
An exception occurred during the Rollback phase of the FooSnapIn
installer.
System.UnauthorizedAccessException: Access to the registry key
'HKEY_LOCAL_MACHINE\Software\Microsoft\PowerShell\1\Power
ShellSnapIns' is denied.
An exception occurred during the Rollback phase of the installation.
This exception will be ignored and the rollback will continue.
However, the machine might not fully revert to its initial state after
the rollback is complete.

The Rollback phase completed successfully.

The transacted install has completed.
The installation failed, and the rollback has been performed.


My System SpecsSystem Spec
Old 08-10-2007   #2 (permalink)
John Vottero
Guest


 
 

Re: How to grant credential to install a SnapIn ?

> "Joannes Vermorel" <joannes.vermorel@gmail.com> wrote in message
> news:1186753430.837120.28320@d30g2000prg.googlegroups.com...
> As a part of a continuous integration process, I would like to be able
> to install and load a custom snapin into PowerShell. Yet, when I try
> to do the "installutil" operation from the "integration" account on a
> Win2k3 box, I get the error message pasted below.
>
>Does anyone what I should to to authorize the installutil operation?


Adjust the Security ACL on the
HKEY_LOCAL_MACHINE\Software\Microsoft\PowerShell\1\Power
ShellSnapIns\FooSnapIn Registry key to grant "Full Control" access to the
integration account.



My System SpecsSystem Spec
Old 08-10-2007   #3 (permalink)
Joannes Vermorel
Guest


 
 

Re: How to grant credential to install a SnapIn ?

Thanks, it solved the problem.

Joannès

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Solved I am in a loop trying to grant myself permission General Discussion
Grant power users installation privileges? System Security
why won't it grant me access Vista account administration
Grant permission using ICACLS Vista file management
grant or deny this application permission to use this key prompt Vista security


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46