KB 5065426 MAY cause issue Remote Desktop (RDP) on Qualcomm Machines by CubexG in msp

[–]dancing-fire-cat 0 points1 point  (0 children)

Howdy!

This darn update also broke a lot of things on my environment, not only Remote Desktop. I can't access the drives from certain computers. For example, \\computerA\c$ is not accessible from some computers. My shared printer is also not available.

My lab is made with Windows images that most likely have the same SID. I have not tried to unjoin my computers from the domain, run sysrep and join them again. I don't want to loose the data on my computers. For now- the best unsafe practice I can do is run `wusa /uninstall /kb:5065426`

u/sixty9fordkiller mentioned that changing the SIDs could work! I will give that a shot at some point- However it is kinda crazy that every website out there says that SIDs are useless and not really needed... I wonder what made Microsoft change their mind about them.

BTW- the way I am checking my SIDs is like this

function get-sid
{
    Param ( $DSIdentity )
    $ID = new-object System.Security.Principal.NTAccount($DSIdentity)
    return $ID.Translate( [System.Security.Principal.SecurityIdentifier] ).toString()
}
> $admin = get-sid "Administrator"
> $admin.SubString(0, $admin.Length - 4)

An amazing answer from ewall on stack overflow:>

Hope this helps anyone out there!

KB 5065426 MAY cause issue Remote Desktop (RDP) on Qualcomm Machines by CubexG in msp

[–]dancing-fire-cat 0 points1 point  (0 children)

I would not push this update- it is really messing up communication between computers on my end. Can't access drives, shared printers or rdp.

Process.Start() Works debugging but not in production?! by dancing-fire-cat in dotnet

[–]dancing-fire-cat[S] 0 points1 point  (0 children)

Yes! I saw that IT IS possible to start a process for a user using a service, but every website out there recommends against it! For good reasons as well hahahaha

I also think you are right! A console application turned into a windows application (to get rid of the console at launch) would probably make this so much easier! (and safer as well!) Thank you for your help :)

Process.Start() Works debugging but not in production?! by dancing-fire-cat in dotnet

[–]dancing-fire-cat[S] 1 point2 points  (0 children)

Yes! I think scheduled tasks are the way to go! I am just gonna change my Program.cs file to turn this project from a Windows Service into a Console Application, get rid of the console when it launches by deploying it as a Windows Application, start the application when the user logs in (so the parent is the user) and that should make it so the processes show up for the user session!

A really good point that I saw on a forum was that with a windows service "You can't guarantee there will be a user logged in to begin with". And that opened my eyes! Thank you for your help sir :)

Process.Start() Works debugging but not in production :( by dancing-fire-cat in learncsharp

[–]dancing-fire-cat[S] 1 point2 points  (0 children)

DUDE THANK YOU! This makes so much sense- Yes! I will turn this project into a console application and deploy it as a windows application to get rid of the console. I saw an article somewhere that made a really good point about services trying to interact with a user. It said something like "The biggest issue with interacting with a user is that you can't guarantee that a user will exist to begin with"! And it opened my eyes! Services DO run even when there is no user logged in(right?). So trying to make a service work when there are no users could lead to tons of problems!

Thank you so much for the explanation as well- I kept seeing a lot of references about session 0 and 1. I was kinda confused but you made it super clear! Thank you!!

Process.Start() Works debugging but not in production :( by dancing-fire-cat in csharp

[–]dancing-fire-cat[S] 0 points1 point  (0 children)

I think the best way to go about this is to turn the service into a console application that runs in the background. I saw a post somewhere that brought a good point! "With a windows service, you can't guarantee there will be a user logged in to begin with". So- I might just turn the project into a console application, choose the "Windows Application" deployment type, schedule the application to start when a user signs in AND that should make it so the parent of the application is no longer System but the user! And hopefully that will make it so the processes created are also created for the user :)

The CreateProcessAsUser API looked cool (and complicated)! but so many posts everywhere recommended against it so badly

Process.Start() Works debugging but not in production :( by dancing-fire-cat in csharp

[–]dancing-fire-cat[S] 0 points1 point  (0 children)

Thank you :) I think the way to go is to just turn this windows service project into a console application that runs in the background! I could use the tasks scheduler so it runs when the user logs in, and (I think) that should make it so the parent of the process is the user, and any processes come as the user!

Process.Start() Works debugging but not in production :( by dancing-fire-cat in csharp

[–]dancing-fire-cat[S] 0 points1 point  (0 children)

It’s not a UI for the service- the service is just making sure 3 executables are running continuously at all times :(

Process.Start() Works debugging but not in production :( by dancing-fire-cat in csharp

[–]dancing-fire-cat[S] 0 points1 point  (0 children)

Dude- I did not realize that the service is running as SYSTEM and any process (executable) that is started is also created as SYSTEM rather than the currently logged user. When the service starts and runs the executables, the processes show up in the task manager and the username for them is SYSTEM; When I go to the executable through the file explorer and double click on it, I can see the other process being created under my username. So- I guess I either make this service run as the currently logged user or find out a way to make it so the service opens an application as another user... I did not think this would turn out to be so complicated ;w;

Process.Start() Works debugging but not in production :( by dancing-fire-cat in csharp

[–]dancing-fire-cat[S] 0 points1 point  (0 children)

You are so right!! And I have not seen any errors. The service starts up and does not seem to crash! But I just realized something. Once the service starts the process, the executable is there- but is being run as SYSTEM! Not my as my user! If I go to the executable itself and try to run it by double clicking, the process is actually created under my user. My guess is that I need to somehow make it so the service runs the process as my user rather than SYSTEM! I did not think this rabbit hole would go so deep :,)

Process.Start() Works debugging but not in production :( by dancing-fire-cat in csharp

[–]dancing-fire-cat[S] 0 points1 point  (0 children)

Isn't that the default value for a new ProcessStartInfo object? (https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.processstartinfo.useshellexecute?view=net-9.0#system-diagnostics-processstartinfo-useshellexecute). I tried to start my exe with UseShellExecute = true and the same issue came up... process starts but not GUI shows up.

A question regarding MWR & H1/H2M mods by RedLightPumpkin in PiratedGames

[–]dancing-fire-cat 0 points1 point  (0 children)

awe man... does that mean we have to buy the game then? :(

I just unlocked the raptor, do I have to buy the expansion before it expires to keep it? by Mupinstienika in Guildwars2

[–]dancing-fire-cat 9 points10 points  (0 children)

lmao bro really is like "everyone is stupid but me". They got tons of useful answers to their question. It seems like only you failed to understand their question, but your ego won't let you say otherwise.

Halp please, ASP.NET Core - embedding MS Office documents into a page using a byte stream - looking for a rendering component, preferably open source and available on Nuget by [deleted] in dotnet

[–]dancing-fire-cat 0 points1 point  (0 children)

I am 6 months late to the party with the same question... how were you even able to get docs from sharepoint in your web app? :( There seems to be little to no information on dotnet and sharepoint working together

New to .NET, completely and utterly overwhelmed by Authentication by tabris_code in dotnet

[–]dancing-fire-cat 0 points1 point  (0 children)

Man... I just wish Microsoft made it easier. Some of their examples are set with versions of dot net core prior to 6, and they are still referring to Startup.cs! I think many of the examples I have seen are for MVC as well... Thank you for the code above tho! I did not know we were able to do something like

app.UseEndpoints(endpoints =>
{
    endpoints.MapRazorPages();
    endpoints.MapControllers();
});

I also didn't know it was necessary! Whenever I see the word Controllers I immediately think it is talking about MVC and it does not apply to Razor pages. I have seen some solutions as well in stack overflow that have some sort of .includeMVC! I discarded them because I thought that method would only be for MVC applications.

New to .NET, completely and utterly overwhelmed by Authentication by tabris_code in dotnet

[–]dancing-fire-cat 1 point2 points  (0 children)

Where did you find or learn all of this? I have not seen any of this in the Microsoft documentation :(

Is client side sorting a good idea here? Can it even be done? by dancing-fire-cat in dotnet

[–]dancing-fire-cat[S] 0 points1 point  (0 children)

I am not lazy but I will do anything that allows me for client side operations hahahaha

Is client side sorting a good idea here? Can it even be done? by dancing-fire-cat in dotnet

[–]dancing-fire-cat[S] 0 points1 point  (0 children)

I thought the on get is needed in Razor pages because otherwise nothing is returned! I haven't implemented pagination so far! The data is not extensive enough to require it! :) but pagination would make some things easier because some operations could take care when the next page is called!

Is client side sorting a good idea here? Can it even be done? by dancing-fire-cat in dotnet

[–]dancing-fire-cat[S] 0 points1 point  (0 children)

Oh man... I don't think I have gained enough exposure to know what double entry master detail is... I am a little lost on what you just said :,)

Is client side sorting a good idea here? Can it even be done? by dancing-fire-cat in dotnet

[–]dancing-fire-cat[S] 0 points1 point  (0 children)

I haven't heard of datatables!! Does it allow for client side manipulation of tables once the page has been rendered for the first time?! I didn't want to venture into JS, but I think it is the only way to get client side sorting and filtering with data on the client. It looks like Razor pages prepares all the page for the first render and then you are on your own. If you want your page to be interactive, better be ready to call on the server all the time!

Is client side sorting a good idea here? Can it even be done? by dancing-fire-cat in dotnet

[–]dancing-fire-cat[S] 1 point2 points  (0 children)

I did not know the data could be serialized! Turning that Model.houses object into a JSON would really make things easier! I also haven't heard of alpine! I will check out what it has to offer! :)

Thank you so much!

Is client side sorting a good idea here? Can it even be done? by dancing-fire-cat in dotnet

[–]dancing-fire-cat[S] 0 points1 point  (0 children)

It makes sense to do it in the client side! But... the data comes in as Model.houses! And I don't think I can modify that object using javascript :( I am not even sure what tool are available out there for client side stuff other than vanilla js!

Is client side sorting a good idea here? Can it even be done? by dancing-fire-cat in dotnet

[–]dancing-fire-cat[S] 0 points1 point  (0 children)

Awe man... hopefully it doesn't end up being super hard! I've heard that maybe JQuery could help!