1

I am new to PowerShell, I am trying to change a property of an IIS website using the following syntax (which doesn't work)

(get-item 'IIS:\Sites\Default Website').logFile.directory = 'd:\'

It doesn't show any error but doesn't change the property either.

Anybody help?

1 Answer 1

3

You may need either:

Set logFile to a new value with the correct directory

or

Set-ItemProperty 'IIS:\Sites\Default Website' -name ...

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.