TechTalkz.com Logo

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

Notices

Reply
 
LinkBack 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
http://www.microsoft.com/mvp

PowerGadgets MVP
http://www.powergadgets.com/mvp

Blog:
http://marcoshaw.blogspot.com
  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\/\/
http://thePowerShellGuy.com


"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
> http://www.microsoft.com/mvp
>
> PowerGadgets MVP
> http://www.powergadgets.com/mvp
>
> Blog:
> http://marcoshaw.blogspot.com
>

  Reply With Quote
Reply

Thread Tools
Display Modes


Google
 


All times are GMT +5.5. The time now is 05:04 PM.


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