Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

Manage Network Passwords (Command Line)

- - - - -

  • Please log in to reply
14 replies to this topic

#1
subhramani

subhramani

    Subhramani

  • Member
  • Pip
  • 66 posts
  • OS:Windows 7 x64
  • Country: Country Flag

There are quite a few people who end up 'remembering' the passwords when they sign on to a web application that uses AD authentication, though they are not supposed to. So my team ends up getting tickets for the passwords to be cleared.

 

What we need to do is go to Control Panel > User Accounts > Manage Network Passwords and then remove the password that is saved.

 

I would like to know if there is any way of getting this done via command line since it would be easier for us to login via telnet and run those commands.

 

Any help would be awesome. Thanks in advance.


Regards,
Subhramani
Headbangers India


How to remove advertisement from MSFN

#2
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,197 posts
  • OS:none specified
  • Country: Country Flag

Login via telnet to WHAT? :unsure:

I mean is the *whatever* you login via telnet running XP?

Have you tried using the 2003 (or later) cmdkey?

http://ss64.com/nt/cmdkey.html

http://andyparkes.co...ommands-cmdkey/

http://www.markwilso...sing-cmdkey.htm

possibly through psexec:

http://technet.micro...s/bb897553.aspx

 

jaclaz



#3
subhramani

subhramani

    Subhramani

  • Member
  • Pip
  • 66 posts
  • OS:Windows 7 x64
  • Country: Country Flag

LOL, sorry. 

 

We have loads of computers that run on Windows XP Embedded. They are used by 'customers' to access several applications. A few applications are just web pages over the intranet which uses AD authentication.

 

These people, when they access the webpage, are prompted to enter their domain credentials. They also end up checking the box to remember the passwords though they aren't supposed to since there are other people who login to the same page with their own credentials.

 

The group policy denies them access to almost everything. So they cant even see the desktop. Just an interface with a list of applications they can click to access.

 

Hence, we log on to those computers and delete the passwords manually using the method I mentioned in the original post.

 

cmdkey is the exactly what I need, but unfortunately doesn't work on Windows XP machines. I cant use psexec either since the command doesn't exist. I wanted to know if there is a cmdkey equivalent for XP.


Edited by subhramani, 20 March 2014 - 05:21 AM.

Regards,
Subhramani
Headbangers India

#4
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,197 posts
  • OS:none specified
  • Country: Country Flag

No.

The tool is included in Server 2003 or later (but the server 2003 version works in XP).

Psexec is free use.

 

But now that the problem is clearer:

 

 

 

These people, when they access the webpage, are prompted to enter their domain credentials. They also end up checking the box to remember the passwords though they aren't supposed to since there are other people who login to the same page with their own credentials.

 

there could be other solutions/workarounds.

 

Maybe you can edit that dialog box/msg window/whatever, removing in there the possibility to save the password.

 

Or (maybe) you can deny access to the key (in the Registry) to which that information is saved.

 

Or more simply you could take advantage of provisions of the OS. :whistle:

 

What happens with this? :unsure:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Lsa]
"disabledomaincreds"=dword:00000001

And/or with this:

http://blogs.technet...36234=57#dfsvpn

http://technet.micro...y/jj852185.aspx

 

jaclaz



#5
subhramani

subhramani

    Subhramani

  • Member
  • Pip
  • 66 posts
  • OS:Windows 7 x64
  • Country: Country Flag

Dayum. Ok.

 

And nope... I unfortunately will not be able to make any changes to the computers like adding/removing registry keys or files as we have over 14,000 computers across our estate. Making even a small change will need a "Change" raised and run I have to around for approvals etc (which I am sure I will not get). Pain in the a**.

 

s*** situation, right? :D


Regards,
Subhramani
Headbangers India

#6
submix8c

submix8c

    Inconceivable!

  • Patrons
  • 4,247 posts
  • OS:none specified
  • Country: Country Flag

Not sure I get this - why wouldn't management approve a Change Request of this (seeming) importance (High Priority)? Even in the "slow as molasses" government environment it didn't take that much effort (yes, I have been there/done that), maybe one day or less. Put in the request, walk it through, "push" the fix (instead of going to each computer) one time at logon. You ARE an Administrator (Domain?), right?

 

IOW, if it's broke (and it certainly sounds like), fix it ASAP...


Someday the tyrants will be unthroned... Jason "Jay" Chasteen; RIP, bro!

Posted Image


#7
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,197 posts
  • OS:none specified
  • Country: Country Flag

As a side note, if a "team" in charge of support/maintenance of 14,000 PC's cannot manage to:

  • find about (documented) cmdkey
  • find about (documented) Group Policies
  • do any of the above (or be authorized to do that)

I have difficulties in calling it a "support team" (particularly for such a large userbase).

 

Reality check.

When you "telnet" manually into a remote computer, and run the Control Panel/Users thingy (which BTW you can access more directly through "rundll32.exe keymgr.dll, KRShowKeyMgr") what you are actually doing is to use a GUI tool to write (or modify) a binary file "Credentials" residing in \Documents and Settings\<User Name>\Application Data\Microsoft\Credentials\<User SID>, see:

http://www.nirsoft.n...d_recovery.html

so it is not in any way different from changing a binary file (one of the Registry hives) BEFORE, to avoid the need to connect to the PC at all.

 

As a matter of fact every time anyone accesses a remote computer via "telnet" or other remote administration tool, this represents a serious security (and/or privacy) matter.

 

jaclaz



#8
Yzöwl

Yzöwl

    Wise Owl

  • Super Moderator
  • 4,531 posts
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

I must admit that for an administrator of a company with a $115 billion turnover it does strike me as a little odd that your knowledge relating to this subject is so lacking.



#9
subhramani

subhramani

    Subhramani

  • Member
  • Pip
  • 66 posts
  • OS:Windows 7 x64
  • Country: Country Flag

Yup, exactly why I am here to ask questions and learn. Why the heck would I come here if I knew everything? If there was an issue answering, you need not have even answered. You had to Google to know where I work to reply? LOL.


Regards,
Subhramani
Headbangers India

#10
submix8c

submix8c

    Inconceivable!

  • Patrons
  • 4,247 posts
  • OS:none specified
  • Country: Country Flag

Back to post #6 - you do realize you're wasting a lot of time? You could have already gotten the approval by now.


Someday the tyrants will be unthroned... Jason "Jay" Chasteen; RIP, bro!

Posted Image


#11
subhramani

subhramani

    Subhramani

  • Member
  • Pip
  • 66 posts
  • OS:Windows 7 x64
  • Country: Country Flag

I don't have a deadline. I am trying to make my own work easier. I don't have to explain which team deals with what and why I am in this situation. I asked you a technical question and you are talking about my work place and what they are supposed to do. Was that necessary? Who wasted time?


Regards,
Subhramani
Headbangers India

#12
submix8c

submix8c

    Inconceivable!

  • Patrons
  • 4,247 posts
  • OS:none specified
  • Country: Country Flag

No deadline, then this shouldn't be a problem -

 

Making even a small change will need a "Change" raised and run I have to around for approvals etc (which I am sure I will not get).

It appears to be a "problem" that should get approval. Again, back to post#6, which followed post#4. The solution and a potential method of distribution. We ARE talking Client PC's on a Domain, aren't we?

 

edit - this seems to be a problem you requested help with before.

http://www.msfn.org/...authentication/

...and here you appear to have access to Windows Server 2003 (cmdkey) -

http://www.msfn.org/...dpost&p=1035032


Edited by submix8c, 23 March 2014 - 12:13 AM.

Someday the tyrants will be unthroned... Jason "Jay" Chasteen; RIP, bro!

Posted Image


#13
subhramani

subhramani

    Subhramani

  • Member
  • Pip
  • 66 posts
  • OS:Windows 7 x64
  • Country: Country Flag

No. They are not a part of any domains. The policies are applied using a local script. I can't access even the admin shares of those computers from a central servers and psexec will not connect to those servers. But I can access shared folders in a central server from those computers. I use psexec on a daily basis so I know what that is, but cmdkey was something new because I never had to utilize it before.

 

Since psexec cannot connect to those computers, I canNOT have a copy of cmdkey in a network share to run it. These computers are quite complicated and I have just started supporting these, so I dont know what works and what doesnt. Truth.

 

Edit: About the links you have mentioned to my previous post:

 

The first one about ASP, I was fighting with the same application team asking them to create a proper 'Logoff' option instead of just a javascript to close the browser window when they click on 'Close' link. I wasnt sure where the passwords would get saved for a page that uses AD authentication. If it was an external website, it would store a cookie, so deleting them would be easier, but this one isnt. So that post was for me to understand where the passwords would get saved. Ideally, THAT application team are the ones who are supposed to fix it.


Edited by subhramani, 23 March 2014 - 02:51 AM.

Regards,
Subhramani
Headbangers India

#14
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,197 posts
  • OS:none specified
  • Country: Country Flag

Well what happens if you deploy cmdkey to the target machine and run it remotely from the machine itself? :unsure:

 

Still, it seems to me foolish to wait for the issue to happen and repair the problem as opposed to preventing the issue to happen at all. 

 

I have no idea about (and I am actually not at all interested in the details of) the management procedures that you have on that site/whatever, but I have rarely seen someone proposing a no or little cost enhancement capable of preventing the creation of a "support ticket" having it denied/not approved.

You see, usually nooone actually cares about what the IT/support people do :w00t:, but if a "support ticket" is created, it means that there is an alteration in the workflow of the people that actually work to produce something (or that are supposed to do that), i.e. it means "saved money" or "less downtime" for the company.

 

In any case, you asked about your problem, not one but three possible solutions were proposed for you to test, sorry if none can be - for whatever reason - be tested/used in your environment.

 

jaclaz



#15
subhramani

subhramani

    Subhramani

  • Member
  • Pip
  • 66 posts
  • OS:Windows 7 x64
  • Country: Country Flag

Yes, there is a little work that needs to be done before I can use the solution(s) mentioned above for them to work, but I'm going to try them out asap. Many thanks for your help.


Edited by subhramani, 24 March 2014 - 03:19 AM.

Regards,
Subhramani
Headbangers India




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN