Windows 10: The cmdkey utility does not display a list of credentials in the context of group policy

Discus and support The cmdkey utility does not display a list of credentials in the context of group policy in Windows 10 Software and Apps to solve the problem; I ran into this problem: my work uses a bat script that cleans user information from the credential manager. When running the script on behalf of the... Discussion in 'Windows 10 Software and Apps' started by Jack_Brown_254, Nov 5, 2024.

  1. The cmdkey utility does not display a list of credentials in the context of group policy


    I ran into this problem: my work uses a bat script that cleans user information from the credential manager. When running the script on behalf of the user on the local computer, everything works as intended, but when running in group policy on a PC located in the domain, the script does not work. The problem is that in the second case, the script does not find the user credentials that should be output when using the "cmdkey /list" command. The situation has been tested in different scenarios and the script does not work only in group policy, the output to the command line reports that the cre

    :)
     
    Jack_Brown_254, Nov 5, 2024
    #1

  2. Function of cmdkey /list

    Hi Uppada,

    To begin with, I would like to inform that the command line cmdkey /list is used to create, lists, and deletes stored user names and passwords or credentials.

    In order to block access for the same, I recommend that you change your user account password.

    Hope this helps

    Regards
     
    Vanessa Sohtun, Nov 5, 2024
    #2
  3. Scheduled tasks run with elevated privileges can't access stored Windows credentials

    It seems that after Creators update scheduled tasks run with elevated privileges ('run with highest privileges' option) can't access stored Windows credentials. Is that a bug or an intentional change and is there a recommended workaround?

    Here's one way to reproduce the behaviour:

    • Start Credential Manger and add some Windows share credentials.
    • In a console window type 'cmdkey /list', which should list the added credentials
    • Create a task in a task manager:
      • Trigger: on user logon
      • Action: run cmd.exe
      • Tick the 'run with highest privileges' option
    • Reboot the machine and log in
    • In the console window (let's call it 'console 1') opened from the scheduled task type 'cmdkey /list'. This most likely won't display the credentials added in step 1 and properly listed in step 2. ->
      This looks like a bug
    • Now, without closing 'console 1' open another console window as an administrator (let's call it 'console 2') and type 'cmdkey /list'. This will properly list credentials added in step 1.
    • Switch to 'console 1' and type 'cmdkey /list' again. This time the credentials are listed properly, unlike in step 5. It looks like an access to Windows credentials was somehow 'unlocked' by step 6.
     
    MarcinMrowiec, Nov 5, 2024
    #3
  4. The cmdkey utility does not display a list of credentials in the context of group policy

    Function of cmdkey /list

    a person used "cmdkey /list" and now accessing my pc...how can i get rid of it

    Original Title: cmd prompt
     
    Uppada Vishnu, Nov 5, 2024
    #4
Thema:

The cmdkey utility does not display a list of credentials in the context of group policy

Loading...
  1. The cmdkey utility does not display a list of credentials in the context of group policy - Similar Threads - cmdkey utility does

  2. The cmdkey utility does not display a list of credentials in the context of group policy

    in AntiVirus, Firewalls and System Security
    The cmdkey utility does not display a list of credentials in the context of group policy: I ran into this problem: my work uses a bat script that cleans user information from the credential manager. When running the script on behalf of the user on the local computer, everything works as intended, but when running in group policy on a PC located in the domain, the...
  3. The cmdkey utility does not display a list of credentials in the context of group policy

    in Windows 10 Gaming
    The cmdkey utility does not display a list of credentials in the context of group policy: I ran into this problem: my work uses a bat script that cleans user information from the credential manager. When running the script on behalf of the user on the local computer, everything works as intended, but when running in group policy on a PC located in the domain, the...
  4. group policy

    in Windows 10 Gaming
    group policy: Not run edit group policy.msc https://answers.microsoft.com/en-us/windows/forum/all/group-policy/ebcb26df-8243-4a75-ba90-bf27ce8c3b90
  5. group policy

    in Windows 10 Software and Apps
    group policy: Not run edit group policy.msc https://answers.microsoft.com/en-us/windows/forum/all/group-policy/ebcb26df-8243-4a75-ba90-bf27ce8c3b90
  6. Wireless Network 802.11 Policies not listed in Group Policy Editor

    in Windows 10 Network and Sharing
    Wireless Network 802.11 Policies not listed in Group Policy Editor: I am in the process of trying to get Miracast working. I understand this is a fairly common issue for computers that were upgraded from Windows 7 to Windows 10. One of the articles that I'm following is recommending that I make a change in the Wireless Network 802.11 Policies...
  7. Group Policy

    in Windows 10 Customization
    Group Policy: Hello, I am trying to update/alter a group policy for my work network (20,000 endpoints) remotely through a distribution platform (BigFix). When I have tried to change GP through the registry it gets overwritten. What would be the easiest way to change GP on all endpoints...
  8. Group Policy and the Apps List

    in Windows 10 Customization
    Group Policy and the Apps List: I am working on a Windows 2012 R2 server that is the DC for my network. The employees all use Windows 10 machines governed by Group Policy. We restrict what they see in their Start Menu as well as what is in their apps list. We updated a few computers to see how they would...
  9. Group Policy

    in Windows 10 Support
    Group Policy: Hello. I have just had a virus that disabled My Firewall through Group edit. Problem is, I don't have group edit. With the store being broken, its bad. Any suggestions. 43965
  10. Does Group Policy not work in 9879?

    in Windows 10 Support
    Does Group Policy not work in 9879?: I am currently having an issue with OneDrive using all my bandwidth when syncing large files. As in, if I were to turn syncing on right now, I wouldn't be able to load a single webpage. I don't know if its mostly a OneDrive issue, or maybe an ISP issue, but the solution I...