I am trying to find how to uncheck the options in Activity history in privacy settings. I need to do it with a script preferably in powershell. I know that it is possible to block in group policy, but the end result is blocking, not unchecking. In the picture how it should look like Activity history with unchecking 2 options
the related registry key is:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System
Property: PublishUserActivities
Value: 0 = disable, 1 = enable
But the result is simliar like to configure this setting by using GPO.
Related
I want to update a field without firing the plugin execution. I tried to update it with SQL 4 CDS, but the plugin executes and I get a timeout error (This plugin is updating all child records, but at this case we want to bypass this). Is there a way to achieve this?
In C# you can actually do this using an UpdateRequest.
You would create the request like this:
var request = new UpdateRequest
{
Target = entity,
["BypassCustomPluginExecution"] = true
};
Important note: users must have the prvBypassCustomPlugins privilege to make this work. This privilege cannot be assigned through the UI and only the System Administrator role has this privilege by default.
See also Bypass Custom Business Logic - MS Learn.
I found a way to update record without triggering plugins. At SQL 4 CDS, in Settings menu there is an option "Bypass custom plugins" as you can see at the screenshot below. By checking this option, you can update the record without triggering plugin execution
I'm using TortoiseGit 2.10.0.2. I wrote an Issue Tracker plugin based on the sample programs in C#. Everything works OK except for configuration. On the Setup Issue Tracker Config screen, there is a field called "Provider parameters" where I can manually enter a configuration string. Appendix B of the manual describes the HasOptions and ShowOptionsDialog interfaces for entering the parameters with a GUI instead of a raw string. The appendix says this interface is called when the user clicks the "Options" button. However, there is no "Options" button on the Issue Tracker Config screen.
If I use the Issue Tracker Integration screen to add my plugin to a specific Git directory, the "Options" button is present and works. But I don't want to have to set this up every time a repository is cloned.
How to I get the "Options" button to show on the Setup Issue Tracker Config screen?
You can store the provider UUID and the params to .tgitconfig (i.e., called "project" on the settings page; the config keys are name bugtraq.provideruuid, bugtraq.provideruuid64 and bugtraq.providerparams). Then you can commit this file and the settings are always used.
There is, however, no "Options" button available there - the values need to be entered manually.
cf. https://tortoisegit.org/docs/tortoisegit/tgit-dug-settings.html#tgit-dug-settings-hooks-issuetracker-config
I was following this tutorial so I could add Diagnostics to my worker role. I followed all the steps but when I get up to Step 1 of the "Azure Diagnostics" section, I can see the "Send Diagnostics data to Application Insights" checkbox there, but I am unable to select it.
When I click on it, it doesn't toggle, stays unchecked.
What may cause this to occur? Are there any steps specific to Worker Roles to get this working that Web Roles didn't need?
If you don't see the "Send diagnostics data to Application Insights" dialog when you click the Checkbox (which sounds like a bug, I'm wondering if this is happening to all of your worker role projects even with newly created ones), you can still manually edit the configuration files to achieve the same thing.
First go to the Settings tab in the role properties page and add a new setting item named "APPINSIGHTS_INSTRUMENTATIONKEY". The "Type" of the setting should be "String". The "Value" of the setting should be the instrumentation key of your target Application Insights resource. You can find it on the Azure portal by selecting the resource and then go to its Settings -> Properties blade.
Then open the "diagnostics.wadcfgx" file under your worker role in Solution Explorer. From there add an attribute "sinks" with value "applicationInsights.errors" to the "DiagnosticsMonitorConfiguration" element. The element should then looks like this:
<DiagnosticMonitorConfiguration overallQuotaInMB="4096" sinks="applicationInsights.errors">
In the same file, add the following section under the WadCfg element:
<SinksConfig>
<Sink name="applicationInsights">
<ApplicationInsights />
<Channels>
<Channel logLevel="Error" name="errors" />
</Channels>
</Sink>
</SinksConfig>
So, it turns out that I needed to put the instrumentation key in both the Cloud and Local service configurations. I had only had it on cloud as I thought I would only be using the diagnostics on cloud deployments.
With a program that I'm working on, I have a need to be sure that keyboard access features like Sticky Keys is disabled for everyone.
I have code that can:
Change the active setting for the current user (enable or disable). This only affects the current user when they are logged in and is not something that is permanently set.
Change the registry setting for the current user (disabling by setting HKCU\Control Panel\Accessibility\StickyKeys\Flags to "506"). This only affects the current user's registry entry and will make sure that the settings are set for each time they log into Windows.
Change the registry setting for the ".DEFAULT" user in a similar way as item 2. This means that any new account that is set up on the computer will have Sticky Keys and the hot key for it disabled by default.
What I don't know how to do is to go about changing the setting for all of the existing users whose settings are in the registry when they are not logged in. Essentially, I want to be sure that Sticky Keys are disabled for them. Is there a convenient way that I can parse the registry for all existing user accounts and change that setting?
I Understand Your Problem, the answer is too long to post here,
Please Read this and it i think you will have your answer
let me know how you go
PS, The Link is safe and virus free, don't worry
DISABLING STICKY KEYS FOR ALL USERS
One Last thing, i thought might be useful in your situation
Please be advised that, when you Access a Hidden File called "Default" Under Users
C:\Users\Default
BE REALLY CAREFUL HERE (this file is critical)
Any Changes or settings made to this file will affect all users and all Future User Accounts
We are developing our application to be a default e-mail program, and would like it to be one of the options in the Control Panel-> Add or Remove Programs-> Access and Defaults-> Custom-> Choose a default e-mail program: area. How is this done?
It's a rather simple registry change to add the application to the list in IExplore-> Tools -> Internet Options -> Programs -> E-mail: But apparently this is not the list that is displayed in the Access and Defaults area.
Here's the msdn page for Registering Programs with Client Types, which is what you need to do. It's a few registry keys, and there is even a sample for a mail client.