1

Entering:

net user "IIS APPPOOL\DefaultAppPool"

Results in:

The syntax of this command is:

NET USER
[username [password | *] [options]] [/DOMAIN]
         username {password | *} /ADD [options] [/DOMAIN]
         username [/DELETE] [/DOMAIN]
         username [/TIMES:{times | ALL}]

Why? Do I have to escape the backslash character? If so, how?

6
  • Have you tried to escape the ` \ ` by doing ` \\ ` instead?
    – Ramhound
    Oct 3, 2013 at 12:32
  • 1
    Yes, escaping the backslash with another backslash returns the same error.
    – 52d6c6af
    Oct 3, 2013 at 12:38
  • ...I have also tried escaping using the caret character ^, without success
    – 52d6c6af
    Oct 3, 2013 at 12:39
  • IIS AppPool\DefaultAppPool is not actually a user, but a reference to the abstract AppPoolIdentity, so I don;t think it will work for this. what exactly are you trying to do to it with net user? I've seen that some people have to create a SQL user with this identity, or use iacls/cacls to grant file permissions, but I'm not seeing anyone use it with 'net user'. Oct 3, 2013 at 12:54
  • BTW, if you could use 'net user' for this purpose, the syntax would be 'net user "DefaultAppPool" /DOMAIN:"IIS APPPOOL" /times:ALL' (substitute '/times:ALL' for whatever net user command you want to run) Oct 3, 2013 at 12:57

0

You must log in to answer this question.

Browse other questions tagged .