On Windows 7 I run the following Powershell script to start an FTP Site, however I encounter the following error
Start-Website : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) At C:\MyFolder\StartFTPSite.ps1:5 char:16 + Start-WebSite <<<< -Name "My LocalFTP Site" + CategoryInfo : InvalidData: (IIS:\sites\My LocalFTP Site:String) [Start-Website], UnauthorizedAccessException + FullyQualifiedErrorId : InvalidOperation,Microsoft.IIs.PowerShell.Provider.StartWebsiteCommand
Here is the PowerShell script:
Clear-Host
StartWindowsService -svcDisplayName "Microsoft FTP Service"
Import-Module WebAdministration
Start-WebSite -Name "My LocalFTP Site"