Search code examples
powershelliisiis-express

IIs drive not found (PowerShell)


I'm trying to execute this commande and i keep getting that the IIS drive was not found, inthe documentation there is IIS:> while i have my local drive, how do I activate it?



enter image description here

I tried importing webAdministration but I don't think thats the problem


Solution

  • When I try to open PowerShell directly and run the script, it prompts: Cannot find drive. A drive with the name 'IIS' does not exist..

    image1

    But when I reopen PowerShell as administrator and run the command, the problem is solved.

    image2