TechTalkz.com Logo

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Microsoft > Microsoft Windows Powershell

Notices

Remote registry key permissions

Microsoft Windows Powershell


Reply
 
Thread Tools Display Modes
Old 20-06-2008, 01:46 PM   #1
UC
Guest
 
Posts: n/a
Remote registry key permissions

Hi

I am wondering if there is anything that I can use to get registry
permissions using powershell of a remote server. for example, how can I get
permission of one of my remote server named server01 registry key
HKLM\Software\Microsoft ?

Any help or direction will be greatly appreciated.

UC
  Reply With Quote
Old 26-06-2008, 04:19 PM   #2
Marco Shaw [MVP]
Guest
 
Posts: n/a
Re: Remote registry key permissions

UC wrote:
> Hi
>
> I am wondering if there is anything that I can use to get registry
> permissions using powershell of a remote server. for example, how can I get
> permission of one of my remote server named server01 registry key
> HKLM\Software\Microsoft ?
>
> Any help or direction will be greatly appreciated.
>
> UC


What OS? Do you have Windows Remote Management (winrm) installed?

--
Microsoft MVP - Windows PowerShell


PowerGadgets MVP


Blog:

  Reply With Quote
Old 26-06-2008, 04:22 PM   #3
/\/\o\/\/ [MVP]
Guest
 
Posts: n/a
Re: Remote registry key permissions


$MachineName = 'server'
$reg = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey('LocalMachine',
$MachineName)
$regKey= $reg.OpenSubKey("Software\Microsoft" )
$regkey.GetAccessControl().GetAccessRules($true,$t rue,
[System.Security.Principal.NTAccount])

Enjoy,
Greetings /\/\o\/\/



"Marco Shaw [MVP]" wrote:

> UC wrote:
> > Hi
> >
> > I am wondering if there is anything that I can use to get registry
> > permissions using powershell of a remote server. for example, how can I get
> > permission of one of my remote server named server01 registry key
> > HKLM\Software\Microsoft ?
> >
> > Any help or direction will be greatly appreciated.
> >
> > UC

>
> What OS? Do you have Windows Remote Management (winrm) installed?
>
> --
> Microsoft MVP - Windows PowerShell
>
>
> PowerGadgets MVP
>
>
> Blog:
>
>

  Reply With Quote
Reply

Thread Tools
Display Modes



< Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT +5.5. The time now is 03:48 AM.


vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2009, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional