https://github.com/tools4everbv/helloid-task-sa-target-ntfs-foldercreate
NTFS - Folder Create
https://github.com/tools4everbv/helloid-task-sa-target-ntfs-foldercreate
delegated-form ntfs powershell product service-automation task
Last synced: 4 months ago
JSON representation
NTFS - Folder Create
- Host: GitHub
- URL: https://github.com/tools4everbv/helloid-task-sa-target-ntfs-foldercreate
- Owner: Tools4everBV
- Created: 2023-11-02T10:23:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-15T13:59:41.000Z (over 1 year ago)
- Last Synced: 2025-01-08T10:45:22.293Z (6 months ago)
- Topics: delegated-form, ntfs, powershell, product, service-automation, task
- Language: PowerShell
- Homepage:
- Size: 52.7 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HelloID-Task-SA-Target-NTFS-FolderCreate
## Prerequisites
- HelloID Directory Agent
- The HelloID Service account requires the following permissions:
- Write Access on the folder ([NTFS permissions](https://docs.microsoft.com/en-us/iis/web-hosting/configuring-servers-in-the-windows-web-platform/configuring-share-and-ntfs-permissions#:~:text=To%20configure%20permissions%20for%20the%20folder%20structuree), so not Share permissions on the Share).
- When applicable Write Access on the folder/share itself ([Share permissions](https://docs.microsoft.com/en-us/iis/web-hosting/configuring-servers-in-the-windows-web-platform/configuring-share-and-ntfs-permissions#:~:text=To%20configure%20permissions%20for%20the%20share), not NTFS permissions on the folder(s)).## Description
This code snippet executes the following tasks:
1. Define a hash table `$formObject`. The keys of the hash table represent the properties for the `New-Item` cmdlet, while the values represent the values entered in the form.
> To view an example of the form output, please refer to the JSON code pasted below.
```json
{
"DisplayName": "Sales2",
"Path": "\\\\contoso.local\\Storage\\Projects\\"
}
```
> :exclamation: It is important to note that the names of your form fields might differ. Ensure that the `$formObject` hashtable is appropriately adjusted to match your form fields. More about the cmdlet `New-Item -ItemType Directory` [See the Microsoft Docs page](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/new-item?view=powershell-7.3#-itemtype)2. Verify if the provided parent folder exists
3. Calls the New-Item cmdlet with the switch -ItemType Directory to create the new NTFS Folder