- Linux и Windows: помощь админам и пользователям
- Администрируем и настраиваем Windows, Linux.
- Автоматическое заполнение поле Описание в Active Directory
- Work item fields and attributes
- Field names
- System and predefined fields
- Custom fields
- How can I determine the field data type?
- Field attributes
- Reportable attributes
- Indexed fields
- List field attributes
- List attributes using witadmin command line tool
- Work Item Field Explorer
- Project integration and project field mapping
- Add and modify fields
Linux и Windows: помощь админам и пользователям
Администрируем и настраиваем Windows, Linux.
Автоматическое заполнение поле Описание в Active Directory
Любой системный администратор знает о существовании поля Описание у объектов Active Directory. Очень редко какие IT отделы регулярно используют данное поле для чего-либо полезного и поддерживают данную информацию в актуальном состоянии.
Я думаю, что было бы очень полезно для компьютеров иметь в данном поле информацию по последнему залогинному пользователю. С помощью небольших изменений в настройки безопасности AD и простенького скрипта мы выполним данную задачу. Также я добавил в данное поле сервис тэг и номер модели компьютера.
Первое что нам необходимо сделать – разрешить всем прошедшим проверку пользователям изменить данное поле. Необходимо понимать, что после данного изменения любой опытный пользователь может самостоятельно указывать в данном поле любую информацию. Для этого выполним следующее действие:
Откройте консоль Active Directors Users and Computers
Включите дополнительные возможности (‘Advanced Features’ в меню ‘view’)
Выберите ваш домен, нажмите на него правой кнопкой и зайдите в свойства.
Перейдите на вкладку Безопасность и нажмите кнопку ‘advanced’
Нажмите ‘add’, введите ‘Authenticated Users’ и нажмите OK.
После этого дважды нажмите ‘OK’ и закройте оснастку.
Создайте новый скрипт и внесите в него следующий код: Set WshNetwork = WScript.CreateObject(«WScript.Network»)
Последнее что необходимо сделать это добавить данный скрипт в запуск при логине пользователя. Проще всего это сделать через групповые политики. Для этого создайте новую групповую политику и добавьте ваш скрипт в раздел User configuration > Policies > Windows Settings > Scripts > Logon. После создания GPO залогиньтесь на какой либо компьютер и проверьте, что поле Описание автоматически заполнилось.
Полезная информация
Заколебался!! На моем опеле второй раз с интервалом в один год летит АКПП. Поэтому сейчас смотрю на новые авто. Пока остановлися на Kia Ceed — очень нравится как по дизайну, так и по характеристикам.
Work item fields and attributes
Azure Boards | Azure DevOps Server 2020 | Azure DevOps Server 2019 | TFS 2018 — TFS 2013
Work item fields are used to track information. Each work item type (WIT) definition specifies the fields defined for that WIT. Each field is associated with a number of attributes, many of which are set by the system and cannot be changed.
Each field is defined by the following three attributes.
- Data type: Specifies the type of data that can be entered into the field, such as Boolean, Double, Integer, HTML, and String. For descriptions of each data type, see Query fields, operators, and macros.
- Friendly name: Specifies the name assigned to the field and that you select for a Field in a query clause. This name may differ from that displayed on the work item form.
- Reference name: Specifies the name that you use when creating WIQL query or an ad hoc work item template, using REST API commands, or defining XML work item type definitions. Once defined, the reference name cannot be changed.
For a description of each field attribute and how you can list them, see Field attributes and List field attributes later in this article. For an overview of WITs and work items, see Track work with user stories, issues, bugs, features, and epics.
Field names
The field friendly name identifies each work item field. When adding a custom field, make sure the friendly name falls within these guidelines:
- Must be unique within the organization or project collection
- Must be 128 or fewer Unicode characters
- Can’t contain any leading or trailing spaces, nor two or more consecutive spaces
- Must contain at least one alphabetic character
- Can’t contain the following characters: .,;’`:
System and predefined fields
All system defined fields have reference names that begin with System, for example, System.AreaPath, System.AssignedTo, and continue in that pattern.
Predefined fields defined by the default process begin with Microsoft.VSTS and then further differ based on their usage. Examples of predefined fields that are used in common, for scheduling purposes and integration with Office Project, for integration with Team Foundation Build, and integration with test case management (TCM) are as follows:
- Microsoft.VSTS.Common.Priority
- Microsoft.VSTS.Scheduling.DueDate
- Microsoft.VSTS.Build.FoundIn
- Microsoft.VSTS.TCM.Steps
For an overview of all system and predefined fields that are defined for the default processes/process templates, see Work item field index. For more information about specifying field names, see Naming restrictions.
Custom fields
Because custom fields are defined for an organization or project collection, you can’t add a custom field to a process with the same field name that you add to another process.
When adding custom fields, note the following limits:
- A maximum of 256 fields can be defined for each WIT
- A maximum of 512 fields can be defined per process
The field data type determines the kind and size of data that you can store in the field. A field can have only one type defined within a project collection. This restriction encourages organizations to use common fields across projects and work item types.
When you add a custom field to an inherited process, Azure DevOps assigns a reference name based on the process name and the name of the field. For example, you add a field named Triage to the My Agile process, the reference name is MyAgile.Triage. No spaces are allowed within the reference name.
How can I determine the field data type?
You can view the data type of fields defined for your organization by opening the Process>Fields page.
Fields page» data-linktype=»relative-path»>
When your project collection uses the Inheritance process model to customize work tracking, you can view the data type of fields by opening the Process>Fields page.
Fields page» data-linktype=»relative-path»>
If the On-premises XML process model is used, you can look up the data type through the Work item field index. Or, you can open the Work Item Field Explorer to review the fields defined and their attribute assignments, or use the witadmin listfields command to list the field attributes. For details, see Work Item Field Explorer and List field attributes later in this article.
You can look up the data type through the Work item field index. Or, you can open the Work Item Field Explorer to review the fields defined and their attribute assignments, or use the witadmin listfields command to list the field attributes. For details, see Work Item Field Explorer and List field attributes later in this article.
Field attributes
There are a number of non-changeable and virtually hidden attributes for each work item field. The following table describes each attribute.
The attribute listed in the first column of the table is supported through the Fields — Get REST API and Work Item Types Field — Get commands. The attribute listed in the second column is supported through the Work Item Field Explorer (WIFE) tool, and the FieldDefinition Properties. The attributes assigned to a field depend on the platform and version you use.
Notes:
- For on-premises deployments, you can enable indexing for a field to improve query response times when filtering on the field. For more information, see Indexed fields later in this article.
- The isPicklist and isPicklistSuggested attributes are only assigned to custom fields defined for an inherited process. The Inherited process model is only supported for Azure DevOps Services and Azure DevOps Server 2019.
- All reporting attributes are valid only for on-premises deployments whose projects have been configured to support SQL Server Reporting and SQL Server Analysis Services.
Reportable attributes
All reporting attributes are valid only for on-premises deployments whose projects have been configured to support SQL Server Reporting and SQL Server Analysis Services. For details, see Add reports to a project.
For a description of each reportable attribute, see Add or modify work item fields to support reporting.
For a list of fields that have reportable attributes defined by default, see Reportable fields reference.
Indexed fields
You can enable or disable indexing for a work item field by using the witadmin indexfield command. When you enable indexing for a field, you may increase the performance of finding work items whose queries specify that field. By default, the following fields are indexed: Assigned To, Created Date, Changed By, State, Reason, Area ID, Iteration ID, and Work Item Type.
If you add a custom field that you use in many of your work item queries, you may want to enable indexing for that field. For more information, see Manage work item fields (witadmin).
List field attributes
You can list the attributes assigned to a field by using the Fields — Get REST API. Enter your organization name for OrganizationName.
For example, here we list the attributes for the Iteration Path, specifying the reference name, System.IterationPath , for the fabrikam organization.
Returned data:
You can list the attributes assigned to a field by using the Fields — Get REST API. Enter your organization name for OrganizationName. To get started using REST, see Azure DevOps Services REST API Reference
For example, here we list the attributes for the Iteration Path, specifying the reference name, System.IterationPath , for the fabrikam server.
Returned data:
List attributes using witadmin command line tool
You can list select field attributes—such as the data type, reportable attributes, and indexing—using the witadmin listfields command.
For example, you can enter the following command to list the attributes defined for a specified field, such as Microsoft.VSTS.Common.Issue.
Field and attribute information appears for the named field, as shown in this example.
The Use parameter indicates the name of each project and the work item type where the field is used.
Work Item Field Explorer
You can look up the assignments of field attributes using the Work Item Field Explorer tool.
To access the Work Item Field Explorer, you must install the Process Editor Tool. Based on the version of Visual Studio you have installed, get the Process Editor Tool from one of the following extensions.
- Visual Studio 2019: Process Template Editor.
- Visual Studio 2017: TFS Process Template Editor. You can also use this version of the Process Editor to modify the old-style work item forms. You can’t use it to edit forms associated with the new web forms.
- Visual Studio 2015: TFS Power Tools.
Project integration and project field mapping
You can change how work tracking fields map to fields in Project, and you can change how specific fields are published. See [The Microsoft Project Field Mapping File](/previous-versions/azure/devops/reference/xml/customize-project-field-mapping-file.
Add and modify fields
To add fields to a process, you add them to one or more work item types. To learn more, see Customize an inheritance process.
You can add or modify the fields contained within a WIT or add a custom WIT. To learn more, see:
- For project collections that use the Inheritance process model: Customize an inheritance process.
- For project collections that use the On-premises XML process model: Customize the On-premises XML process model.
You can change the field name, the index, and the report attributes for any field except system fields by using the witadmin command-line tool. For more information, see Manage work item fields-witadmin.
To add fields to a project, you add them to one or more work item types. See Add or modify a field to track work.
You can change the field name, the index, and the report attributes for any field except system fields by using the witadmin command-line tool. For more information, see Manage work item fields-witadmin.