Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agent Log Path not connecting #143

Closed
mitch053 opened this issue Nov 21, 2019 · 11 comments
Closed

Agent Log Path not connecting #143

mitch053 opened this issue Nov 21, 2019 · 11 comments
Assignees
Labels
Milestone

Comments

@mitch053
Copy link

I am running 1.0.5.5. Seems that when I try to connect to the Agent Log Path, or CCMSetup Path, or Cache Path, I does not connect to the folder on the remote client. Instead brings up my local documents folder. This has always worked in the past, I think it stopped with 1.0.5.5. I use an account under connection options which has admin rights on all clients and I have no problem connecting to the client. Just when trying to get to the logs it seems like it may be using my logged on credentials instead of the account in connection options. I can get to the logs fine using the old 2.0.4.2 version of client center. Everything else in the 1.0.5.5 version seems to be working fine. I can connect, force client actions, etc. Just can't bring up the remote client logs.

@rzander
Copy link
Owner

rzander commented Nov 22, 2019

Just tested it with V1,0,5,5 and it's working here...
If you click on the magnifying glass button, do you get the path like:
image
The Path does come from a Reg-Key on the remote client:

 (Get-ItemProperty("HKLM:\SOFTWARE\Microsoft\SMS\Client\Configuration\Client Properties")).$("Local SMS Path")

Does this Key exists ? Does your User have the rights to access C$ or Admin$ on the remote client ?

@mitch053
Copy link
Author

mitch053 commented Nov 22, 2019 via email

@rzander
Copy link
Owner

rzander commented Nov 22, 2019

Need some more Information to reproduce:

  • are you using stored credentials ?
  • are you running ClientCenter as another user ?
  • are you using the MSIX/Store Version ?

@mitch053
Copy link
Author

mitch053 commented Nov 22, 2019 via email

@theaquamarine
Copy link
Contributor

Possibly the issue is CustomTools_Explorer.xaml.cs Appears to not have the ConnectIPC bit from Explorer.xaml.cs?

@rzander
Copy link
Owner

rzander commented Nov 22, 2019

Correct, but it will not be able to connect because username and password where missing...
connectIPC requires Username and password in plain text :-(

        internal int connectIPC(string Hostname, string UserName, string Password)
        {
            NETRESOURCE ConnInf = new NETRESOURCE();
            ConnInf.dwType = RESOURCETYPE_ANY;
            ConnInf.RemoteName = @"\\" + Hostname;
            IntPtr hWnd = IntPtr.Zero;
            return WNetAddConnection3(hWnd, ref ConnInf, Password, UserName, 0);
        }

@rzander
Copy link
Owner

rzander commented Dec 26, 2019

Fixed with c7dd3a4

@rzander rzander closed this as completed Dec 26, 2019
@mitch053
Copy link
Author

Hi. Will this fix be incorporated into a new release? the latest release available 1.0.5.5 does not have this fix.

@rzander rzander added this to the V1.0.6.1 milestone Jan 18, 2020
@rzander rzander self-assigned this Jan 18, 2020
@rzander rzander added the bug label Jan 18, 2020
@mitch053
Copy link
Author

mitch053 commented Feb 6, 2020

Hi, I just tried V1.0.6.1 but Fix#143 is still behaving the same way as before. I launch the tool with my standard user account which does not have rights to the SCCM clients. I populate the connection options with an account and password that does have administrative rights on clients. I can connect to the clients and do anything in the tool. I can even look a a log using the log monitoring feature. When I click the magnifying glass next to agent log path it returns the correct value "C:\Windows\CCM\Logs". But when attempting to connect it hangs for a while then shows me my own documents folder. If I try launching the tool with run as different user and use an account that has admin rights on the clients, all functions in the tool still work correctly. But if I try to connect to the agent log path, in this instance it will prompt me for credentials. I can successfully connect to the agent log path using the old 2.4 version of the tool.

@rzander
Copy link
Owner

rzander commented Feb 12, 2020

I agree, there was an Issue with the preview... Just published an updated Version. Let me know if it's working...

@mitch053
Copy link
Author

Yes, that did work. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants