Monday, 11 June 2012

IIS INTERVIEW QUESTIONS


What is the Role of IIS?


Visual studio having It own ASP.NET Engine which is capable enough to run Asp.net web application from visual studio. So we just click on Run button to start the application. 
Now this is the scenarios of local environment. But If we want to host it on server from where all user can access the sites then IIS comes into the picture. 

IIS provides a redesigned WWW architecture that can help you achieve better performance, reliability, scalability, and security for our Web sites. IIS can support following Protocol HTTP/HTTPS, FTP, FTPS, SMTP Etc. We need to host the site on IIS, when request comes from client it first hits the IIS Server, then the server passed it to ASP.NET worker process to execute. Then the response also passes to client via IIS itself. 
Note only Hosting of Site we can create our FTP Server, SMTP Server using IIS itself. 
There are different version of IIS available like 5.1, 6.0, 7.0 etc.

 

What is the different version on IIS that you have worked on?


Before answering this question you need to know what are the different IIS version is available in different OS. Below is the list of IIS version with different Operating system. 
Windows Server 2008 - Windows Vista - Home Premium/ Ultimate
 - IIS 7.0 
Windows Server 2003
 - IIS 6.0 
Windows XP Professional
 - IIS 5.1 
Now based on your working experience you can say that you have worked on IIS 5.1 and 6.0 or only IIS 7. Etc.
 
Now, the next question that can asked after answering this question is “what is the difference between them ?
 ”

What are the main layers of IIS Architecture ?

IIS having mainly two layer Kernel Mode and User Mode

Below are the subsections of both of them.
Kernel Mode  
         HTTP.SYS
User Mode
Web Admin Service
Virtual Directory
Application Pool


What is Application Pool in IIS ?


Before Giving the Definition: you can say like this, Concept of Application pool has from IIS 6.0.
Application pools are used to separate sets of IIS worker processes that share the same configuration and application boundaries. Application pools used to isolate our web application for better security, reliability, and availability and performance and keep running with out impacting each other . The worker process serves as the process boundary that separates each application pool so that when one worker process or application is having an issue or recycles, other applications or worker processes are not affected. 
One Application Pool can have multiple worker process Also. 

Main Point to Remember: 
1. Isolation of Different Web Application 
2. Individual worker process for different web application 
3. More reliably web application 
4. Better Performance

What is the Name of Default Application Pool in IIS?


Though we can create new application pool IIS with different settings, but IIS having its own default application pool named: DefaultAppPool

What are the different types of Identity available in IIS 6.0 ?


IIS having three different Identities. 
1. Local System
 
2. Local Services 
3. Network Services

Name of default Identity of IIS6.0


Default Identity of IIS 6.0 is NetworkServices .Which is having very minimum rights on your system. The user can only have the read access of the site.

What is Recycling of Application Pool ?

Recycling Application pool means recycle the Worker process (w3wp.exe ) and the memory used for the web application. 
There are two types of recycling related with Application pool 

1. Recycling Worker Process - Predefined Settings 
2. Recycling Worker Process - Based on Memory

What is the Role of Http.Sys in IIS ?


HTTP.SYS is the kernel level components of IIS. All client request comes from client hit the HTTP.Sys of Kernel level. HTTP.SYS then makes a queue for each and every request for each and individual application pool based on the request. 
Whenever we create any application pool IIS automatically registers the pool with HTTP.SYS to identify the particular during request processing.

What are the different security settings available in IIS ?


Below are the commonly used IIS Security settings 

1 Anonymous 
2 Integrated Windows Authentication 
3. Basic Authentication 
4. Digest Authentication 
5. Passport Authentication 

For Set security permission you need to go to Virtul Directory > Right Click > Properties > Directory Security 
Click on Edit Button 

What is the default authentication settings for IIS ?



Anonymous authentication is the default authentication mode for any site that is hosted on IIS, and it runs under the "IUSR_[ServerName]" account.

 

What is web garden ?



By default Each Application Pool runs with a Single Worker Process (W3Wp.exe). We can assign multiple Worker Process With a Single Application Pool. An Application Poll with multiple Worker process called Web Gardens. Each Worker Process Should have there own Thread and Own Memory space.

Generally its not recommended to use InProc Session mode while we are using Web Garden.

Where session data stores in case of "In-Proc" Session mode ?


Session data store inside process memory of worker process [ w3wp.exe ] .

 

How we can create an web garden ?


For creating web graden we need to go to Application Pool, then Right Click on Application Pool > Properties > Goto Performance Tab

In Web Garden Section, increase the number of worker process. By default it is 1.

How we can debug a web application which is hosted on IIS ?


We can easily debug any web application that is hosted on IIS by using Attaching of Worker Process.
From Visual Studio IDE > Tools > Attach To Process
Select the particular Process, then start debugging.

For more information Read this article:

How we can open IIS Configuration manager ?


Just simply Run >inetmgr
Or we can open it from control panel > Administrative tools.

 

How we can create a Virtual Directory on IIS ?

Open IIS Configuration Manager
First of all Right Click on Default web sites > New > Virtual Directory .
Browse the Physical Path. Set the properites. Click on OK

What are the permission settings are available for Virtual Directory ?

Below are the list of permission that can be set during virtaul directory creation
1. Read
2. Run Scripts
3. Execute:
4. Write:
5. Browse

 

What is the folder location for Virtual Directory ?


:\inetpub\wwwroot

What is the use of Enable Pinging Properties for Application Pool ?


IIS should periodically monitor the health of a worker process [ Idle or not , Time for recycle or not, All Worker process are running properly or not ] .
Pining means, Activation Process monitor Worker process performance, health, idle time etc.
By default it sets to 30s .

Does One Web Application can have multiple Application Pool ?


No. Every Web Application should have one Application Pool. Bydefault it is "DefaultAppPool ".

Which version of IIS is available in Windows Server 2008 ?


IIS 7.0 .

Even Vista Home Premium and Ultimate edition is also having IIS 7.0


How we can save an Application Pool Settings?


Application Pool Settings can be save as "XML" Format.

Right Click on Application Pool > All Task > Save Configuration to a File .

This will save all the settings of Application Pool as an XML file.We can make it password protected also.

Which Tool is used for Remote IIS Debugging ?



Tools is : msvsmon.exe

This is located at : Install path\Microsoft Visual Studio 8\Common7\IDE\Remote Debugger\x86

What are the different authentication mode available for IIS Remote Debugging ?


For IIS Remote Debugging msvsmon supported two authentication mode

1. Windows Authentication
2. No-Authentication

How can we get the list of worker process running in IIS along with the Application pool name ?



By running iisapp.vbs script from command Prompt.

Below are the steps :
1. Start > Run > Cmd
2. Go To Windows > System32
3. Run cscript iisapp.vbs

If there are multiple worker process running on IIS, then how can you attach a particular worker process for application ?


Well, If there are multiple worker process running in IIS, it means I have to know the name of my application pool. Then I can run cscript iisapi.vbs script to find out the process ID and Application Pool name . Based on the process Id for particular application I have to attache the process from Visual studio IDE.

Why do we need to IIS Remote Debugging ?


There are following reasons where we can use remote debugging
1. Your development server does not have IIS installed.
2. Development server and Build/Released/Hosting Server is different
3. Multiple user want to debug simultaneously.

Does IIS allows multiple user to Remote debug simultaneously ?


Yes. This is one of the great features of msvsmon.exe . Each instance of the remote debugger has a unique server name.we can give an instance of the remote debugger any server name. Now multiple user can able to access the server instance.

What is the use of aspnet_regiis -i command ?



This is used automatically register the .NET Framework with your IIS.

For more information :

 

Can we have multiple web sites on IIS ?


Yes. IIS Can have multiple web sites and Each and every web sites can have multiple virtual Directory.

Note : Here web sites means the Root Node.

Where is the default location for IIS Log files ?



Its
C:\WINDOWS\system32\LogFiles\W3SVC1

What is ISAPI Filter ?



This is one of the more important question for experienced guys.

Please read this in details.
http://msdn.microsoft.com/en-us/library/ms524610.aspx

What are the major innovation in IIS 7.0 ?



Below are the Major Innovation in IIS 7.0
Components are designed as module and there are major change in administration settings.
FYI : You can find out many of them, just go thorugh Microsoft IIS web site.

What is the Role of Windows Activation Process in IIS ?


WAP is the Controller of Worker process under a Application Pool. Windows Activation Process which is managed by the worker process by starting, stopping and recycling the application pool. When to start, stop and Recycle should be defined on Application Pool Settings. Activation Process is also responsible for Health Monitor of Application Pool during runtime.

FYI : Health monitoring setting can be easily found in Properties of Application Pool.

What are the different type of application pool available in IIS 7.0 ?


IIS 7.0 having two types of application pool.

1. DefaultAppPool (Integrated)
2. ClassicAppPool

Which is not an Identity of Application Pool ?

NOTE: This is objective type question, Please click question title for correct answer.


Which application pool having maximum privilege on the server ?


NOTE: This is objective type question, Please click question title for correct answer.

What is name of default application pool in IIS ?


NOTE: This is objective type question, Please click question title for correct answer.

 

What are the worker process for IIS 5.1 and IIS 6.0 ?


For IIS 5.1 > aspnet_wp.exe
For IIS 6.0 > w3wp.exe

Name of the tool which is used for remote debugging of IIS


NOTE: This is objective type question, Please click question title for correct answer.

What is Web Farm ?


This is one of the most questions in IIS. And along with that interviewer can as

what is the different between Web farm and Web Garden ?


When we hosted our web Application on multiple web server under a load balancer call the Web Farm. This is generally used for heavy load web application where there are many user request at a time. So When Web Application is hosted on Different IIS Server over a load balancer, Load balancer is responsible for distribute the load on different server.

Please have a look into this :


What is the default Identity of an Application Pool ?


NetworkServices

How can we set the default page for any web application ?



We can set the default page for a web site from the Virtual Directory Setting.
How To :
IIS Manager > Virtual Directory > Right Click > Properties > GoTo Document Tab.

How we can set the Idle Time out of an worker process ?


We can set the Idle time out for an worker process from Application Pool Properties.

In Performance Tab of Application pool, we can set the Idle Time out of the worker process. This means worker process will shut down after that given time period if it stay idle. And will again wake up again if a new request comes.

Is there any alternative way to host site on IIS rather than opening IIS Manager ?



Yes, We can directly host any site from the physical location of directory itself.

Right Click on Physical Folder > Properties > Web Sharing

There you need to select > "Share This Folder" Option Button. Then it will ask for alias name and other setting. Then Click on OK.

To Validate : Run > Inetmgr > Check there should an virtual directory with the same "Alias" name that you have given.

If there are already one Virtual directory exist it will showing you the error message while you providing the "Alias" name.

Can we create one Application Pool From Another Application Pool ?



Yes. We can.
While creating Application Application Pool From IIS, there should have two option available first one is for Default Setting and Another is for Existing Setting as template.
We can select the second one and from the drop down listed below we can select any on the Application Pool as Template,.

What are the main components of SVCHost.exe ?


Main components for SVCHost.exe are WWW Publishing Service (W3SVC) and Windows Activation Porcess (WAP) .

W3SVC is the mediator of HTTP.SYS and Windows Activation Process. Windows Activation Process maintain the worker processes.

What are the different way that we can hosted site on IIS ?


We can hosted site on IIS either creating Virtual Directory through IIS manager or Using Folder Web Sharing .
Apart from that Visual studio provide some inbuilt features to host the site on IIS like using Publishing the web site , Using Copy web Tool or Creating Virtual directory during the creating the project by choosing Location as HTTP

How does IIS process an ASP.net request ?


When client request for an aspx pages, request comes to kernel level off IIS means to HTTP.SYS . HTTP.SYS receives the request and based on the application pool name [ Which is already registred with the HTTP.SYS ] it send the request to worker process. Windows Activation process works as mediator of them. w3wp.exe loads "aspnet_isapi.dll" files to start the HTTPRuntime . HTTPRuntime creates HTTPApplication objects and all request are passed through HTTPModule and finally reached to HttpHandler . This is the request pipeline. After end of Request pipeline ASP.NET Page lifecycle starts.

For more Information :
http://www.codeproject.com/KB/aspnet/aspnetrequestarchitecture.aspx

From where we can set the Session Time Out in IIS ?



We can set the Session time out settings from the Virtual Directory for that site.

Right Click on Virtual Directory > Properties > Click on "Configuration" Button
Goto the "Option" Tab. There in Enable Session State Section you can configure the Session Timeout .

What are the different "Execution Permission" available for IIS for an virtual directory ?



There are three Execution Permission available.
1. None
2. Scripts Only
3. Scripts and Executable


From where you can change the ASP.NET Version in IIS ?



This can be change from Virtual Directory properties. First open Properties of Virtual Directory > GoTo ASP.NET Version Tab.

There we can have change the ASP.NET Version.

What is the latest version of IIS released with Windows 7



IIS 7.5

What is the default user name of an anonymous login in IIS?

In IIS, an anonymous user will be given with a user name of "IUSR_MachineName "

How can we take back-ups in IIS Server?



Step 1 : In the IIS (inetmgr), right click on the "Computer" icon under "Internet Information Services" . Click "All Tasks" and select "Backup/Restore Configuration".

Step 2 : Click on button "Create backup". Give Name for your backup file. If you want encryption enable encryption option and give UserName and Password and then click OK.

What is IIS metabase? And In which format IIS stors configurations?



IIS metabase is a special databse which is used to maintain the settings and configurations data for IIS. In simple term, it is a configuration base for IIS (Metabase.xml).

IIS 5.0 --> Metabse is in Binary.
IIS 6.0 & 7.5 --> Metabase is in XML.

List of Error & Status codes in IIS 6.0?


Status Code Type of Code
100 Series - Informational
200 Series - Success
300 Series - Redirection
400 Series - Client Error
500 Series - Server Error

 

How to recycle application pool from the command prompt in IIS7?


1. Use appcmd.exe to recycle the application pool from the command prompt.

2. appcmd.exe is the command line tool for IIS7, you will find this tool at following location :

%systemroot%\system32\inetsrv\appcmd

3. To recycle your application pool use the following command:
appcmd recycle apppool /apppool.name:

What are the Different steps to be followed to get SSL(Secure Sockets Layer) for our Web Application ?



  1. Intially we have to Generate a certificate request from our IIS

  1. Now we have to request a certificate from the certificate authority(CA)

  1. This CA is an entity which issues Digital Certificates.

  1. After receiving the certificate we have to install that particular certificate on our Web Server using IIS

  1. We have to use Secure Hyper Text Transfer Protocol(HTTPS) when accessing secure pages in our application.

By this way we could make our web page as SSL protected. !!!

Configure HP Integrated Lights Out (ILO) Step by Step

Configure HP Integrated Lights Out (ILO) Step by Step

logoilo.jpgEasily one of the best features of HP servers is their Integrated Lights Out (ILO) remote management interface. Having the ability to remotely access HP servers from POST to OS is an invaluable tool. Standard ILO features include remote shutdown and startup, virtual media, text mode console redirect and access to hardware logs, status and diagnostic tools. Full graphical remote console redirection is available with the advanced license. This article will outline step by step how to configure and access ILO on a fresh out the box Proliant ML350 G5 server.
First, connect the ILO designated network port to your switch or management network.
ilonicports.jpgMost brand new HP servers come with an information tag attached. Printed on the tag is the server serial number and Integrated Lights Out access information including factory set username and password.
ilotag.jpgThe easiest way to access the ILO configuration utility is during the POST by pressing F8 when prompted.
ilo2.PNGThe menu is straightforward and self explanatory. Use the arrow keys to navigate. Select Enter while the Set Defaults option is highlighted to revert back to factory settings.
First, access the Network menu, disable DHCP and change the DNS name
ilodhcp.jpgThen configure your static ip settings
ilostaticip.jpgNext, set the Administrator password or create new user.
ilouser.jpgNote that the username and password are both case sensitive. Select Exit to save and reset ILO with the new settings. Test access to the ILO web interface.
iloweblogin.jpgChecking DHCP leases and configuration from the server OS are some alternate setup options if your server is already in production and the ILO settings were not configured beforehand. If DHCP is accessible from the ILO interface connected network then check the leases for the DNS name printed on the tag. Use the leased ip to access the web interface and login with the factory username and password. All the same settings from the POST utility can be configured through the ILO web interface. HP also provides a utility called HPONCFG which allows for command line interaction with ILO and scripting functionality.

*** FAQ: Common PSTools Issues ***

FAQ: Common PSTools Issues


  1. Where do I get the latest version of PSTools? 

    Please visit the PStools web page. The download link will be at the bottom of the page. 
  2. How do I install PSTools? 

    Installation 
    None of the tools requires any special installation. You don't even need to install any client software on the remote computers at which you target them. Run them by typing their name and any command-line options you want. To show complete usage information, specify the "-?" command-line option.

    Cf. here: PStools web page. 

    So the installation procedure is really simple:

    • download the PSTools.zip.
    • create a folder on your local disk, i.e. "%ProgramFiles%\PsTools".
    • unzip all files inside PsTools.zip to the newly created folder.
    • Note: 
      if you already have a newer version of pdh.dll on your machine (very likely in %windir%\system32), you do not need the pdh.dll inside PStools.zip. Simply delete pdh.dll which you just extracted from the newly created folder.
    • Installation done.

    Note: 
    You will not find PSTools under Control Panel => Add/Remove Programs 
  3. How do I uninstall PSTools? 

    If you have read the Installation Instruction above, the answer is pretty obvious: 
    • Make sure no PSTools command is running on your machine.
    • Remove all PSTools files from the folder where you extracted them to.
    • If the folder is empty now, you may remove it, too.
    • PSTools have been uninstalled.
    • PsTools V2.40 or newer: 
      Starting with PsTools V2.40, each PsTools command will, when launched for the first time, create a regkey named HKCU\Software\Sysinternals\\EulaAccepted=0x01. If you wish to remove these keys as well, then you will need to remove them for each user who ever used PsTools on the machine. Yet leaving the keys inside the registry will do no harm except waste a few bytes.

  4. How do I run a PSTools command? 

    PsTools commands are console applications. This means they have not got a GUI, a graphical user interface. Double clicking on the executable files will just result in a command window popping up and closing pretty fast. 

    Instead open a command window e.g. by clicking on Start => Run and typing in cmd.exe. 

    Inside the the command window change to the folder where you extracted the PStools files, i.e. cd "%programfiles%\PStools", if this is where you stored them. 

    Run them by typing their name and any command-line options you want. To show complete usage information, specify the "-?" command-line option.

    Cf. here: PStools web page. 

    Those interested in a concise overview on the usage of all the PsTools utilities in one single article are strongly encouraged to have a look at Wes Miller's PsTools Primer. 

    Finally, you may also get help on each PSTools command by double clicking on the pstools.chm and going to the appropriate command section. 
  5. What are the minimum requirements to run PSTools commands? 

    Please read PsExec could not start. 
    Although it is about psexec, the requirements to run any PSTools command are pretty similar. 
  6. How to switch WinXP to "Classical Network Authentication"? 

    PStools commands often need to logon to the target machine. 
    On WinXP this will not work, if WinXP uses "Guest authentication" instead of "Classical Authentication". 
    In order to learn how to switch back to "Classical Authentication", 
    please read Pskill & XP Pro 2002 
    and/or psshutdown issue 
    Although the threads are about pskill/psshutdown, the solution applies to other PSTools command as well. 
  7. My user has got an empty password. Why do I keep getting "Access Denied"? 

    If the user who tries to log in on \\target has got an empty password, i.e. no password at all, authentication on \\target will fail and you will receive an "Access Denied" error message. 
    This statement is valid no matter if you use implicit login on \\target, i.e. you do not use the -u username -p password options, or if you use explicit login, i.e. you do specify -u username -p password. 
    Cf. PsTools Giving Access Denied Error. 
  8. PsTools: Will they work on 64bit Versions of Windows? 

    Please read pslist and Server 2003 - Enterprise X64. 
  9. PsTools: Will they work on 64bit Itanium machines? 

    Definitely no. Please see Mark's statements on Sysinternals and Itanium in this thread: IA-64 bit version of regmon. 
  10. PsTools: Why do I get virus alarms by my antivirus software? 

    If you downloaded your PSTools.zip from the Sysinternals PSTools webpage, please cool down. Chances are pretty good you are receiving false positives. 
    Please read: Question: Bit Defender Identifies PSTool. 
  11. PsTools: Launching a Pstools executable gives the error message: is not a valid Win32 application 

    Are you running some kind of software which allows to define which applications may be launched and which ones not? Like e.g. Application Control from Secure Wave? If so please read: PsShutdown. 
  12. PsTools: What is the internal format of the file "@file"? 

    In order to use a PSTools command (psexec, psshutdown etc) towards a list of computers, you may e.g. launch
    psexec \\computer1,computer2,computer3 command_to_be_run
    or you may put the computer names in a listfile named file e.g. and launch
    psexec @file command_to_be_run
    You wonder how to put the computer names in file? 
    Please read PSShutdown @file. 
  13. PsExec: Error communicating with PsExec service 

    If you are running McAfee antivirus software and/or ZoneAlarm firewall software, please read Error communicating with PsExec service. 
  14. PsExec: The PsExec service running on is an incompatible version 

    Please read PSExec incompatible Version. 
  15. PsExec: No Process on the other end of the pipe 

    It seems as if the source of this issue may in fact be the same as with the error message quoted above, i.e. "The PsExec service running on is an incompatible version". 
    Please read No Process on the other end of the pipe. 
  16. PsExec "eating up" the first "-accepteula" on the commandline 

    Since Nov. 2006, the PsTools utilities have required you to confirm the EULA when invoked by a user for the first time. 
    Since Dec. 2006, the Pstools utilities have accepted the -accepteula commandline argument. 
    Ever since, you have noticed that if you used psexec to launch another PsTools command remotely and passed -accepteula to this remote PsTools command the -accepteula argument mysteriously disappeared from the commandline. 
    Please read PSExec - FWIW - A bug with -accepteula in order to learn what really happens and how to workaround the issue. 
  17. PsExec: Can I run Windows telnet.exe/ftp.exe remotely using psexec? 

    Problems have been reported on running Windows telnet.exe and Windows ftp.exe, both console applications, remotely using psexec. So far no solution seems to be known. 
    About telnet: telnet with psexec problem -PLS HELP -. 
    About FTP: PSEXEC and ftp.exe. 
    This report seems to confirm the issue, FTP server responses will be lost (invisible) when FTP is launched remotely using psexec: running batch file with psexec 
  18. PsExec: Issues encountered when running it inside scripting environments/programmes 

    There are numerous reports on issues encountered when launching PsExec from inside various scripting environments/programmes. Very often the issues seem to be related to handling of stdin, stdout and stderr. But there may be other sources of trouble as well. Sadly enough, there does not seem to be one single approach which will solve or work around all issues. 
    + Java: psexec always hangs when run from java 
    + .NET: PSExec running CMD Remotely Doesn�t Stop 
    + .NET: cls in VB.NET console program doesnt work? 
    + PHP: Can psexec suppress a console window? 
    + PHP: psExec vs Console.WriteLine 
    + PHP: output from PsExec 
    + PHP: psexec - the pipe has been ended.. (Maybe gsds2 developped a workaround which will work for you as well?!) 
    + PHP: PSService: does not work with PHP 
    + Wsh: Stuck using PsExec 1.70 becasue of StdOut 
    + Wsh: psexesvc hanging on exit 
    This list is by no means complete. Please use the forum search button. Do not forget to set the "FindPosts" field to "Any date" before pressing the "Start Search" button. 
  19. PSExec Hangs (Called From Inside a C# Programme) 

    Maybe this thread holds helpful information to C# developpers: PSExec Hangs. 
  20. PsExec: Can I run several parallel psexec instances to 1 target machine? 

    Please read psexec error communicating. 
  21. PsExec: Can I use psexec to launch a graphical application remotely? 

    Please read psexec and GUI on remote machine. 
    Also check out this thread PsExec & -i To Interact w/Desktop. 
    It is about unwanted side effects of the psexec -d option if used in conjunction with -i when launching a GUI application remotely. 
  22. PsExec could not start [progname] on [machinename]: The parameter is incorrect. 

    You try to run a commandline like this
    psexec \\win2003srv -i notepad.exe
    but always receive the error message quoted above. 
    This error depends on 3 factors: the target machine is a Windows 2003 system, the option -i  is used and the specified sessionID is greater than 0. 
    This problem has been introduced to psexec starting with v1.80 together with the enhanced option -i  and seems to affect only Win2003 target machines. 
    Please, refer to the following threads e.g.: 
    + Remote GUI revisited 
    + psexec newb (option "-i sessionID") 
    + Psexec -i causes target app to crash on nonconsole 
    + FIXED: Psexec -i not working on headless svr 
    + psexec and interaction with remote desktop 
    + PsExec - prog. executes despite incorrect func. 
    + psexec -s -i Windows 2003 server (2) 
    + psexec -s -i Windows 2003 server (1) 
    + psexec and GUI on remote machine 
    + PsExec & -i To Interact w/Desktop 
  23. PsExec: Can I set the system time remotely using PsExec? 

    Yes, it is feasible, but beware of pitfalls. Please read Cannot set time via psExec. 
  24. PsExec could not start : The service has not been started. 

    You are simply trying to launch a command like psexec , but receive the error message quoted above? 
    Please read learn which purposes psexec may serve and what it will not do here: PsExec could not start (local machine w2k). 
  25. PsExec - Maximum remote commandline length for PsExec v1.73-v1.82 

    If you use psexec (v1.73-1.82) to launch a remote commandline longer than 255 characters, psexec will crash when the remote commandline returns control back to psexec. psexec v1.83 solves this issue. 
    Please read PsExec - Maximum string length PsExec (v1.73-v1.82). 
  26. PsExec: User input being cut off after first character when using "set /p" 

    A problem similar to the "time" command problem above, only the first letter of interactive user input is recognized. 
    Please read psexec do not recog /p??. 
  27. PsExec: Remote Installation 

    There are quite a few threads reporting issues when using psexec in order to launch installation packages on a remote target machine. If you succeed or fail seems to depend largely on the kind of setup that you are trying to launch remotely. So very likely there is not 1 right way to do it. 
    In order to offer at least some help on this issue I would like to point you to 3 threads where users seems to have found ways of achieving their goals. 
    Please check out the solutions offered in these threads (they may or may not work for you as well): 
    + psexec - Cannot find the (.MSI) file specified 
    + psexec - user credentials question 
    + psexec and remote install 
  28. PsExec: remote share problem 

    You are trying to execute a command like psexec \\remoteserverA cmd.exe /k dir \\remoteserverB\share, but only receive an Access denied error message. 
    Please read psexec - remote share problem in order to learn why and how to solve the issue. 
  29. PsExec (pre-v1.80): Runtime HKCU unload when using psexec -e 

    You are trying to execute a command like psexec.exe \\computer -u user -p pass -e -i regedit.exe in order to edit the user's HKCU registry hive, but end up editing HKU\.default instead? 
    Please read Runtime HKCU unload when using psexec -e. 

    Important Note: 
    Starting with psexec v1.80 the meaning of -e has been reverted:
    Originally posted by psexec -?

    -e Does not load the specified account's profile.

  30. PsExec: Can it be used on Vista? 

    Please read Guide for enabling PsExec on VISTA. 
  31. PsExec from Vista to Vista, can it be done? 

    You wonder whether you may have any success using psexec from one Vista computer to another Vista computer? Maybe settingLocalAccountTokenFilterPolicy=1 will do the trick? Please read psexec from vista to vista. 
  32. PsExec: What is the difference between implicit authentication and explicit authentication? 

    You wonder why does psexec behave differently if it has been launched without the -u user -p passw arguments than it does if launched with the -u user -p passwarguments? 
    Please read psexec - remote share problem in order to learn why. 
  33. PsFile: Access Denied 
    On the local machine, you are logged on as a normal user (no admin privileges). You launch psfile \\target -u admin -p passw, but keep on receiving "Access Denied." error messages. 
    Please read psfile access denied. (Very closely related to the next issue.) 
  34. PsFile: -u / -p otions not working as expected 
    On the local machine, you are logged on as a normal user (no admin privileges). You launch psfile \\target -u admin -p passw, but keep on receiving "Unable to connect to \\target. Verify user name and password." error messages. 
    Please read PsFile - -u / -p otions not working as ex. (Very closely related to the previous issue.) 
  35. PsInfo: Access Denied running remotely (Win2K upgraded to WinXP or Win2003) 

    OK, here is a tricky one: You upgraded a Win2K machine to WinXP/Win2003. Ever since you receive an "Access Denied" error message if you try to run "psinfo" remotely targetting this machine. 
    Please read PSInfo - Access Denied running remotely. 
  36. PsKill: Can I use pskill to terminate applications minimized to systray? 

    Please read PSKill & close system tray icons?. 
  37. PsList: Failed to take process snapshot on remote-pc. 

    When you launch pslist targetting a remote Windows machine, you keep getting this error message
    Failed to take process snapshot on remote-pc. 
    Make sure that the Remote Registry service is running on the remote system, that you have firewall ports allow RPC access, and your account has read access the following key on the remote system: 
    HKLM\Software\Microsoft\Windows NT\CurrentVersion\Perflib
    In order to resolve this issue, please read PsList fails to take process snapshot. 
  38. PsList: Show Processes for the Current User Only? 

    PsList does not show the process owners at all. Here is a workaround/solution which does not use PsList at all: PsList - Show Processes for the Current User Only?. 
  39. PsLogList: Basic Usage Examples 

    The usage of the PsLogList commandline seems a bit confusing. Start by doing something simple as explained in this thread: PsLogList. 
  40. PsLogList: PSLogList and tab-delimited output 

    Here is another basic, but hopefully useful example, writing the psloglist output to a tab-delimited file for later import into your favourite spreadsheet programme e.g.: PSLogList and tab-delim output!!?!?!. 
  41. PsLogList: ability to dump to .EVT file? 

    This one is more tricky: The "-c -g filename.evt" options will let you export an eventlog to an evt file and clear the eventlog. This works fine locally, but seems to fail remotely. Maybe this workaround will prove useful to you, too: psloglist - ability to dump to evt file?. 
  42. PsShutdown & non-administrator accounts 

    Is there a way for a user that is not an administrator of a machine to use psshutdown to shutdown a machine? The following thread suggests the answer may besorry, no. 
    Please read PsShutdown & non-administrator accounts. 
  43. PsShutdown: Can I schedule a specific shutdown time on the commandline? 

    Yes, it is feasible, but beware of the time format. Please read PS-Shutdown at a spec. time. 
  44. PsShutdown: Can I reboot/shutdown a locked workstation? 

    Yes, it is feasible. Please read Psshutdown cannot reboot locked wrkstn. 
  45. PsShutdown: Can I logoff a terminal server user running "psshutdown -o"? 

    No, not possible. "psshutdown -o" will always logoff the console user. Please read Psshutdown. 
  46. PsShutdown: -v does not work as expected! 

    Some psshutdown versions worked incorrectly when the -v  option was used. Should be fixed in psshutdown v2.51. Please read Psshutdown andPsShutdown -v. 
  47. PsShutdown: After upgrading to a new version, psshutdown towards a remote machine fails with "Error communicating with psshutdown service". 

    The complete error message reads more or less like this:
    Error communicating with psshutdown service on local system. The system may not have been shutdown: The pipe has been ended.

    In the folder %windir% on the remote machine, there still is an older version of pssdnsvc.exe. 
    Please read psshutdown v 2.51 failing, pipe error in order to learn how to fix this problem and get rid of an outdated PsShutdown service. 
  48. PsShutdown \\target gives: Could not start PsShutdown service on target: %1 is not a valid Win32 application. 

    You have some kind of application control software running on your machines preventing unwanted software from being launched. 
    Please read psshutdown. 
  49. PsShutdown: What is the internal format of the file "@file"? 

    In order to psshutdown a list of computers, you may launch
    psshutdown \\computer1,computer2,computer3
    or you may put the computer names in a listfile named file e.g. and launch
    psshutdown @file
    You wonder how to put the computer names in file? 
    Please read PSShutdown @file.
Browser Name:
Browser Version:
Browser Code Name:
User-Agent: