Adding a mapping to Hosts file and cannot save - dns

I am trying to add a mapping to the Hosts file for my SharePoint site. Every time I hit save, it opens the Save As... dialog box and then says I need to save in My Documents, as I do not have permission to alter the Hosts file in its original location. I tried this on two accounts with Admin rights and the results were the same. Where can I enable this right?
Note: If it helps, this is for a SharePoint 2010 project. I am remotely connected to a server via RDP.

If it's anything involving permissions, odds are you need to open programs as administrator. A wise rule to abide by.

For this you can just open your fresh notepad as administrator... and then from File menu select your host file location and open file. After that edit the host file and save..... It will save without asking anything... :)

Related

Cannot find DavWWWRoot file

I have an Excel File that's held on a SharePoint site and when I go to it's DavWWWRoot path the excel file is unable to be opened. Any Idea as to why this is happening?
enter image description here
You could check that whether other files in the same path could be accessed.
If the whole DavWWWRoot is not accessible, We need to restart the server and map network drive again, according to the error, first we need to add the web site to your trusted site and select the option to logon automatically in IE settings > Internet Options:
Finally, remember to uncheck the option in IE settings > Internet Options > General:
As a result, if you map network drive again, it will work normally:
you could also refer to this similar case:
https://learn.microsoft.com/en-us/answers/questions/762616/win-10-mapped-drive-to-sharepoint-directory-with.html

Open an Access file without the security warning message [duplicate]

i have a shared access application, i created an accde file for 32-bit machine, when user open the application he/she getting a security warning
is there any way to disable this message from appearing to the users
thank you
You have to set their computer to be a trusted source. In order to get around this issue, you will need to create a Digital Certificate. Digital Certificates are good only on the computer they are created on, so if this database will be used on multiple computers then each one will have to create a Digital Certificate.
To do this, you will need to perform the following tasks:
Click on Start -> All Programs -> Microsoft Office -> Microsoft
Office Tools -> Digital Certificate For VBA Projects (If you don’t
have this, you will need to contact your IT Dept.)
Enter a Certificate Name. Make it obvious like MyProgramName and Click OK
Open the Access database which contains the security warning you want to bypass
Go into the Design View of any Module
Click on Tools -> Digital Signature
Choose your Digital Certificate you created in Step 2
Save and close the database
Re-Open the database. You will now be prompted with a different Security Warning that states the file has been digitally signed.
Check off the “Always trust files from this publisher…” box and click the Open button
All subsequent times you enter this database, you will not be prompted with a security warning.
Note - I wrote the above for our company based on Office 2003. If you're using a more recent version, the instructions may vary somewhat.
other way is following:
click on file and then options
click on trust center and then trust center settings on the right
then click on trusted locations and add new location
browse for the location and save.
that's it.. done.. now no more warnings..
That is a standard warning to indicate the file you are opening has web links and macros.
If you trust the file, just say OK or “Allow”
You can control if this message is displayed: Office button > Excel Options button > Trust Center > Trust Center Settings button (I have no idea why they have this extra button, DUMB DESIGN! )
More Information can be found here
I have an Access database that processes other Access databases. I get OP's error when connecting to one of the other Access databases. To fix the issues, I opened the other Access database and clicked Enabled Content. Then, the Access database is trusted and OP's error doesn't occur when connecting to that Access database from another Access database.
You can create a registry key that will add the directory as a trusted location and will not show the warning anymore. What's nice about this method is that you can easily automate this to happen on the computers where you deploy your app. See method #2 or #3 in this blog: http://www.accessrepairnrecovery.com/blog/fix-microsoft-access-security-notice
And in case the blogs ever gets removed, here is the important bits:
[HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Access\Security\Trusted Locations\Location20] “Path”=”C:\Database\”
“Description”=”My Database location”
Explanation about the key:
– The number “14.0” is the version of MS Office. You can change the numbers that represent the version you are executing.
– The “Location20” is a unique name that you assign. 20 can be any number that is not previously used. Other programs include default MS Access wizards, already have used other numbers. But if you want to make more than one path as trusted location, then each location must end up with different number.
– The “C:\Database\” is the physical path that you want to set to be as Trusted Location. You can place any path that you choose here.
By copy and pasting the above coding into a text file and save it with a name such as RemoveSecurityWarning.reg, you can then run the file into your PC’s registry just by making double click on the file.
The best way is to add the location of the document or the document itself to the Trusted Locations in Registry (if you use only Access runtime on client machines, there is no way to add it through the Office application, like you would do in Excel).
Here is the answer:
Adding Trusted Location to Access Run Time
You would need to create a new Location key and add the necessary Path (and Description) strings inside with the appropriate location of your file. This way the nag dialog will be gone and you won't need to worry about certificates.
Shared may mean it is located on a network share. It is not advisable to add a network location to the Trusted locations and you would need to set the additional flag AllowNetworkLocations to 1. I would advise you to copy the Access modules to the user computers, which would also make things better with the speed I believe.
If anybody else have this problem, it happened to me, with a shared file on a network environment, and the simplest solution was to install Microsoft Office service pack 2, even better is having automatic updates for Office turned on. You can find it here.

Team Foundation Server, Excel File, Stop publishing and enable refresh

Currently i generated excel file from TFS 2013.
I want to disable editing this file for some specific users.
I tried to add these users in the group Reader only, but they can modify the excel file then publish it.
On the other side, i want to give them the ability to refresh the excel file and get the latest status.
By "publish" I assume you mean the Check In permission. Readers don't have an explicit Deny on Check In by default, so you may find that people who can still Check In are members of another group with permissions. The usual group being the Contributors group.
To force the matter you can go to the file in question in Source Control Explorer, right click it and select Advanced -> Security and then explicitly set the Reader group to Deny for the Check In right.
I assume that you mean "publishing work items". If you do then people in the readers group will not be able to publish unless they also have contributed rights. So while they can click "publish" they will not be able to make changes on TFS, and they will be able to refresh.

Don´t open .cube file in excel

I have the following problem:
I have a process in SSIS and it generates .cube files and saves the files in Sharepoint folders.
I have users that open the files in excel. Some can see the data in the files and other can not see anything.
There is one user who opens the file on a computer on the company network and can not see the data in the .cube ​​file, but if the same user opens the same file on a personal computer the user can see the data in the file.
Can someone help me?
There are a couple of possibilities here. First off, Excel has something called Trusted Locations. If a file is on a network share, you may need to add that share as a Trusted Location. Check the Excel backstage (or look for a video on Youtube about Trusted Locations) for more info.
Secondly, once the file is downloaded, do the properties of the file show the 'Unblock' button? They shouldn't for a typical intranet setup but there could be something unusual about your particular environment.

Sharepoint 2007: Disabling Edit/Read Only mode?

If I open a doc in read only mode I'm able to press save and then it opens up a save as box and the default directory is the directory on the sharepoint server and if you press save you save it to the server.
This actually makes the whole process not really "read only" mode since I could actually update the document.
Is there a way to prevent this from happening so that if someone chooses read only there is no way possible to updload any changes back to the sharepoint site?
Also, it has been suggested as a solution to get rid of the edit/read only option so that people have to check out the document. Is there a way to remove the edit/read only option on documents?
Rather than relying on the client software to prevent saving, you need to modify the permissions on the server - give the user read only access to the document or even the whole list. That way they will get an access denied error if they try what you describe or uploading a different file with the same name.
The Read-only and Edit prompt are driven by SharePoint and a setting in the DOCICON.XML file. If you have added PDF as a Document extension inside the DOCICON.XML you will need to also add an additional attribute in the line and that is opencontrol=”” this seems to stop SharePoint from applying it's header to open the document.
<Mapping Key="pdf" Value="icpdf.gif" OpenControl=""/>
-Rob
(Edit : Sorry I have not tested this on SharePoint 2007 only SharePoint 2010)

Resources