Questions tagged [logonserver]
17 questions
19
votes
2 answers
The proper way of implementing user login system
I want to make a user login system for the purpose of learning. I have several questions.
I did some research and found that the proper way of implementing a user login system is to store the user name/id and the encrypted/hashed version of the…

Joey
- 2,732
- 11
- 43
- 63
3
votes
1 answer
can't logon with logonuser function with correct credentials C#
I use the impersonate mechanism to manage services on a distant machine
I can connect to that machine with my username and password on an RDP session and start/stop services manually.
I also managed to start/stop services through code using the…

amitfr
- 1,033
- 1
- 9
- 29
2
votes
7 answers
Is it possible to set a cookie for a site /server other than you own?
Here's the quick version of my question:
Is it possible to set a cookie somehow into a client's browser when the cookie is for use with a different server (in this case an Exchange mail server)? In this scenario the server trying to set the cookie…

Chain
- 597
- 2
- 8
- 24
1
vote
1 answer
Get Domain LogonServer in C#
In a command prompt I am able to get the domain logon server by typing:
echo %logonserver%
How can I get this same result in C#?

Ray Booysen
- 28,894
- 13
- 84
- 111
1
vote
1 answer
SQL Server EVENTDATA() not working from MAC SQL Pro for SQL Server
SQL Server EVENTDATA() is not working from MAC SQL Pro for SQL Server. I'm using a trigger to validate the IP address of the users that get logged in to SQL Server. This is my trigger:
CREATE TRIGGER [trLogOnCheckIP]
ON ALL SERVER WITH EXECUTE…

Francisco Goldenstein
- 13,299
- 7
- 58
- 74
0
votes
0 answers
Search user logged on host name from certain days before
List of user names were given.
Requirement: To search list of workstations where those account has been used to login during the last 15 days.
Get-WinEvent -FilterHashtable @{Logname = 'Security'; ID = 4624; StartTime = '2023-03-10'; TargetUserName…

Manas Dash
- 53
- 8
0
votes
0 answers
How combine Logon Server and Logon Domain into same field on BGInfo
I am trying to combine the Logon Server and Logon Domain fields on BGInfo so they are on the same line and have a dote to separate them, so Logon Server.Logon Domain. The script I have retrieves the Logon Domain and combines the computer name but I…

Nik
- 3
- 2
0
votes
0 answers
LsaGetLogonSessionData API returns session data without logonServer
I am using LsaGetLogonSessionData to retrieve the logonSessionData on a machine that is using AD and Kerberos in a Domain Controller as a login method.
However, the logonServer field is empty in logonSessionData. But from commandline, I'm able to…

Xifeng Zheng
- 1
- 1
0
votes
3 answers
How to get all remote logged on users with Logon Time
I wanted a simple way to get all (remote) logged on (and disconnected) users on all servers from my list.
I use the QUERY SESSION command for this purpose (as I found it to be the quickest and most reliable one). The command is called QWINSTA in my…

nikon D3400
- 61
- 2
- 10
0
votes
1 answer
Cannot connect to server after creating a logon and user
I've been having troubles in creating new users on the SQL Server. Those were the steps I took:
Connect to the server via Windows authentication
Access Security > Logons > Create Logon
Create a new Logon to use SQL Server authentication
In each…

theBotelho
- 324
- 1
- 3
- 12
0
votes
1 answer
Explain what happens when a user logs onto a website
What happens behind the scenes when a user logs on to a website. I have tried searching but couldn't found the answer. Please help!

Ruman Ahmed Rizvi
- 11
- 4
0
votes
2 answers
Return Statement not Working with continue
Update
I was able to resolve this by changing Rename-Item to Move-Item and just changing the name in the process. However, this does not solve the mystery of why the return statement was not executed, or at least if it was, why the function…

Bassie
- 9,529
- 8
- 68
- 159
0
votes
2 answers
Finding LDAP domain name on a (virtual) server
I've got some processes that require the domain name of the current LDAP provider (basically, to synchronize user info from AD).
The process prompts the user for the source LDAP server, but provides info on the default one (so one can just use the…

Christian
- 27,509
- 17
- 111
- 155
0
votes
1 answer
Vb.Net : LogonMode and StartMode of SQLEXPRESS and SQLBROWSER
Using VB.net we are suppose to change the LogonMode(Not LoginMode) and StartMode of Sql Express and Sql Browser.
What we mean is :
If(StartMode of Sql Express <> Automatic)Then
Make it Automatic
End If
If(StartMode of Sql Browser <>…

SHREE
- 53
- 1
- 8
0
votes
4 answers
Startup PowerShell script, Export-Csv not exporting LogonServer variable
I have a PC which is continuously logging in, running a script, then logging off and rebooting to repeat the process.
$StartTime = Get-Date
...
(other code here, including delay)
...
$LServer = $env:logonserver
$ShutTime = Get-Date
New-Object…

Un Known
- 179
- 1
- 3
- 15