Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Turning on FTP Server

$
0
0

Now for my big task.  Some of you know that I'm writing a Powershell script to automate the Build of Windows 7 PCs.  I am pretty far along, done with most.  But the big one I need to tackle is the FTP Server.  And unfortunately, I don't have a clue where to start.  Most I've found online is for Windows Server 2008 and 2012 or for Active Directory/Domain Servers.  Not for Windows 7 PCs.

Here are the written instructions to turn it on and get it started manually.  What I need are the Powershell commands to make these happen and I've had no luck finding anything close so far.  Any help for this very green newbie would be greatly appreciated.

Installing FTP Server via option on Windows 7:

  1. Select “Programs”, then “Programs and Features” in the Control Panel.
  2. Click “Turn Windows Features On Or Off”.
  3. Expand the Internet Information Services node.
  4. Expand the FTP Server node.
  5. Check the box next to FTP Service.
  6. Expand the Web Management Tools node.
  7. Check the box next to IIS Management Console.
  8. Click OK and wait for the service to be installed.

To avoid “FTP Error: 530 User cannot log in, home directory inaccessible”, need to set Read and Write permissions to All Users. 

                Open IIS:             Start >
                                                All Programs >
                                                Administrative Tools >
                                                Internet Information Services Manager >

                Double click on Sites.

                Right click and choose “Add FTP Site”.  Name it“Default FTP Site” with the root (“C:\”) as the Default location, then click “Next”.

                Click on the radio button for “Allow SSL”, then click “Next”.

                Check “Basic” under “Authentication”.  Choose “All users” under “Authorization”, then check the boxes for “Read” and “Write”, then finally click on “Finish.”

                You will then need to restart FTP Services by following the next steps:

                Click on                 Start >
                                                Administrative Tools >
                                                Services

                Select the service named Microsoft FTP Service.

                Click on Restart Link.  You should now be able to test FTP services.

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles