windows-server-2003-r2 interview questions
Top windows-server-2003-r2 frequently asked interview questions
In a quick and dirty backup script that's been running fine for years, the registry backup part no longer works. I run the offending code in the command line and get the same result:
C:\>reg export /y HKLM\SOFTWARE\ODBC\ODBC.INI test.reg
ERROR: nombre de clave no vĂ¡lido.
Escriba "REG EXPORT /?" para obtener detalles de uso.
Error translates as "invalid key name". If I lauch regedit and copy the key name to clipboard I get this:
HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI
If there is a typo, I'm unable to spot it.
Am I really mistyping the key name? Is there any other reason for the error?
Source: (StackOverflow)
I have a Custom windows service built on Net 2.0 and deployed on Windows Server 2003 R2.
It has been working fine for last 3 years but recently I have started facing problem with it.
It worked for some time and then stopped working even if the status is running.
I tried to stop the service twice but every time it was stuck with error 1053 and I was unable to stop it. Both the times I had to reboot the server because this is the only option I'm left with at the last. However this is not a good solution for Production servers.
Can someone please help in this regard?
Thanks.
Source: (StackOverflow)
I'm a beginner in scripting, I just made a batch script to create some quotas on a server Win2003. I would like to have a log file as an output , but the only command I know is >>logfile.txt which will make a log file for each command.
I would like to have ONE logfile.txt that will log if all commands were successfully applied or not...
Can someone help please with the coding please?
@echo off
echo.
Dirquota quota add "J:\P1\BD OG" /Limit:60GB /Type:Hard /Status:Enable /Add-Threshold:80 /Add-Notification:80,M,e-mail-warning.txt
Dirquota quota add "J:\P1\BD Chair" /Limit:60GB /Type:Hard /Status:Enable /Add-Threshold:80 /Add-Notification:80,M,e-mail-warning.txt
Dirquota quota add "M:\P2\BD Arena" /Limit:50GB /Type:Hard /Status:Enable /Add-Threshold:80 /Add-Notification:80,M,e-mail-warning.txt
Dirquota quota add "K:\P3\BD Home" /Limit:30GB /Type:Hard /Status:Enable /Add-Threshold:80 /Add-Notification:80,M,e-mail-warning.txt
echo.
pause
Source: (StackOverflow)
We have a mixed Java/JRuby project that uses a C++-DLL developped in Microsoft Visual Studio. Recently, the supplier of this DLL upgraded their development environment to Visual Studio 2015 professional. This required installation of the new runtime libraries (vcredist_x86.exe) on our machines (which are running on Windows 7). After we did this, everything worked as expected.
However, we also use a server (Microsoft Windows Server 2003 R2 Standard Edition Service Pack 2) to run regression tests. I installed the new runtime libraries, and the DLL is loaded. But when the program is run, we get an fopen
error when the DLL tries to load a certain file. errno
gives 2 (ENOENT
according to errno.h
). The file is present, the DLL tries to load it using a relative path. It is not the first file that is opened via fopen
, and access to the other files seems to work.
I do not have access to the source and cannot debug on the server and the developers of the DLL cannot reproduce the problem.
Has anyone experienced a similar problem on Windows Server after updating to Visual Studio 2015? And if so, how did you solve it?
Source: (StackOverflow)
I have a DLL (written in VB6..). It registers and runs fine on most machines and installations. However one installation is a T/S (Terminal Server), running Server 2003/R2/SP2. I get a failure with the following message:
DllRegisterServer in C:\Program files\ApplicationPath\ModulesPath\dllname.DLL failed. Return code was: 0x80004005
I've made sure the path has the directory where the module & it's dependencies reside, I've made sure to run the CMD prompt as Administrator with the "Run this program with restricted access" checkbox UN-CHECKED.
I've run depends.exe, and it says IESHIMS.DLL & WER.DLL are missing, but they're also missing on another 2003 Svr/R2/SP2 box, where it registers and runs fine.
Anyone have any ideas of where & what to look for? I've also spent some time comparing the folder permissions, file contents & versions, etc.. between a working and non-working server.
Source: (StackOverflow)
I'll try to make this short, feel free to ask for more details.
A mobile edition a a web-site has been created using MV3 razor and deployed to an IIS6 web-server using extenstionless URL's. Since .NET4 is installed on the server there is no special configuration done on the server to get extensionless urls work. When I try to access the site with the URL: http://site/m/
i get a 404 Not Found
error.
What I do to produce this problem:
- Right-click on project in VS2010 and publish to local file system.
- ZIP all files in and transfer to production server + unzip there
- Right click on production web-site and add a virtual directory for the new application
- Create a new application pool with all default settings
- Put the new virtual directory/application in that application pool
- Try to access the URL in the browser; receive
404 Not Found
The thing that puzzles me, is that if I replace Step 1 with "File->Create New MVC3 Project" and then publish to local file system everything works fine:
- The test-project is displayed in the browser with the name i used
http://site/mvctest/
- I do not need to use any extensions
- It does not stop working after 20 minutes (see next paragraph)
And now for the (even) weirder part:
If I now move the "m" application into the application pool just created for the "mvctest" application; it works too. But only for 20 minutes (or whatever value I have set for "Shutdown worker process after being idle for").
Any ideas?
EDIT: If I add wildcard mapping to the /m/
virtual directory it works, but that should/could also affect performance in a bad way?
Source: (StackOverflow)
We are currently redeploying our web applications in our new Production servers. Scenario:
- Database Server (Windows Server 2003)
- Application Server (Windows Server 2003)
Now, everything is set, our web application is all setup and databases are now up. But we are encountering an error in MSDTC not communication between two servers.
We have setup the MSDTC settings correctly now but no success. The two servers are in different subnets, can that be the cause? Can MSDTC only communicate to other computers/severs between subnets? Hoping you can help :)
We also followed this tutorial.
Below is the complete error being returned.
ERROR|Exception Type: TransactionManagerCommunication
Exception Properties:
Exception.Message: Communication with the underlying transaction manager has failed.,
Exception.Data: System.Collections.ListDictionaryInternal, Exception.InnerException: System.Runtime.InteropServices.COMException (0x8004D02B): The MSDTC transaction manager was unable to pull the transaction from the source transaction manager due to communication problems. Possible causes are: a firewall is present and it doesn't have an exception for the MSDTC process, the two machines cannot find each other by their NetBIOS names, or the support for network transactions is not enabled for one of the two transaction managers. (Exception from HRESULT: 0x8004D02B)
Source: (StackOverflow)
Can I install Visual Studio 2013 on Windows Server 2003 R2?
According to Visual Studio 2013 System Requirements it is not supported. However I heard some users was able to install it. Was anybody able to install it on Server 2003 R2?
Source: (StackOverflow)
I have a website at http://myserver/project1
.
'myserver' is a Windows Server 2003 server with IIS6.
'project1' is a virtual directory (the physical path of which is C:\myprojects\project1
.
I have read that the best way to link to an external stylesheet (for example) is to use a forward slash, e.g. <link rel='nofollow' href="/style.css">
, as I would also like to link to this stylesheet from a subfolder of the virtual directory.
I would expect this to look for the css file in http://myserver/project1/
, but it seems to be looking in http://myserver/
. I know this because typing <link rel='nofollow' href="/project1/style.css">
works.
I am guessing it's normal for http://myserver/
to be considered the 'website root' as this is the 'Default Website' (in IIS terms). What I would like to know is if there a way to (either via IIS or PHP) to change this so that I can write paths in the format /style.css
and have the virtual directory find them.
Many thanks
Source: (StackOverflow)
the linux-guy here has a question about IIS v6.
The case is, that i have a site running, when i do some specific tasks on this site ( Like deleting a specific item, three times in a row) the site will break, and a completely blank page will appear. Checking the response headers, i noticed that the server sends a "403 Forbidden: IP address of the client has been rejected."
Through a proxy, i can connect just fine.
Checking the site-options in the IIS manager, shows me that my IP is not blocked globally, its something thats just happening.
Where can i check for this? It happens automatically and the block ends after about 8-12 minutes, every time?
best regards.
Jonas
Source: (StackOverflow)
a few days ago our Windows Server 2003 R2 Server / QNAP Turbo NAS TS-459 Pro II has been shutdown, because someone stubmled into the power cord (to this time, no documents had have been open).
Now some users (for now I can't see a pattern) are having troubles with saving files (mainly .ppt) after modifying them.
Saving as a new file with an other name in the same folder is no problem.
Does anyone has an idea, what could have gone wrong?
Thank you very much!
Source: (StackOverflow)
Server: Windows 2003 r3
Program is supposed to automatically send out emails when they appear in a folder.
The issue that I am having is I can't find any support for the object that is being created.
I am trying to send a email using the text/html content-type and the emails being sent keep being received with the text/plain and the html is just normally displaying as text
The object being created is:
oMail As SMTP
I've tried
oMail.IsBodyHtml = True
And
oMail.MessageFormat = 1
All the tutorials online i've seen use
Dim oSmtp As EASendMailObjLib.Mail
Below is the entire function
Public Function sEnd(oMail As SMTP, MailToSend() As OutMail, ByVal i As Integer) As Boolean
On Error GoTo SendEmail_Err
Dim result
' Reset Smtp err code
iSmtpErr = 0
' Go thru the list of Mail to send
With MailToSend(i)
If .Status = EMO_TO_SEND Then
DoEvents
''''''''''''''''''''''''''''''''''''''
' Load Winsock
oMail.WinsockLoaded = True
' Specify Domain, Host and Mail Port
oMail.MailServer = sOutboundDomain
oMail.MailPort = iOutboundMailPort
DoEvents
'oMail.Action = a_ConnectToServer
oMail.Action = a_ResetHeaders
' oMail.IsBodyHtml = True
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Specify Mail contents: Sender, Recipient, subject, body, ..
oMail.From = .SenderEmailAddr
oMail.To = .RecipientEmailAddr
oMail.SUBJECT = .SUBJECT
oMail.Date = Format(Now, "ddd, dd mmm yyyy hh:mm:ss") & Space(1) & sTimeZone
oMail.MessageText = .Body
' oMail.MessageFormat = 1
oMail.OtherHeaders = X_MAILER & Space(1) & sXMailer
' Send Message
oMail.Action = a_SendMessage
.Status = EMO_SENT
.TimeSent = Now
DoEvents
' Quit
oMail.Action = a_DisconnectFromServer
End If
End With
sEnd = True
Exit Function
SendEmail_Err:
On Error Resume Next
If iSmtpErr >= 25005 And iSmtpErr <= 26005 Or _
iSmtpErr = 20302 Or iSmtpErr = 20163 Or _
iSmtpErr = 20162 Then
' Changed to handle invalid email address error - July 20, 1999
' Or iSmtpErr = 0 Then
' Winsock/connection error
MailToSend(i).Status = EMO_NO_CONNECTION
RaiseAlert USER_CONNECTION_ERR, ""
Else
MailToSend(i).Status = EMO_FAILED_TO_SEND
End If
' Log error
Call LogError(CLng(iSmtpErr), MailToSend(i).FileName & ":" & Error, "Send")
' Put in to handle invalid email address error - July 20, 1999
oMail.Action = a_DisconnectFromServer
oMail.Action = a_Idle
sEnd = True
Exit Function
End Function
Thanks a lot for any input!
Source: (StackOverflow)
I've got 2 server running Windows Server 2003 r2, Server1 with ip xx.xx.xx, Server2 with ip yy.yy.yy.
Both are domain server with Active Directory. Server1 with domain A and Server2 with domain B.
I need to take all user of Server2 and bring them to Server1.
What would be the best practice to do that?
I've thought to create a virtual server , but this would lead me to change the ip of the server2 , this means that users that log on server2 no longer see the domainB , even changing the DNS on the pc users these would not be able to see the dominioB but domainB.com, loosing account data.
Is it possible to migrate all user from domainB to domainA without loosing account profiles on user's PC?
Source: (StackOverflow)
When I tried to install Service Pack 2 on my server with Windows server 2003 I had an error:
Service Pack 2 Setup Error
Windows Server 2003 Service pack 2 cannot install.
The product key used to install MicrosoFt Windows may not be valid
For more information about why you have received this error
message, and steps you can take to resolve this issue visit
www.howtotell.com.
Any help?
Regards, Roie.
Source: (StackOverflow)