Cannot remove client access rule on Exchange 2019 - exchange-server

I added a client access rule to restrict ECP access.
In the document I followed, it was a.b.c.0/24, so I added it as a.b.c.d/32.
The rule didn't work.
As I struggled, I realized that I can add a new rule with the same name, I can delete the one I just added, but I cannot delete the first rule I wrote no matter what I do, I get an error that the rule could not be found.
I guess things won't go back to normal until we delete this.
Is there a way to delete it or will things get worse if I delete the directory studio related entry?
Here is two ksc
Directory Studio View
Error View

Related

check if file exist on Sharepoint Online by File Name with Power Automate

I am trying to create a flow in Power Automate Cloud that allows me to extract some files from Google Drive and copy them to a Sharepoint folder. But before copying it, it has to check by the file name, that the file does not already exist in the sharepoint folder. I have managed to do the whole flow, except the checking.
I would be very grateful for your help.
Thank you very much. Best regards.
A File exists action doesn't currently exist but you can use the Get file metadata using path action from the SharePoint connector to do the same sort of thing.
This flow below shows you an example of what you can do ...
For demonstration purposes, I've created an array with a list of file names (full path required) that I will then test the existence for.
One of those files doesn't exist.
I then loop through each one of those and try and get the metadata for each file.
If the resulting statusCode from the call to get the metadata is not equal to 200, then we know the file doesn't exist.
Examples ...
To make this work however, you need to make sure that the Condition step will execute after the metadata call no matter what the result.
Do this by making sure the Configure run after settings are correct ...
So after all of that, all you need to do is deal with the true and false sections of the condition.

Windows Share Permissions for Domain Admins not working

I'm setting up a new share that I've enabled enumerated access on. I'm looking to limit people access to files on a certain folder. I've setup other folders that restrict access unless your in a security group. This folder thats giving me trouble was copied over from another network share. When I create a folder from scratch everything works fine so I'm curious if thats whats giving me issues.
The folder I'm trying to access is
x:/Limerock/Projects/"Project Name"
If I go into the security tab and check my effective access it says that I have full control:
The user I'm signed into is joe.jankowiak which is part of the Domain Admins security group. Domain Admins owns all the folders in above this and has full control.
When trying to enter the folder it tells me I need to request permission. I'm an admin so it goes through and adds "joe.jankowiak" to the full control list in the security permissions.
Why is it not taking my domain admin credentials to enter this folder? I'm seeing other weird behavior such as it saying "Unable to display current owner." and "You must have read permissions to view the properties of this object". Clicking continue lets me see it.
Everything looks right, I've setup 6 other new folders in the exact same manner and they work fine. I've signed in and out many times but it hasn't fixed it. Weird enough, another computer I signed into lets me access the folder just fine. Is there a way to reload file permissions since logging in/out doesn't seem to do it. Is there a command like gpupdate that I should run?
I have seen this before andyou might need to do the following operations in order:
-Replace Ownership on the folder and replace all child object ownership too=>apply or OK
-Close the security properties and re-open it again
-Add Domain Admins as full control and Replace all child object permissions... =>apply/OK
That should do it

Can I use ms flow "peek code"/json to setup new flows?

We use Sharepoint for our project files and that means there are often several layers of work to be done (project work, finances, administrative, etc) with different teams and working in different locations. There are some folders that I would like to keep "in sync" by copying files back and forth on change. I made some flows to do so, but it is pretty tedious as there are 6 sub directories for each project and a bunch of projects.
I noticed the peek code is pretty simple, it is just the name part of the directory that needs to change. Is there any way to manually define a flow or some way I can use the json/peek code to setup a flow?
For reference, I am using the sharepoint "when a file is created or modified (properties only)" and copy file flow. My directory structure looks like the following.
Thanks!
Projects Team:
ProjectNumber ProjectName
projNumber Administrative
projNumber invoices
projNumber Received
projNumber Sent
projNumber Requested
Accounting Team:
Invoices
projNumber projName
projNumber Received
projNumber Sent
projNumber Requested
It is possible, but still, it is not recommended. Because if you end up with some different hierarchy it may cause a severe impact. Anyway, let me put it in steps:-
Export your existing Flow.
Open the exported .zip file, it should have a file called definition.json.
Search for the exact hierarchy you are looking for and replace the hierarchy with what you have.
Compress it to .zip file.
Now go to https://us.flow.microsoft.com/
In the My Flows tab, click on import. import the compressed .zip file in step 4.
You are done. It should be working, if not -> Make sure you have followed JSON syntax throughout the file.

SonarQube: Cannot deactivate rule with missing quality profile

I have a rule in my SonarQube that has no Quality Profile associated with it in the search list (The red box here). When I try to change it I get this error, and when i try to click the Deactivate button, nothing happens.
I tried adding a Quality Profile with that name and then changing it, but I think that name might refer to the ID instead of the readable name so that didn't work.
How would I go about removing a rule that has a missing Quality Profile?
The best way to fix these kinds of issues is to stop your instance, clear $SQ_HOME/data/es and restart your instance. This will ensure that the ElasticSearch index of rules is in sync with the database state.
I think I may have figured it out.
I just had to manually insert a new row into the rules_profiles database table with a key that matched the one in the error. Then go back into the online interface and delete that profile.

TFS 2010 Email Alerts

I found this post, which seems to be an exact duplicate, but I can't figure out how to get the answer to work for me so I'm posting again...
TFS2010: Set up an alert that will email a member in the team when a work item is assigned to them
I want anyone (not everyone) using TFS to receive an email when they are assigned an item or when an item assigned to them changes. So, when the alert happens, the person who is currently assigned the item will receive an email.
I know I can set up this on a per-person basis with Alerts Explorer, but I can't figure out how to do this for everyone at once.
I looked at https://tfsalerts.codeplex.com/, but it looks like it's used to send alerts to groups of people...I only want to send the alert to a single relevant person (the equivalent of #Me). If this tool can do that, I'm not sure how to make it do so.
what you want to do is write a TFS Server Plugin. This plugin will fire whenever a certain event occurs. In your case, you will want to catch the WorkItemChangedEvent. In the notification, you will find old and new values of each field. By checking whether the assigned to field changed, you will know whether the WI has been reassigned.
Once you determined that the WI has been reassigned, you can take the New Value, and go to Active Directory (assuming you're using it), and get the email address. Finally, send a message.
For a code example of writing a robust server plugin (that happens to target the WorkItemChangedEvent, check out this blog post: How to Write a Robust TFS Server Plugin

Resources