Browsing articles tagged with "registry - Admins Goodies"
Sep 1, 2012
tom

Powershell Registry value to be used as variable

I am looking on how to return one value from the registry. I only want the AGENTGUID value from this command. $reg=reg query “\\$computer\HKLM\SOFTWARE\Wow6432Node\Network Associates\ePolicy Orchestrator\Agent” /v Agentguid $reg will return this as one line. I only need {F789B761-81BE-4357-830B-368B5B3CF5E5} HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Network Associates\ePolicy Orchestrator\Agent Aentguid REG_SZ {F789B761-81BE-4357-830B-368B5B3CF5E5} Asked by CWL I’d forget shelling out to REG.EXE and use native PowerShell commands (in this instance, you need a bit of .NET magic): function getAgentGUID() { param( [String] $computername […]

Continue Reading »
May 23, 2012
tom

Sending DHCP specific vendor options to a Windows server

My goal is send some information (url and a one-time token) to a windows machine. It’s working fine for GNU/Linux servers because I get the information from /var/lib/dhcp/dhcp.lease or similar. This is my setup: dhcp server (GNU/Linux server): host windows { dynamic; hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 10.70.10.107; supersede vendor-encapsulated-options “http://URL/TOKEN”; } The only way I found to get this information on the windows server is on the registry. As I added here, under HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\Tcpip\Parameters\Interfaces{ID} you […]

Continue Reading »
May 17, 2012
tom

Can I use group policy to set the permissions on registry keys?

I know that I can use group policy preferences to set registry key values on a Windows 7 computer. But is it possible to apply registry key permissions using group policy? Note: I’ve seen this post about writing scripts using SubInAcl but was trying to find a way to use a group policy without a script. Asked by Shannon Wagner Yes; from the Group Policy Object Editor, expand Computer Configuration > Windows Settings > Security […]

Continue Reading »
Mar 15, 2012
tom

users unable to add registry keys to HKCU

I may not have this 100% correct so need some clarification. Are normal users on a 2003 terminal server allowed to add registry keys the their own HKCU section in the registry, or are they only allowed to edit existing ones? The reason I ask is that we have 3 keys that we need to add for each user on login. I thought it would be as simple as having a straightforward batchscript run that […]

Continue Reading »
Mar 8, 2012
tom

Is there a maximum size for the registry’s data item?

I’m trying to edit a registry entry on a Windows Server 2008 R2 server and on all entries when you right click on the name and select modify it allows you to edit the Data field. One entry, however, has a lot of data and when I try to edit it the dialog shows no data. (In the list view and programatically I can pull the data from the field, however RegEdit does not appear […]

Continue Reading »
Jan 23, 2012
tom

Resizing desktop icons across a domain

We’re in the process of trying to change the desktops icons on all our client machines to the “Classic View” size. Microsoft says there’s no way to do this on Server 2008 R2 using GPO/GPP. We’re hoping if we can find the right registry key, we’ll be able to push that change out to the thin clients in the field when they log in. Otherwise we have to make the changes to the profiles and […]

Continue Reading »
Jan 20, 2012
tom

Removing/hiding the option to “safely remove USB devices” via GPO and registry

I ave already gone through http://serverfault.com/questions/12833/how-to-prevent-windows-from-safely-removing-hardware and it has a registry based solution for WinXP, however what I am after is: 1. a GPO based solution 2. windows 7, 2003 and 2008 as well thanks UPD: tried [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesMYDEVICE] “DisableRemovable”=dword:00000001 doesn’t work for me Asked by dyasny Tried removing though GPO and other ways, apparently the driver itself simply blovks anything the registry sets. Spoken to the driver developer, and he’s going to apply some changes. […]

Continue Reading »
Dec 27, 2011
tom

2008 r2 member server cannot enable admin auto logon

I am automating a set of procedures to configure several servers. These procedures include several reboots. To solve this in pre 2008 builds we set the reg keys HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionWinlogonDefaultUserName = “username” HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionWinlogonDefaultPassword = “password HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionWinlogonAutoAdminLogon = 1 HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionWinlogonAutoLogonCount = 1 From everything I read this still holds true for 2008. When I use this when the server is standalone, it works fine. But after I join it to a domain it […]

Continue Reading »
Dec 6, 2011
tom

How can I automate pulling files via putty’s psftp?

I have a Windows Server 2003 box and it is using psftp to connect to a remote linux machine and download files every hour. I have two main challenges with this machine: First Scheduled tasks are currently set to run as a user on this box, which I believe requires storing the user’s password in the task scheduler. However when the user’s password changes the task fails to run. I’d like to have this task […]

Continue Reading »
Oct 19, 2011
tom

Is it possible to reset FTDI virtual com ports enumeration, we easily get hundreds of COM ports in production environment

When producing devices that use a FTDI USB to serial chip to communicate with a Windows host, we get hundreds of COM-ports, since Windows seems to just increase the port number each time a new FTDI vid+pid+serial is connected to the PC. I have looked into HKEY_LOCAL_MACHINESYSTEMControlSet001EnumFTDIBUS and tried deleting the new entries that appear, but the only effect is that the COM port number is increased even for devices with the same vid+pid+serial (i.e. […]

Continue Reading »
Pages:1234567»