|
You should call the Local Security Authority functions to assign privileges to a user (I don't think there is a .net interface, so you're stuck with C++)
http://msdn.microsoft.com/en-us/library/ms721863(v=VS.85).aspx[^]
the user calling this function must of course be part of the administrators group.
Note that if the computer is in a domain, these privileges will probably be reset periodically (overwritten by the domain security policy, talk to your admin). Also if the computer is in a domain, changing the system time might impair the user's access to resources (the Kerberos security tokens have limited time validity, and must be renewed. Kerberos relies on all machines being synchronized to check the token validity).
|
|
|
|
|
Oh, and BTW, there's a gui to this stuff:
just run run secpol.msc on the box where you want to assign the privilege. The "change system time" privilege is under
Local Policies
--UserRights Assignments
----Change the system time
Same restrictions apply: in a domain this will get overwritten by the domain security policy. Talk to your admin if you want to change this on the domain level.
|
|
|
|
|
Hi All,
I have a user that has forgot there Mailbox password. We are running Exchange Server 2007 on a MS Windows 2008 server and our DC is also running MS Windows 2008.
Please let me know how I can reset the users password. I can't see how to do it via the Exchange Management Console, is there a way? Maybe a command I can run in the Exhcnage Management Shell?
Thanks,
Mel
|
|
|
|
|
I'm assuming the user was set up in exchange and active directory. Usually the mailbox password is the same as the user's windows logon. Hince, if the computer he is using is on the domain and the network, he should be able to get his email, unless for some reason he is locked out in active directory. If he's off the domain and trying to access it through outlook anywhere or OWA it should still be his user and pass for logging onto windows.
Zach
|
|
|
|
|
There is no way of running Exchange 2007 outside of a domain (Exchange gets it's users from the active directory). Just ask the Domain admin(s) to reset the account password.
|
|
|
|
|
Thanks for your reply guys.
I simply got the user to close Outlook and reopen it again and the user was automatically logged back in. He had previously requested for Outlook to remember his password.
When I get some spare time though I'm going to test the resetting of the password like you explained, incase this happens again and an open and close of Outlook doesn't work.
Thanks again
Mel
|
|
|
|
|
Hi all,
I would like to monitor AD-lookup requests coming from member servers in the domain.
We have a windows 2008 DC and a windows 2003 server. The Win2k3 server is running an ASP.net application.
From time-to time, this application server queries the AD for user information.
I am interested in monitoring what requests are coming into the DC.
to be more specific, I am looking for something like SQLServer profiler tool.
Can this information be written to event log on the server? are there any options that I can configure to enable logging on the server?
Thanks in advance for your help.
Cheers,
Kalyan
|
|
|
|
|
A previous client of mine who's setup I did suffered some sort of virus issue.
Long story short, many of the more System32 variety files are now in quarantine. We're talking in excess of 40,000 files. Restoring these files to said locations should be a simple issue, but in many cases, trying to right click restore said file opens up a browser window and asks to specify the location to return them. The obvious response is how the hell should I know?!
My initial response to the IT guy there is that they should try and restore but the intelligent so and so needed the external HDDs (yes, 2 of them) for something so there are no restore points. Fantastiche.
Googling about, it seems that you cannot do so directly like with older versions of Windows.
Ideas? Suggestions?
The nuclear solution of starting clean is not really preferred.
If the post was helpful, please vote, eh!
Current activities:
Book: Devils by Fyodor Dostoyevsky
Project: Hospital Automation, final stage
Learning: Image analysis, LINQ
Now and forever, defiant to the end.
What is Multiple Sclerosis[ ^]?
|
|
|
|
|
Maybe the anti-virus supplier has way. Talk to them...
Otherwise you're stuck
|
|
|
|
|
Hey guys,
If we restart the server in the night, there is nobody to login. Connect to the database is no problem. But we have to start several jobs on the server.
is there a property to start SQL jobs from a server without login?
|
|
|
|
|
Have you tried the "Task Scheduler". You find it under Accessories/System Tools.
If you prefer the CLI, you can try the AT command.
"When did ignorance become a point of view" - Dilbert
|
|
|
|
|
Yes sure, but they wouldn't start or rather, they wouldn't be used cause the jobs run on the SQL Server...
modified on Wednesday, March 24, 2010 6:10 AM
|
|
|
|
|
How about this[^] then?
"When did ignorance become a point of view" - Dilbert
|
|
|
|
|
Yes sure, we already use this
If no user logged in the jobs wouldn't start...
Think so... start your pc and you would not login, but updates run in the background.
We have SQL jobs, which run at 7:00 AM but the server was restartet at 6:00 AM an nobody is there to login to the server with the adminuser.
Connect to the servers database already works.
|
|
|
|
|
If the Scheduled Jobs are setup properly, using an account that the job knows about (username/password), noone has to login to the machine at all. The Agent service will run the job as the user that's supplied. No interactive login required on your part.
|
|
|
|
|
Scheduled Jobs from the Server or SQL?
the server jobs already use this...
|
|
|
|
|
SQL Server has it's own scheduled tasks ability.
|
|
|
|
|
yes I know... WE ALREADY USE IT!!!
but where can we set the login property there?
the >>SQL JOBS<< wouldn't run without a logged in user.
|
|
|
|
|
Go to "Administrative Tools / Services"
Rightclick "SQL Server Agent" and select Properties.
In the "General" tab, make sure the startup type is "Automatic".
In the "Log On" tab you put in the correct credentials for a user with the correct permissions.
"When did ignorance become a point of view" - Dilbert
|
|
|
|
|
Yeah, but you weren't too clear on that.
SQL Server Management Studio -> SQL Server Agent -> Edit the job -> the Run As drop down. Also, under the General tab, you get to enter the creds of a user.
|
|
|
|
|
I have a Server running Windows Server 2003 and Terminal Services.
I have several users on remote sites that connect to the server with RDP.
What I would like to do, is on a successful logon to the server, depending on who they are logon to other servers.
I have no problem identifying the user, but would like to logon to the other serveral from a batch file. Is there a command I can?
ThanksSteve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.
|
|
|
|
|
Are the servers in different domains?
If not, you only need to set the access rights.
Otherwise you set up trusts between the domains and you still only need to set up the access rights."When did ignorance become a point of view" - Dilbert
|
|
|
|
|
Thanks for the help.
You was right, the code was fine it was me at fault. I was referencing the wrong DataView control on the page.
AAAaaaaarrrrrhhhhhh !!!!!
ThanksSteve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.
|
|
|
|
|
I am a one-man development team.
For years I have been using VSS for source control. Despite its shortcomings it has served me very well. I work using several PCs in various locations around the world. I have VSS server installed on a single workstation (with its 'database' on a file server). When I'm not connected to the local network I use a VPN to connect. It's not good but it works.
I am beginning to think it's time I moved to VSTS, or at least TFS but I don't really know the first thing about the requirements and benefits. I assume I would need to install it (whatever 'it' is) on an Internet-accessible server. I have trawled the MS web site and there's an immense amount of information but it seems mostly to be written in BS and I just don't have time (or patience) to plough through it all.
Please can someone point me to something that will tell me the essentials about deciding what I need to install and how to set it up and manage my migration.
Cost is not an issue since it comes with my MSDN subscription.
[Edit] I would use the 2010 version of whatever ... [/Edit]Phil
The opinions expressed in this post are not necessarily those of the author, especially if you find them impolite, inaccurate or inflammatory.
modified on Monday, March 8, 2010 10:06 AM
|
|
|
|
|
http://blogs.msdn.com/bharry/archive/2009/10/01/tfs-2010-for-sourcesafe-users.aspx[^] does a good job of explaining the basics. Don't install any of the sharepoint stuff.
I did all that, but I still think it's too big for a one man team.
If you VPN'ed in before, you can still VPN in to your server.
I must say that I'm not using it anymore, since TFS2010 does not connect with VS2008 (at least not Beta 2, haven't looked at anything more recent).
Instead, since MS announced that VSS was about to get the chop (not a bad thing), I've switched to subversion (on Linux ) which offers integration with ALL versions of VS, has file system integration on ALL platforms, and offers plug-ins for most IDE's (TFS plug-ins usually come with a price tag). I've even dropped the VPN connection with subversion, as I find that security is sufficient when using ssh or https on the big bad Net. There's even some free code to migrate from VSS, keeping history (almost) intact.
|
|
|
|