Windows registry key change for another user


#1

Hello

I’m using the github opscode Windows cookbook (1.3.4) with Windows
bootstrapping and I want to add a registry entry for another user.

My goal is to add a Putty ssh key for another user. I tried adding the key to
HKEY_ALL_USERS and HKEY_LOCAL_MACHINE but it doesn’t work, which I learned is
on the Putty wishlist:
http://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/config-locations.html

Does Chef windows_registry resource have the ability to execute the registry
key change as a different user?

I’m assuming the answer is the powershell cookbook. Does anybody have any
suggestions?

Thanks for your time.

Eric


#2

My recollection is that the windows registry provider can do this. There is code that will load the users hive (provided they have logged in before).

Take a look at hkey_users. The provider should load the hive for the relevant user if it is not currently loaded.

On Jan 4, 2013, at 7:11 PM, “Eric Pardee” eric@atlasdigital.tv wrote:

Hello

I’m using the github opscode Windows cookbook (1.3.4) with Windows
bootstrapping and I want to add a registry entry for another user.

My goal is to add a Putty ssh key for another user. I tried adding the key to
HKEY_ALL_USERS and HKEY_LOCAL_MACHINE but it doesn’t work, which I learned is
on the Putty wishlist:
http://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/config-locations.html

Does Chef windows_registry resource have the ability to execute the registry
key change as a different user?

I’m assuming the answer is the powershell cookbook. Does anybody have any
suggestions?

Thanks for your time.

Eric


#3

Rather than work around a missing feature in Putty, you could try Kitty. It is a fork from the Putty project that addresses many of these missing features. PuTTY itself seems to still be developed, but at an extremely slow pace; the latest release is from 2011.

http://kitty.9bis.net/

-----Original message-----

From:Eric Pardee <eric@atlasdigital.tv mailto:eric@atlasdigital.tv >
Sent: Friday 4th January 2013 19:11
To: chef@lists.opscode.com mailto:chef@lists.opscode.com
Subject: [chef] Windows registry key change for another user

Hello

I’m using the github opscode Windows cookbook (1.3.4) with Windows
bootstrapping and I want to add a registry entry for another user.

My goal is to add a Putty ssh key for another user. I tried adding the key to
HKEY_ALL_USERS and HKEY_LOCAL_MACHINE but it doesn’t work, which I learned is
on the Putty wishlist:
http://www.chiark.greenend.org.uk/˜sgtatham/putty/wishlist/config-locations.html http://www.chiark.greenend.org.uk/˜sgtatham/putty/wishlist/config-locations.html

Does Chef windows_registry resource have the ability to execute the registry
key change as a different user?

I’m assuming the answer is the powershell cookbook. Does anybody have any
suggestions?

Thanks for your time.

Eric


#4

Thanks Paul, but my install is a bootstrap and the user I’m attempting
to add the registry entry for has not logged in.

On Fri, Jan 4, 2013 at 7:14 PM, Paul Morton - BIA
pmorton@biaprotect.com wrote:

My recollection is that the windows registry provider can do this. There is code that will load the users hive (provided they have logged in before).

Take a look at hkey_users. The provider should load the hive for the relevant user if it is not currently loaded.

On Jan 4, 2013, at 7:11 PM, “Eric Pardee” eric@atlasdigital.tv wrote:

Hello

I’m using the github opscode Windows cookbook (1.3.4) with Windows
bootstrapping and I want to add a registry entry for another user.

My goal is to add a Putty ssh key for another user. I tried adding the key to
HKEY_ALL_USERS and HKEY_LOCAL_MACHINE but it doesn’t work, which I learned is
on the Putty wishlist:
http://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/config-locations.html

Does Chef windows_registry resource have the ability to execute the registry
key change as a different user?

I’m assuming the answer is the powershell cookbook. Does anybody have any
suggestions?

Thanks for your time.

Eric


ERIC PARDEE
EMERGING TECHNOLOGIES ENGINEER

P: 323.878.0080 ext. 208
E: eric@atlasdigital.tv

Corporate office:
170 S. FLOWER STREET
BURBANK, CA 91502

Mailing address:
P.O. BOX 4110
BURBANK, CA 91503-4110

VISIT OUR WEBSITE:
www.atlasdigital.tv


#5

Thanks Kevin. Unfortunately Putty is the underlying technology for
another application that my environment uses so I can’t swap out Kitty
for Putty.

On Sat, Jan 5, 2013 at 1:00 AM, Kevin Keane (subscriptions)
subscription@kkeane.com wrote:

Rather than work around a missing feature in Putty, you could try Kitty. It
is a fork from the Putty project that addresses many of these missing
features. PuTTY itself seems to still be developed, but at an extremely slow
pace; the latest release is from 2011.

http://kitty.9bis.net/

-----Original message-----

From:Eric Pardee eric@atlasdigital.tv
Sent: Friday 4th January 2013 19:11
To: chef@lists.opscode.com
Subject: [chef] Windows registry key change for another user

Hello

I’m using the github opscode Windows cookbook (1.3.4) with Windows
bootstrapping and I want to add a registry entry for another user.

My goal is to add a Putty ssh key for another user. I tried adding the key
to
HKEY_ALL_USERS and HKEY_LOCAL_MACHINE but it doesn’t work, which I learned
is
on the Putty wishlist:

http://www.chiark.greenend.org.uk/˜sgtatham/putty/wishlist/config-locations.html

Does Chef windows_registry resource have the ability to execute the
registry
key change as a different user?

I’m assuming the answer is the powershell cookbook. Does anybody have any
suggestions?

Thanks for your time.

Eric


ERIC PARDEE
EMERGING TECHNOLOGIES ENGINEER

P: 323.878.0080 ext. 208
E: eric@atlasdigital.tv

Corporate office:
170 S. FLOWER STREET
BURBANK, CA 91502

Mailing address:
P.O. BOX 4110
BURBANK, CA 91503-4110

VISIT OUR WEBSITE:
www.atlasdigital.tv


#6

Hkey_users\default is a copy of the hive that will be used for all new users. You can set it there. As long as you are using local profiles new users will inherit this base registry hive.

On Jan 5, 2013, at 4:10 PM, “Eric Pardee” eric@atlasdigital.tv wrote:

Thanks Paul, but my install is a bootstrap and the user I’m attempting
to add the registry entry for has not logged in.

On Fri, Jan 4, 2013 at 7:14 PM, Paul Morton - BIA
pmorton@biaprotect.com wrote:

My recollection is that the windows registry provider can do this. There is code that will load the users hive (provided they have logged in before).

Take a look at hkey_users. The provider should load the hive for the relevant user if it is not currently loaded.

On Jan 4, 2013, at 7:11 PM, “Eric Pardee” eric@atlasdigital.tv wrote:

Hello

I’m using the github opscode Windows cookbook (1.3.4) with Windows
bootstrapping and I want to add a registry entry for another user.

My goal is to add a Putty ssh key for another user. I tried adding the key to
HKEY_ALL_USERS and HKEY_LOCAL_MACHINE but it doesn’t work, which I learned is
on the Putty wishlist:
http://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/config-locations.html

Does Chef windows_registry resource have the ability to execute the registry
key change as a different user?

I’m assuming the answer is the powershell cookbook. Does anybody have any
suggestions?

Thanks for your time.

Eric


ERIC PARDEE
EMERGING TECHNOLOGIES ENGINEER

P: 323.878.0080 ext. 208
E: eric@atlasdigital.tv

Corporate office:
170 S. FLOWER STREET
BURBANK, CA 91502

Mailing address:
P.O. BOX 4110
BURBANK, CA 91503-4110

VISIT OUR WEBSITE:
www.atlasdigital.tv


#7

Hkey_usersdefault is the way to go if you really don’t wish to give
kitty a try nor willing to use windows way to achieve that.

GPO may be
the way in this case, at worse use a logon script to insert the key
inside the user profile and have chef manage this centraly stored
script.

But relying on putty is NOT a showstopper to use kitty and its
enhanced features, kitty has really no problem to be called putty and
working like it as far as I know.

Regards,

Tensibai

Le 2013-01-06
01:15, Paul Morton - BIA a écrit :

Hkey_usersdefault is a copy of
the hive that will be used for all new users. You can set it there. As
long as you are using local profiles new users will inherit this base
registry hive.

On Jan 5, 2013, at 4:10 PM, "Eric Pardee"
eric@atlasdigital.tv wrote:

Thanks Paul, but my install is a
bootstrap and the user I’m attempting to add the registry entry for has
not logged in. On Fri, Jan 4, 2013 at 7:14 PM, Paul Morton - BIA
pmorton@biaprotect.com wrote:

My recollection is that the
windows registry provider can do this. There is code that will load the
users hive (provided they have logged in before). Take a look at
hkey_users. The provider should load the hive for the relevant user if
it is not currently loaded. On Jan 4, 2013, at 7:11 PM, "Eric Pardee"
eric@atlasdigital.tv wrote:

Hello I’m using the github
opscode Windows cookbook (1.3.4) with Windows bootstrapping and I want
to add a registry entry for another user. My goal is to add a Putty ssh
key for another user. I tried adding the key to HKEY_ALL_USERS and
HKEY_LOCAL_MACHINE but it doesn’t work, which I learned is on the Putty
wishlist:
http://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/config-locations.html
[1] Does Chef windows_registry resource have the ability to execute the
registry key change as a different user? I’m assuming the answer is the
powershell cookbook. Does anybody have any suggestions? Thanks for your
time. Eric

– ERIC PARDEE EMERGING TECHNOLOGIES ENGINEER P:
323.878.0080 ext. 208 E: eric@atlasdigital.tv Corporate office: 170 S.
FLOWER STREET BURBANK, CA 91502 Mailing address: P.O. BOX 4110 BURBANK,
CA 91503-4110 VISIT OUR WEBSITE: www.atlasdigital.tv [2]

Links:

[1]
http://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/config-locations.html
[2]
http://www.atlasdigital.tv


#8

It sounds like you are using PuTTY (or one of the companion applications) from a script? In that case, you may be able to pass all the necessary information on the command line to PuTTY, and not store it at all for each user.

-----Original message-----
From:Eric Pardee eric@atlasdigital.tv
Sent:Sat 01-05-2013 04:11 pm
Subject:[chef] Re: RE: Windows registry key change for another user
To:chef@lists.opscode.com;
Thanks Kevin. Unfortunately Putty is the underlying technology for
another application that my environment uses so I can’t swap out Kitty
for Putty.

On Sat, Jan 5, 2013 at 1:00 AM, Kevin Keane (subscriptions)
subscription@kkeane.com wrote:

Rather than work around a missing feature in Putty, you could try Kitty. It
is a fork from the Putty project that addresses many of these missing
features. PuTTY itself seems to still be developed, but at an extremely slow
pace; the latest release is from 2011.

http://kitty.9bis.net/

-----Original message-----

From:Eric Pardee eric@atlasdigital.tv
Sent: Friday 4th January 2013 19:11
To: chef@lists.opscode.com
Subject: [chef] Windows registry key change for another user

Hello

I’m using the github opscode Windows cookbook (1.3.4) with Windows
bootstrapping and I want to add a registry entry for another user.

My goal is to add a Putty ssh key for another user. I tried adding the key
to
HKEY_ALL_USERS and HKEY_LOCAL_MACHINE but it doesn’t work, which I learned
is
on the Putty wishlist:

http://www.chiark.greenend.org.uk/˜sgtatham/putty/wishlist/config-locations.html

Does Chef windows_registry resource have the ability to execute the
registry
key change as a different user?

I’m assuming the answer is the powershell cookbook. Does anybody have any
suggestions?

Thanks for your time.

Eric


ERIC PARDEE
EMERGING TECHNOLOGIES ENGINEER

P: 323.878.0080 ext. 208
E: eric@atlasdigital.tv

Corporate office:
170 S. FLOWER STREET
BURBANK, CA 91502

Mailing address:
P.O. BOX 4110
BURBANK, CA 91503-4110

VISIT OUR WEBSITE:
www.atlasdigital.tv


#9

Thanks Paul, but my install is a bootstrap and the user I’m attempting
to add the registry entry for will not log in, it’s sort of a demon
user, which the intended user will run an executable periodically by
Task Scheduler. Since this User will not log in, HKEY_USERS.DEFAULT
will not work for this environment.

On Sat, Jan 5, 2013 at 4:15 PM, Paul Morton - BIA
pmorton@biaprotect.com wrote:

Hkey_users\default is a copy of the hive that will be used for all new users. You can set it there. As long as you are using local profiles new users will inherit this base registry hive.

On Jan 5, 2013, at 4:10 PM, “Eric Pardee” eric@atlasdigital.tv wrote:

Thanks Paul, but my install is a bootstrap and the user I’m attempting
to add the registry entry for has not logged in.

On Fri, Jan 4, 2013 at 7:14 PM, Paul Morton - BIA
pmorton@biaprotect.com wrote:

My recollection is that the windows registry provider can do this. There is code that will load the users hive (provided they have logged in before).

Take a look at hkey_users. The provider should load the hive for the relevant user if it is not currently loaded.

On Jan 4, 2013, at 7:11 PM, “Eric Pardee” eric@atlasdigital.tv wrote:

Hello

I’m using the github opscode Windows cookbook (1.3.4) with Windows
bootstrapping and I want to add a registry entry for another user.

My goal is to add a Putty ssh key for another user. I tried adding the key to
HKEY_ALL_USERS and HKEY_LOCAL_MACHINE but it doesn’t work, which I learned is
on the Putty wishlist:
http://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/config-locations.html

Does Chef windows_registry resource have the ability to execute the registry
key change as a different user?

I’m assuming the answer is the powershell cookbook. Does anybody have any
suggestions?

Thanks for your time.

Eric


ERIC PARDEE
EMERGING TECHNOLOGIES ENGINEER

P: 323.878.0080 ext. 208
E: eric@atlasdigital.tv

Corporate office:
170 S. FLOWER STREET
BURBANK, CA 91502

Mailing address:
P.O. BOX 4110
BURBANK, CA 91503-4110

VISIT OUR WEBSITE:
www.atlasdigital.tv


ERIC PARDEE
EMERGING TECHNOLOGIES ENGINEER

P: 323.878.0080 ext. 208
E: eric@atlasdigital.tv

Corporate office:
170 S. FLOWER STREET
BURBANK, CA 91502

Mailing address:
P.O. BOX 4110
BURBANK, CA 91503-4110

VISIT OUR WEBSITE:
www.atlasdigital.tv