![]() NOTE: New-AppPool cannot use full path name such as “iis:appPoolsdemoAppPool” like other user-friendly-named cmdlets ![]() Or, you can use other task-based cmdlet(s) instead: New-AppPool demoAppPool Related UI Task: "Application Pools" treeview $file.GetAccessControl().GetAccessRules($true, $true, ) $dacl.ModifyAccessRule("Add", $newRule, $modified) $newRule=New-Object Administrator, Modify, Deny $file=$(get-item "iis:sitesDefault Web Siteiisstart.htm ") Set "Deny" for administrator user account for 'iisstart.htm' file and grant access permission for NTAccount.Create File and set file content programmatically.$path=$(get-item 'iis:sitesdefault web siteiisstart.htm').directoryName Open Explorer window for Default Web Site's home directory using "DirectoryName" property. ![]() $path=::ExpandEnvironmentVariables($path) $path=$(get-item 'iis:sitesdefault web site').physicalPath
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |