# Login script weirdness

**URL:** <https://forums.suse.com/t/login-script-weirdness/26129>\
**Category:** Chatting over the Back Fence\
**Created:** [September 25, 2014, 1:41am UTC](https://forums.suse.com/t/login-script-weirdness/26129 "2014-09-25T01:41:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![System1](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@System1](https://forums.suse.com/u/System1)\
**Post date:** [September 25, 2014, 1:41am UTC](https://forums.suse.com/t/login-script-weirdness/26129/1 "2014-09-25T01:41:12Z")

</div>

Anyone know why a login script (in a.d.) that has worked for months and  
months would up and not process completely now?

It’s merging a .reg (setting a default printer) entry into the HKCU  
portion of the registry, and like I said, it’s worked for a long time,  
just recently quit working properly.

If I try to merge the .reg into the registry manually, I get an error  
“Cannot access the registry”.

Weird thing is, if I manually change the default printer, then try to  
merge that entry, it works just fine.

–  
Stevo

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [September 25, 2014, 1:52am UTC](https://forums.suse.com/t/login-script-weirdness/26129/2 "2014-09-25T01:52:59Z")

</div>

\On 09/24/2014 04:41 PM, Stevo wrote:[color=blue]

> Anyone know why a login script (in a.d.) that has worked for months and  
> months would up and not process completely now?[/color]

Because something changed. What changed?  
[color=blue]

> It’s merging a .reg (setting a default printer) entry into the HKCU  
> portion of the registry, and like I said, it’s worked for a long time,  
> just recently quit working properly.[/color]

When what changed?  
[color=blue]

> If I try to merge the .reg into the registry manually, I get an error  
> “Cannot access the registry”.[/color]

This seems like a good clue. You would seem to lack rights to the  
registry. Your user isn’t powerful, or UAC is “helping” you, or other  
ACLs in the registry are stopping you from being productive.  
[color=blue]

> Weird thing is, if I manually change the default printer, then try to  
> merge that entry, it works just fine.[/color]

It is afe to assume that this registry-hacking file plays with printing  
somehow? If so, I’m guessing in-registry ACLs are causing you the problem.

–  
Good luck.

If you find this post helpful and are logged into the web interface,  
show your appreciation and click on the star below…

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [September 25, 2014, 3:14am UTC](https://forums.suse.com/t/login-script-weirdness/26129/3 "2014-09-25T03:14:11Z")

</div>

Stevo wrote:  
[color=blue]

> Anyone know why a login script (in a.d.) that has worked for months  
> and months would up and not process completely now?[/color]

Because it’s AD? 🙂

–  
Does this washcloth smell like chloroform?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [September 25, 2014, 5:15pm UTC](https://forums.suse.com/t/login-script-weirdness/26129/4 "2014-09-25T17:15:56Z")

</div>

ab sounds like they ‘said’:  
[color=blue]

> Because something changed. What changed?[/color]

Only change was combining two working batch files into one.

[color=blue]

> This seems like a good clue. You would seem to lack rights to the  
> registry. Your user isn’t powerful, or UAC is “helping” you, or other  
> ACLs in the registry are stopping you from being productive.[/color]

UAC is off, user logging in is a local admin.  
[color=blue]

> It is afe to assume that this registry-hacking file plays with  
> printing somehow? If so, I’m guessing in-registry ACLs are causing  
> you the problem.[/color]

I’m curious why this would cause a problem for a couple VMs in this  
pool, but others work just fine.

–  
Stevo

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [September 25, 2014, 5:16pm UTC](https://forums.suse.com/t/login-script-weirdness/26129/5 "2014-09-25T17:16:20Z")

</div>

Joseph Marton sounds like they ‘said’:  
[color=blue]

> Because it’s AD? :-)[/color]

So my response to Joseph’s comment is…

That’s what I believe

–  
Stevo
