How to create an additional attribute in Active Directory from VBScript? - iis

Is it possible to create an additional attribute in Active Directory from VBScript, or do I inevitably have to first create it in the AD Schema?
When I try to set a new attribute, let's say "newattr123" with the .setInfo() and .put() methods, I get an error stating that this attribute is not yet defined in the AD.
Thank you for your help,

Judging by these search results, creating a new custom attribute doesn't seem to be possible via VBScript. At least not that I can see a solution to scripting the steps explained:
https://msexchangeguru.com/2015/11/19/ad_creating_custom_attribute/
https://fkazi.blogspot.com/2013/04/creating-custom-active-directory_27.html
For anything else AD related, SelfADSI is a good source of information.

Related

Co-authoring when using WorkBook Settings/CustomProperties

I've been looking for any documentation which suggests whether there is a way of saving Document Settings & CustomProperties such that they're automatically propagated to co-authors of the current document.
I've done some testing which suggests that's these settings aren't automatically propagated even when the document is saved. I'm also storing XML inside the document so I'm concerned that this won't be propagated as well. Since I'm doing this in Excel, I could always create a hidden sheet to store the properties in and have a watch on the table (or some similar set-up) but this isn't really the avenue I want to go down since some user could easily come along and delete the hidden sheet or manipulate its contents.
Has anyone come across this issue and managed to find a solution to it?
Welcome to Excel JS world.
I have verified this issue, it looks like a co-auth bug in settings and custom properties API. We have created 2 bugs (BUG 4173957 and BUG 4173952) for tracking this issue.
As a workaround, you could use our beta API worksheet custom properties, which is in preview, this API support co-auth. You could try it out, please let me know if you have any suggestion on this API. thanks.

What is the "Fx Functions" in Azure applications Insights? How can you add one?

Recently, I've been working with application insights and building up my queries and understanding. One of the features that I would expect is to define functions outside of the scope of a particular kusto script/query with the intention that the function can be reused from other scripts/queries.
When I started working with it, I had noticed a menu item under the sources that was labeled fx functions and had assumed that this is where I could eventually add my functions. Initially, I saw no UI path to create one and I thought this was due to authorization policies. As I'm now much more comfortable with the Kusto language, I want to break my big scripts into smaller ones but I can't.
I've checked with a private account, where I'm full owner, if I could add one but there no UI path as well. I spoke with our Azure configurators and he as an owner can't find a UI path as well. This doesn't seem to be a result of limited authorization. I've google this and I can't find anything. I've the documentation and there is not mention.
Anyone knows what this is and if it represents a custom functions library how can it be modified? How would you reference it?
Update 1
From an answer provided by #ivan-yang, it seems that I missed this when trying out with my personal account. Apparently, you can save a script as
A query
Private
Shared
A function
When saving as a function, the system creates a reference in the shared queries but with a different icon.
Update:
Correction, I can update the function. When a function and a shared query exist with the same name, then there is a problem. Once I renamed the shared query to something else, I could overwrite the function.
In the application insights -> Logs, in the editor field, you can write a query, then click save -> in the popup window, provide a name like f1, then save as Function. Then you can see the the new function f1 in the "fx Functions":
And as per my test, if you define a custom function and save it, there is no chance to modify it.
Regarding how to reference it, you can use the function like requests / traces, like using union / filter etc.

Akeneo 2.1.4 : How can I change an attribute type?

I have an attribute of type pim_catalog_number, but I need to change this to pim_catalog_simpleselect. I cannot change this in Akeneo and if I try to overwrite it by importing a new attributes-file I get the notice that I am not allowed to change the type.
But I have a scenario where I need to do this. So what's the proper way to do this? I can imagine doing some direct SQL queries, but what are the consequences of changing the type directly in the database?
For now the only solution is to export the product values, delete the attribute, create the attribute with the right type and then re-import the products.
We are currently working on a proper solution to do that, but with all the feature of the PIM involved (history, rules, proposals, search, etc) it's not an easy task. We dedicate 1 dev full time on this task for the next three months to come up with a nice solution.

CRM 2011 using pre-image in plugin

I'm looking at using a pre-image for one of my plugins so i can get values in fields that haven't been changed. I've registered a pre-image for the entity in the plugin registration tool but when I've put some code in that tries to check it it doesn't find the image. So i was wondering what it was that I've missed that is stopping it from working. I've searched Google but couldn't really find anything, cant anyone help?
Thanks
Have you ensured your string key in your code matches the image you have registerd for your plugin step?
For example.
Your code: Entity entity = (Entity)context.PreEntityImages["Target"];
Then your Entity Alias and Name when registering the image should also be named to Target.
Jimmy, assume you are not triggering the plugin during a create operation as the pre images are not available during create.
This is another possibility that the one mentioned by peter and robben above.

Change template html in sharepoint discussion reply box

I have a wss 3.0 install which needs an "anonymous" discussion board. I can modify the view so no usernames are displayed, however when I click on "reply", the message I'm replying to shows up in the rich text box with the username of the previous poster.
Is there a way to remove that username? or Remove the previous posted text altogether? I've found the schema.xml file with lots of relevant info under the ..12\TEMPLATE\FEATURES\DiscussionsList\Discuss folder, but not sure if this is the easiest way to adjust this setting.
Any comments appreciated.
Best practice says that you should always create a custom list definition instead of trying to modify the OOB assets.
The easiest way to do this is take a copy of the 12\TEMPLATE\FEATURES\DiscussionsList\Discuss folder, modify the feature Ids and names so that its unique. Then your free to change the schema render template (i.e view schema) and modify the edit and display forms.
If you need to modfify the actual entry form you may consider a custom control template : http://msdn.microsoft.com/en-us/library/aa543922.aspx
Custom list definition : http://msdn.microsoft.com/en-us/library/ms466023.aspx
Agrothe,
I have a similar requirement (hide or mask the author inside the reply thread.). What exactly inside of schema.xml do you think will allow you to do accomplish that?
Not sure if the list forms are exposed to xslt. If so, then perhaps this is another approach.
FWIW, the other solutions I have investigated:
(1) A custom event handler. Unfortunately, I can't pinpoint which event fires when someone click reply.
(2) Anonymous blog comments (http://blogs.msdn.com/sharepoint/archive/2007/08/06/anonymous-comment-feature-for-sharepoint-blog-now-available-on-codeplex.aspx).
(3) the other thing I am considering, is to introduce a global anonymous active directory login, which users can use to post anonymously. Not ideal, but for the amount of time I have spent researching a solution, might be my last hope.

Resources