I'm trying to execute this commande
I tried importing webAdministration but I don't think thats the problem
CodePudding user response:
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..
But when I reopen PowerShell as administrator and run the command, the problem is solved.