Posts tagged with “tips powershell”

Fix `Set-ItemProperty: Cannot find drive. A drive with the name 'IIS' does not exist.` issue

Background We still have quite a few projects that depends windows platform. I met Set-ItemProperty: Cannot find drive. A drive with the name 'IIS' does not exist. issue when I was running a powershell script, and I couldn't find an answer until I asked my colleague Matthew.

The ANSWER

Powershell 7 is supposed to support all platforms, so it removed those windows specific features.You should use Powershell for windows instead.

Yes, this solved the issue. Thanks!