Modify Registry Key in PowerShell

I am trying to create a script to change a registry key or import a key into multiple computers. This is what I have but it is not working....this is what I have 
$computer = Get-Content -path c:\computers.txt
foreach ($computer in $computer) {
Set- -cn $computer -ScriptBlock New-Item -Path HKLM:\SOFTWARE\Citrix\ICA Client\Engine\Lockdown Profiles\All Regions\Lockdown\Virtual Channels\Seamless Windows -Name DeferredUpdateMode -Value False -Type String
Thanks in advance!

You need to use an explicit ScriptBlock:
$sb={
New-Item -Path 'HKLM:\SOFTWARE\Citrix\ICA Client\Engine\Lockdown Profiles\All Regions\Lockdown\Virtual Channels\Seamless Windows' -Name DeferredUpdateMode -Value False -Type String
$computer = Get-Content -path c:\computers.txt
foreach($computer in $computer){
Invoke-Command -cn $computer -ScriptBlock $sb
It would be best to do this with Group Policy.  It would be consistent and  automatic.
¯\_(ツ)_/¯

Similar Messages

  • Update registry key in Powershell

    Hi
    I want to loop through a bunch of registry keys in powershell. In one of the keys there's a value I want to change.
    I thought this would work and just return an error for all the keys where the values didn't exist
    get-childitem
    "hklm:\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}"
    | foreach {set-itemproperty
    -path $_
    -name 'ChangeMe'
    -value '22'}
    However I'm getting this errors for all the keys even where the value exists.
    set-itemproperty : Cannot find path 'C:\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0009' because it does not exist.
    I've tinkered with Set-Location but it doesn't seem to make much difference. How can I transfer the path of the subkey to Set-itemProperty
    Cheers
    Alex

    actually it is not mapped drive, it is more like registry object. 
    for example:
    set-location HKLM:\
    get-childitem "hklm:\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}" | foreach {set-itemproperty -path $_ -name 'ChangeMe' -value '22'}
    will add new property ChangeMe with value 22 to every item in this path:
    hklm:\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}
    Imposible is nothing

  • Where can I find the reference for modifying registry key for acrobat reader

    I am a Web Developer and I need to limit the option the user may choose in acrobat reader plugin.
    I doubt if there is option to configure in Windows Registry on HKCU\Software\Adobe\Acrobat Reader\9.0\PrefsDialog.
    Anyone know where I can find the reference for those registry key?
    I have downloaded sdk91_v2_win.zip file but I cannot find any reference.

    Refer to this:
    Direct Download Links for Adobe Software
    Mylenium

  • Modify / Add registry keys through GPO

    Hi
    How can we add / modify registry key through GPO (we are using Windows 2003 AD). Our requirement is to add / modify below key
    HKEY LOCAL MACHINE\Software\Microsoft\Ole , Name: EnableDCOM, Type: REG_SZ, Data: Y
    Thanks in advance 
    LMS

    Hi,
    In addition to the above suggestions, Registry GPP is another alternative method to achieve your goal.
    You do not need to upgrade to Windows Server 2008 or Windows Server 2008 R2 to use Group Policy Preference policies. You can configure a Group
    Policy preference item in a Windows Server 2003 environment from either a Windows Server 2008/R2 server or a Windows Vista with Service Pack 1/Windows 7 client with RSAT update installed. If you do not have Windows Server 2008/R2 server, you can download
    and install Remote Server Administration Tools on a Windows Vista or Windows 7 client to manage and configure them.
    Microsoft Remote Server Administration Tools for Windows Vista 
    http://www.microsoft.com/downloads/details.aspx?FamilyId=9FF6E897-23CE-4A36-B7FC-D52065DE9960&displaylang=en
    Remote Server Administration Tools for Windows 7 
    http://www.microsoft.com/downloads/details.aspx?FamilyID=7D2F6AD7-656B-4313-A005-4E344E43997D&displaylang=en
    The CSEs for the new Group Policy preference functionality are required in Windows XP Service Pack 2 (SP2), Windows Server 2003 Service Pack 1 (SP1), and Windows Vista to process the new preference items. To download and install CSEs, please refer to the following
    link:
    Information about new Group Policy preferences in Windows Server 2008
    http://support.microsoft.com/kb/943729
    Regards,
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • How to get registry key lastwritetime using batch/powershell

    Hello,
    I want to get a registry key's LastWriteTime using batch/powershell.  These are what i have tried..
    1. Launch regedit and manually export the key using the UI, this gives me the lastwritetime, but I need a commandline version of this.  regedit /e only exports the key and value data.
    2. dir HKLM:\software\mykey
    nothing returned
    3. Get-ChildItem HKLM:\software\mykey |  Select-Object *
    nothing returned
    4. Get-ItemProperty HKLM:\software\mykey | Select-Object *
    LastWriteTime not returned; other values are returned
    5. (Get-Item HKLM:\software\mykey).LastWriteTime
    Nothing is returned
    Is the only way to do this by using pinvoke with RegQueryInfoKey? 
    Thanks in advance
    ss883r

    The
    .zip on the repository will still work for version 2. Basically, you'll get a definition for a function called 'Add-RegKeyMember'. You can dot source the provided script, or you can copy the function definition into your own script. You would use it like
    this:
    # Using Get-Item:
    PS> Get-Item HKLM:\SOFTWARE | Add-RegKeyMember | select Name, LastWriteTime, ClassName  
    # Using Get-ChildItem:
    PS> Get-ChildItem HKLM:\SOFTWARE | Add-RegKeyMember | select Name, LastWriteTime, ClassName  
    # Passing a path:
    PS> Add-RegKeyMember HKLM:\SOFTWARE | select Name, LastWriteTime, ClassName
    There's also a proxy function for Get-ChildItem that will automatically add the property anytime you use Get-ChildItem (dir, ls, gci) on a registry path. The PSv3 only method I was talking about simply updates the type data to automatically call the function
    on any RegistryKey object. You can actually set version 2 up to do that, but it requires an XML file.

  • Can ZEN look for registry keys and modify them?

    I found some registry keys I need to change. But they are in the HK_USERS
    section of the registry which will be different on every PC. Can I make ZEN
    search for the key name and change it fi found?
    [HKEY_USERS\S-1-5-21-2238441965-2819776847-193749584-1006\Software\Novell\GroupWise\Address
    Book - User Interface\RFQ Options]
    "Auto Delete Enabled"="Yes"
    "Save Received from Internal"="No"
    "Save Sent to Internal"="No"
    "Auto Delete - Amount"=dword:00000001
    "Auto Delete - Units"="Weeks"
    [HKEY_USERS\S-1-5-21-2238441965-2819776847-193749584-1006\Software\Novell\GroupWise\Address
    Book - User Interface\Search Books]
    @="Selected List, Manual RFQ"
    "AB.4E6F76656C6C47576162703139393500.Novell GroupWise Address
    Book"=dword:00000000
    "AB.0081D836918BCE1187EB00805FB4B2BE.Frequent Contacts"=dword:00000001

    Robin Witkop-Staub,
    > I found some registry keys I need to change. But they are in the HK_USERS
    > section of the registry which will be different on every PC. Can I make ZEN
    > search for the key name and change it fi found?
    But they should be the same for CURRENT_USER. Ie HKEY_USERS is just all users'
    keys.
    - Anders Gustafsson, Engineer, CNE6, ASE
    NSC Volunteer Sysop
    Pedago, The Aaland Islands (N60 E20)
    Novell does not monitor these forums officially.
    Enhancement requests for all Novell products may be made at
    http://support.novell.com/enhancement
    Using VA 5.51 build 315 on Windows 2000 build 2195

  • How do I identify the latest file modifications, application install, and registry key modification for Security Forensics.... using GP Audit for registry/file system

    Hello,
    Title pretty much states it all. I initially set out (as part of a Security Forensics initiative) to identify the most recently installed applications, modified files, and registry key changes using PowerShell. I attempted to pull this information and sort
    them by date installed/last modified, but it was brought to my attention this information isn't always present and can be modified - so it's not accurate.
    At that time it was suggested we use Group Policy auditing for Registry and File System -  but I'm not sure how I'm going to use/pull these in PowerShell? This will be used on remote host all over the world so local physical access isn't an option.
    My question is:
    Once Group Policy Auditing for Registry and File System has been enabled, how would I go about pulling those audit logs for review once a system has been identified as compromised? I'm brand new to this GP Auditing (we have a separate team for that) so feel
    free to take it from the beginning. :)
    Thanks in advance!

    Hi,
    Here are a few suggestions for you:
    Ensure Remote Registry service is started on local and remote machines.
    Add the – Credential option and supply administrative credentials within the command.
    More information for you:
    Get-Eventlog doesn't work against Vista/W7 clients
    https://social.technet.microsoft.com/Forums/en-US/c5185a01-b0d2-49a7-9aa7-52e6534ada04/geteventlog-doesnt-work-against-vistaw7-clients?forum=winserverpowershell
    PowerShell - How to Get XML EventData - Remote Eventlogs - Exchange Events
    https://social.technet.microsoft.com/Forums/scriptcenter/en-US/382b10c9-d740-46b1-b81c-b24de911eb14/powershell-how-to-get-xml-eventdata-remote-eventlogs-exchange-events-?forum=ITCG
    Powershell script to gather failed logon attempts by event id and type from the security events log
    https://social.technet.microsoft.com/Forums/scriptcenter/es-ES/00a62492-c63a-4c8b-92f9-1cc857223a00/powershell-script-to-gather-failed-logon-attempts-by-event-id-and-type-from-the-security-events-log?forum=ITCG
    Best Regards,
    Amy
    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • SharePoint 2010 with SQL Reporting Services 2012 "Installation Error: Could not find SOFTWARE\Microsoft\Microsoft SQL Server\110 registry key"

    i have a small sharepoint farm "2 servers" (WFE) and SQL Server 2012 ,
    i installed rsSharePoint for reporting services , as a read the Reporting services is Application Service  with SQL 2012 not as SQL 2008 R2 with SharePoint integrated mode, so after installation when am trying to configure the  SQL Server
    Reporting Services Application services i got the below error :
    "Installation Error: Could not find SOFTWARE\Microsoft\Microsoft SQL Server\110 registry key"
    any kind of help would be much appreciated .

    I'm having the same issue, but to me it seems like the instructions I've seen are all over the place.  I already have SP 2013 and SQL 2012 SP 1 installed.  I already added the features for Reporting Services - Sharepoint and Reporting Services
    Add-in for SharePoint Products.  I didn't see the Reporting Service service in CA, so I ran the powershell scripts to add SPRSService and SPRSServiceProxy. 
    My initial quest, was to get the BI features enabled, which took me on the journey of adding the Report Services, then I got the error.
    Then when I read this about installing the BI features
    http://blogs.msdn.com/b/querysimon/archive/2012/11/26/installing-the-bi-features-of-sharepoint-2013.aspx, which I already had SQL and SP installed.  Do I have to rerun and selct the SQL Server PowerPoint for SharePoint option?  I have the PowerPoint
    Configuration Tool on my SQL server, I run it and I get PowerPivot for SP 2013 Configuranoi is missing prerequisits:  SP 2013 EE is required.  Which I have EE.
    Is Reporting Services different or in addition to the BI Feature (PowerPivot)? 
    Have I missed a step?
    Thanks for you help.
    Kim
    Kim.Williams

  • Exchange BPA Errors (Exchange server is a virtual machine but the additional tools are not installed and The 'Services' string type value located in 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\v14\Setup\Services' registry key is missing)

    Hi,
    I am running BPA on My Exchange 2010 VM (Server 2008 R2 VM on Hyper-V) and get the following errors:
    The 'Services' string type value located in 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\v14\Setup\Services' registry key is missing or inaccessible. The Microsoft Exchange Information Store service won't start. As a result, all services that depend
    on this service won't be able to start
    Exchange server [Exchange Server FQDN] is a virtual machine but the additional tools are not installed. This configuration is not supported. Install Virtual Machine Additions for this guest.
    Problem is that, for the first, that Key exists and the service is actually running fine. And for the second my VM tools are already installed.
    Hopefully someone out there has had the same issue and can assist.
    Pete

    Hi Pete,
    For the first error message, please try the following steps:
    Make sure the Information Store service is in Starting status,
    Automatic startup type and works well, as a test we can try to
    restart the Infroamtion Store service and verify the service works well.
    Start
    Registry Editor, find the registry key “Services” under “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\v14\Setup”, its value is “C:\Program
    files\Microsoft\Exchange Server\v14”(default install location), please check your registry, make sure the key “Services” exist and value is the Exchange Server install location and the
    location is accessible;
    Start
    Registry Editor, and locate the following registry key:
    HKEY_LOCAL_MACHINE\Software\Microsoft\Exchange\Setup
    Use the
    Permission option under the Security tab to check the permission setting on this key. Make sure
    System is in the list with Full Control permissions if the service account is Local System. If you are not using Local System as the service account, check the existence of the corresponding account in the list and ensure that
    it has Full Control permissions. Please refer to this article:
    Title: Exchange Store Does Not Start: Errors 7024, 1026, 9542, and 5000
    Link:
    http://support.microsoft.com/kb/285116
    Start
    ADSI Edit, and then browse to the following location:
    Domain.com/Configuration/Services/Microsoft Exchange/Org/Administrative Groups/AdminGroup/Servers/Server Name
    Right-click the
    server name, and then click Properties.
    Click the
    Security tab, make sure this own server’s server object have
    full control permission on its own server.
    If not or the object is missing, please modify the permission or click
    Add, locate the computer account for the Exchange Server computer, add it to the Permissions list with full control.
    Click OK, and then close ADSI Edit.
    Use
    Active Directory Users and Computers to add the current affected
    Exchange Server computer account to the Exchange Servers(previous version should be “Exchange Domain Servers”) group in the
    Microsoft Exchange Security Groups( or Users) OU. Refer to this article:
    http://support.microsoft.com/kb/297295.
    Restart the Exchange Server computer, then rerun the ExBPA.
    For the second error message, Microsoft don’t recommend to install Exchange Server on virtual machine without additional tools, so the error message occurs. We can just ignore
    this message, it will not affect the Exchange servers.
    Regards, Eric Zou

  • Reportings Services in a 2-Tier Architecture / (Installation Error: Could not find SOFTWARE\Microsoft\Microsoft SQL Server\110 registry key. )

    Hello,
    we want to install Reporting Services in a 2-Tier Architecture. The Servers are the following:
    SERVER1: Windows Server 2012 and SQL Server 2012
    SERVER2: SharePoint 2013 (WFE)
    Reporting Server is installed on SERVER1 and running. On SERVER2 the registration of the service through Powershell was done but it does not start. An Error when starting the Service on the server occurs with the message:
    "Installation Error: Could not find SOFTWARE\Microsoft\Microsoft SQL Server\110 registry key."
    I have found the following in msdn stating that a minimal of the same SharePoint Installation must exist on the Reporting Server. The article is for SQL Server 2008 R2 and SharePoint 2010. Is this the case also for SQL Server 2012 and SharePoint 2013 and
    the root of the problem? http://msdn.microsoft.com/en-us/library/bb510781%28v=sql.105%29.aspx
    If so does this mean that I require for the installation another License?!?!
    Thank you in advance!

    Hi,
    According to your post, my understanding is that you wanted to install Reporting Services in a 2-Tier Architecture.
    As the article
    say, if you use Two-Computer Deployment, the first computer hosts an instance of a SharePoint product. The Reporting Services Add-in is installed on this computer. The second computer hosts SQL Server Reporting Services and the Database Engine.
    The steps to install in a  two-tier environment are very similar to a standalone environment hence you can go to refer to the ' Install Reporting Services SharePoint Mode for SharePoint 2013' article at http://msdn.microsoft.com/en-us/library/jj219068(v=sql.110).aspx
    To install in a  two-tier environment, you can refer to:
    How to setup, configure and test
    SQL 2012 SP1 SSRS with SharePoint 2013 SP1
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Adobe Reader registry keys gone when upgrading to 9.1; Need help finding

    I had a couple of registry values disappear after the install of 9.1
    Disable JavaScriopt in Adobe:
    HKCU\Software\adobe\Acrobat Reader\9.0\JSPrefs  (I can no longer find this key)
    "bEnableJS"dword:00000000
    Disable the displaying of pdf documents in web browser
    HKCU\Software\adobe\Acrobat Reader\9.0\Originals (I can no longer find this key)
    "BrowserIntergration"=dword0000000
    I am fully aware of finding the options that turn on/off the options above through the adobe  edit > preferences> Javascript and Internet options.  However I want to make a script that makes these changes. I no longer know the path to these key values.
    I tried a file comparison between current and and modified registry to see if I could pin-point those paths I mentioned above.  They do not exist to my knowledge unless Adobe renamed the keys.
    Has anyone else ran into the same problem?

    Strange, not showing up in 9.1.0.  Guess I need to update to 9.1.1 first and see...
    Thanks

  • How to disable Quick Time in registry key?

    My organization with windows 7, server 2003 and server 2008 and have install Apple Quick Time Player 7.74.80.86 for over 100,000 machines. Can you advice any registry key to disable auto update so that I can use PowerShell Script push to all the machines?

    But when I swipe down RIGHT when I get a text message, the notification tells me to reply right away. I don't want that. Is there a way to turn off this feature?

  • Permission to registry key

    When I try:
    Set PDFForm = CreateObject("AFormAut.App")
    I get this error:
    The machine-default permission settings do not grant Local Activation permission for the COM Server application with CLSID
    {7CD069A1-50AA-11D1-B8F0-00A0C9259304}
    and APPID Unavailable to the user NT AUTHORITY\IUSR SID (S-1-5-17) from address LocalHost (Using LRPC). This security permission can be modified using the Component Services administrative tool.
    But in Component Services there is no an object with such GUID. How can I open permission to registry key?

    What version and product is in use?
    Is this on a normal workstation with a logged in user running the app, and Acrobat visible to the user?

  • Take ownership of a registry key, and change permissions

    Hello,
    I am writing a powershell script to configure a W2008-R2 Server. In one of the steps, I need to take ownership of an existing registry key, and then give full control permissions to the administrators.
    I have done this:
    $acl = Get-Acl $key
    $me = [System.Security.Principal.NTAccount]"$env:userdomain\$env:username"
    $acl.SetOwner($me)
    $person = [System.Security.Principal.NTAccount]"Administrators"
    $access = [System.Security.AccessControl.RegistryRights]"FullControl"
    $inheritance = [System.Security.AccessControl.InheritanceFlags]"None"
    $propagation = [System.Security.AccessControl.PropagationFlags]"None"
    $type = [System.Security.AccessControl.AccessControlType]"Allow"
    $rule = New-Object System.Security.AccessControl.RegistryAccessRule($person,$access,$inheritance,$propagation,$type)
    $acl.AddAccessRule($rule)
    Set-Acl $key $acl
    But it fails in "set-acl" command, with the message "Set-Acl : Requested registry access is not allowed."
    Any ideas of how to do this? or if it is even possible?
    Thank you!

    Here is the code to take ownership of a registry key.  You first need to set the SeTakeOwnership permission on your process
    The enable-privilege function is taken from a posting by Lee Holmes (http://www.leeholmes.com/blog/2010/09/24/adjusting-token-privileges-in-powershell/), but
    I've been meaning to get around to tidy it up a bit for my purposes.  Perhaps this thread is the motivation I need to do this.  I should also note that the PowerShell Community Extensions has cmdlets to work with tokens already.  
    I also never tested whether you can do the PowerShell native methods of get-acl set-acl if you set the token.  I don't have time to play with that now, but if you want to try it and let us know if it works that would be great.  The opensubkey method
    I'm using I've documented here for changing permissions when you don't have permissions: http://powertoe.wordpress.com/2010/08/28/controlling-registry-acl-permissions-with-powershell/
    function enable-privilege {
    param(
    ## The privilege to adjust. This set is taken from
    ## http://msdn.microsoft.com/en-us/library/bb530716(VS.85).aspx
    [ValidateSet(
    "SeAssignPrimaryTokenPrivilege", "SeAuditPrivilege", "SeBackupPrivilege",
    "SeChangeNotifyPrivilege", "SeCreateGlobalPrivilege", "SeCreatePagefilePrivilege",
    "SeCreatePermanentPrivilege", "SeCreateSymbolicLinkPrivilege", "SeCreateTokenPrivilege",
    "SeDebugPrivilege", "SeEnableDelegationPrivilege", "SeImpersonatePrivilege", "SeIncreaseBasePriorityPrivilege",
    "SeIncreaseQuotaPrivilege", "SeIncreaseWorkingSetPrivilege", "SeLoadDriverPrivilege",
    "SeLockMemoryPrivilege", "SeMachineAccountPrivilege", "SeManageVolumePrivilege",
    "SeProfileSingleProcessPrivilege", "SeRelabelPrivilege", "SeRemoteShutdownPrivilege",
    "SeRestorePrivilege", "SeSecurityPrivilege", "SeShutdownPrivilege", "SeSyncAgentPrivilege",
    "SeSystemEnvironmentPrivilege", "SeSystemProfilePrivilege", "SeSystemtimePrivilege",
    "SeTakeOwnershipPrivilege", "SeTcbPrivilege", "SeTimeZonePrivilege", "SeTrustedCredManAccessPrivilege",
    "SeUndockPrivilege", "SeUnsolicitedInputPrivilege")]
    $Privilege,
    ## The process on which to adjust the privilege. Defaults to the current process.
    $ProcessId = $pid,
    ## Switch to disable the privilege, rather than enable it.
    [Switch] $Disable
    ## Taken from P/Invoke.NET with minor adjustments.
    $definition = @'
    using System;
    using System.Runtime.InteropServices;
    public class AdjPriv
    [DllImport("advapi32.dll", ExactSpelling = true, SetLastError = true)]
    internal static extern bool AdjustTokenPrivileges(IntPtr htok, bool disall,
    ref TokPriv1Luid newst, int len, IntPtr prev, IntPtr relen);
    [DllImport("advapi32.dll", ExactSpelling = true, SetLastError = true)]
    internal static extern bool OpenProcessToken(IntPtr h, int acc, ref IntPtr phtok);
    [DllImport("advapi32.dll", SetLastError = true)]
    internal static extern bool LookupPrivilegeValue(string host, string name, ref long pluid);
    [StructLayout(LayoutKind.Sequential, Pack = 1)]
    internal struct TokPriv1Luid
    public int Count;
    public long Luid;
    public int Attr;
    internal const int SE_PRIVILEGE_ENABLED = 0x00000002;
    internal const int SE_PRIVILEGE_DISABLED = 0x00000000;
    internal const int TOKEN_QUERY = 0x00000008;
    internal const int TOKEN_ADJUST_PRIVILEGES = 0x00000020;
    public static bool EnablePrivilege(long processHandle, string privilege, bool disable)
    bool retVal;
    TokPriv1Luid tp;
    IntPtr hproc = new IntPtr(processHandle);
    IntPtr htok = IntPtr.Zero;
    retVal = OpenProcessToken(hproc, TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, ref htok);
    tp.Count = 1;
    tp.Luid = 0;
    if(disable)
    tp.Attr = SE_PRIVILEGE_DISABLED;
    else
    tp.Attr = SE_PRIVILEGE_ENABLED;
    retVal = LookupPrivilegeValue(null, privilege, ref tp.Luid);
    retVal = AdjustTokenPrivileges(htok, false, ref tp, 0, IntPtr.Zero, IntPtr.Zero);
    return retVal;
    $processHandle = (Get-Process -id $ProcessId).Handle
    $type = Add-Type $definition -PassThru
    $type[0]::EnablePrivilege($processHandle, $Privilege, $Disable)
    enable-privilege SeTakeOwnershipPrivilege
    $key = [Microsoft.Win32.Registry]::LocalMachine.OpenSubKey("SOFTWARE\powertoe",[Microsoft.Win32.RegistryKeyPermissionCheck]::ReadWriteSubTree,[System.Security.AccessControl.RegistryRights]::takeownership)
    $acl = $key.GetAccessControl()
    $me = [System.Security.Principal.NTAccount]"t-alien\tome"
    $acl.SetOwner($me)
    $key.SetAccessControl($acl)
    http://twitter.com/toenuff
    write-host ((0..56)|%{if (($_+1)%3 -eq 0){[char][int]("116111101110117102102064103109097105108046099111109"[($_-2)..$_] -join "")}}) -separator ""

  • Adding Registry Keys To Code

    Is there any way of having code to create a registry key into the JAVA Script instead of when the program is installed, having it outside. I have heard in other languages that you can create a registry key within a few liens of code, is it also possible in JAVA?
    Example of another language:
    <registrySet>
    <key>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
    Control\Session Manager\Environment</key>
    <name>MY_APPDIR</name>
    <value>${installed}</value>
    </registrySet>

    Hi,
    You could add your own custom information to the custom alert fields of the alert.
    For more information, please review the link below:
    Updating custom alert fields using subscriptions and powershell
    http://blogs.msdn.com/b/steverac/archive/2010/08/17/updating-custom-alert-fields-using-subscriptions-and-powershell.aspx
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

Maybe you are looking for

  • Difference between Primary Key and Unique+Not NUll

    Hi Guys, Is there any difference the column being declared as primary key or unique+NOT NULL. Please let me know the internal and application point of view. Thanks in advance! Ranjan

  • Java application in portal

    hi, Need to bring j2ee application to portal environment. can i bring it in the first hand? if so how can i do it? Regards, Bob

  • Migrate assistance / Mail application Problems

    Hello, I bought a new Macbook Pro Lion, after I powered the mac, went to utilities app to use migrate assistant app to install my time capsule back up. Because I used the same name of the home folder whenI first booted the mac, it asked me to open a

  • RPE Error on redeploy of Process Flow

    I receive the following error when I try to redeploy a Process Flow in OWB. The default behavior is "replace" I don't have Workflow Monitor installed. How do I stop the previous running process. "RPE-02062: ItemType PROCESS1 cannot be dropped as it h

  • Find user who has locked

    Hi All, Some times when we are using the SAP system it show that a particular object has been locked . My question is , Is there any way to find that who has locked the data i.e. can we get the computer name or some other info from which the user can