speckled Posted March 23, 2017 Posted March 23, 2017 I need to edit a value of a registry key using powershell as part of my sccm windows build task sequence, the problem is I get an access denied message when I run the script: New-PSDrive -Name HKCR -PSProvider Registry -Root HKEY_CLASSES_ROOT Set-ItemProperty -path 'HKCR:\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\ShellFolder\' -name Attributes -value b0940064 Set-ItemProperty -path 'HKLM:\SOFTWARE\Wow6432Node\Classes\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\ShellFolder\' -name Attributes -value b0940064 It turns out I need to set the permission on the key first as I cant change it manually either, can any powershell heroes out there help me out? Cheers
HPlum78 Posted March 24, 2017 Posted March 24, 2017 New-PSDrive has the -Credential, could you not leverage this to get you the correct permissions
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now