VMware Cloud Community
jvm2016
Hot Shot
Hot Shot
Jump to solution

implemeting vsphere best practices and features_powercli

Hi Luc,

i have been trying to implement  vsphere best practices and new features on vmware environment using powercli .

i am in process of checking following and thought of discussing with you if we can  add additional features in following list.

1:content Library

2:vcenter high availability

3:virtual machines encryption (that need KMS server i think that incur cost to customer)

4:file based backup(needs location of ftp server)

5:per vm evc

6:enhanced link mode

7:i am planning to do this with powercli 11.5 and posh ssh module .

78 Replies
jvm2016
Hot Shot
Hot Shot
Jump to solution

i am aware its part of setup but i did not see this page .so i stopped at that point

i did not find under iis manager . i believe you tested on powercli lab

pastedImage_0.png

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

That is correct, I'm working with HOL-2012-01-SDC


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

Hi Luc,

just checking it again but for me it does not show in iis manger .do i need to connect to local computer or any thing else ??

pastedImage_0.png

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

Try with 'localhost' or 127.0.0.1


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

it seems lab i updated with iis version 8 .and now i can see that .

however i can see in below drive also

PS IIS:\sites> ls

Name             ID   State      Physical Path                  Bindings      

----             --   -----      -------------                  --------      

Default FTP Site 2    Started    C:\FTPRoot                     ftp *:21:     

Default Web Site 1    Started    %SystemDrive%\inetpub\wwwroot  http *:80: 

one thing iam stuck is to set ftp user password tried many combinations but it is violating password complexity .if yu happen to know the password requirement for ftp user.

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

When you use the AD Computers and User application, you can change a password.

It will tell you the complexity rules.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

for some reasons unable to login to lab waiting ....

Reply
0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

are yu able to loginto lab .for me its not

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

Lab is working for me.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

for me its not .it hates me despite my massive love to it...

Reply
0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

if you could check the code with respect to authorization (one mentioned in powershell way od installing ftp)

pastedImage_0.png

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

Did you give that FTPUser Full Control on the FTP folder and all it's subfolders?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

i gave ful control to group that user belongs to .

however if you give me the correct powershell syntax

ftp folder is "c:\FTPRoot"

group is "FTP Users"

user is   "FTPUser"

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

The article I pointed to earlier has that.
It's the Set-Acl cmdlet in there.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

i have following permissions for FTP Users  (group)

and FTPUser (user)

pastedImage_0.png

and

pastedImage_1.png

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

Did you try restarting the IIS service?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

yes .i

f yu could test the code in lab (as mentioned in article).

also powershell dont follow indentation but i had to realign some lines to get rid of errors.

if yu get time to test in lab .

Reply
0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

i just chnged permissions 1 to 3 in below.and its working .is this the right logic..

pastedImage_0.png

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

It seems 3 means "Read, Write".
There seems to have been an issue with specifying "Read, Write" in older IIS releases, hence the value 3 in some scripts.

See PowerShell - Advanced configuration editing in IIS7 | Microsoft Docs


More cent posts seem to be using "Read, Write".
See https://stackoverflow.com/questions/23522557/set-permissions-and-settings-on-iis-ftp-site-using-powe...


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

jvm2016
Hot Shot
Hot Shot
Jump to solution

i will check one more time.

though that modification make ftp working and we can test vcsa backup using rest api .also content library is alreay tested .so we have two features

availbale using power cli .

Reply
0 Kudos