Set-InetpubFolderAcl

1.0

This script sets the security permissions on the directory inetpub. The script is designed to be run as an administrator.
If inetpub directory does not exist, it gets created and default IIS permissions are applied to the directory.
If an empty inetpub directory exists, the default IIS permissions are applied to the directory.
If inetpub directory exists and only cont
This script sets the security permissions on the directory inetpub. The script is designed to be run as an administrator.
If inetpub directory does not exist, it gets created and default IIS permissions are applied to the directory.
If an empty inetpub directory exists, the default IIS permissions are applied to the directory.
If inetpub directory exists and only contains the sub-directory DeviceHealthAttestation, default IIS permissions are applied to both directories.
If inetpub directory exists and contains any other sub-directories, the script exits without making any changes.

Show more

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name Set-InetpubFolderAcl

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Package Details

Author(s)

  • Microsoft

Tags

IIS Inetpub

Functions

script:Test-HasUserData script:Set-FolderAcl script:Set-InetpubAcl

Dependencies

This script has no dependencies.

Release Notes

Version 1.0:  Original published version

FileList

Version History

Version Downloads Last updated
1.0 (current version) 47 5/28/2025