Accessing UNC paths programmatically

Hi,
I have a URL in the following format: 
http://mysite/Default.aspx?source=UNCPathtoaresource
The Querystring parameter "source" always points to a UNC path location.
Now, the issue is, if I provide a UNC path to a resource on  fileshare, everything works fine. However,
if i provide a UNC Path to resource on SharePoint document library then the URL does not render anything.
How is SharePoint UNC path different than fileshare UNC Path? what makes it inaccessible?
Thanks,

Hi Cooltechie,
Thanks for posting your issue,
You can achieve the same implementation using JS script. below is the URL that has code snippet can be used for this implementation. Checkout if this is easy implementation for your requirement.
http://spjsblog.com/category/document-library/
I hope this is helpful to you. If this works, Please mark it as Answered.
Regards,
Dharmendra Singh (MCPD-EA | MCTS)
Blog : http://sharepoint-community.net/profile/DharmendraSingh

Similar Messages

  • Unable to access UNC path on 2012 R2 file server with ABE enabled

    Brief Description:
    We have granted access to people via a domain local group on a folder on a file server that is three levels deep from the share, i.e. \\servercluster\share\folder1\folder2\folder3, where folder3 is where the group is granted Read & Execute
    access.  The share has Access-Based Enumeration (ABE) enabled and the Everyone group has Full Control share permissions.  We also use DFS, so the path for that is \\domain\dfsrootname\folderfororganization\share\folder1\folder2\folder3.  People
    in the aforementioned group only have access to folder3, its subfolders, and files.  They do not have any access to folder2 or any of the other folders higher in the tree at all.  Also, consider that folder3 contains a subfolder folder4, which is
    simply inheriting permissions. 
    What we have found is that clients running Windows 7 SP1 have strange access issues when attempting to access the folder via either the DFS or cluster name UNC paths.
    Detailed Testing Results Accessing Folder3 Directly:
    NOTE:  "UNC path" in the following test results means either the DFS or the cluster name share path.  The results are the same regardless which path is used.
    1 - Enter UNC path without trailing backslash in Windows Explorer's address bar:
    Windows Explorer seems to do nothing for about 30 seconds and then displays the following error:
    "Windows cannot access <UNC path>
    Check the spelling of the name.  Otherwise, there might be a problem with your network.  To try to identify and resolve network problems, click Diagnose."
    2 - Enter UNC path with trailing backslash in Windows Explorer's address bar:
    The same error encountered in #1 is displayed immediately.
    3 - Enter UNC path with or without trailing backslash but contained in double quotes in Windows Explorer's address bar:
    Internet Explorer opens and displays the error:
    "Internet Explorer cannot display the webpage"
    4 - Enter UNC path without trailing backslash in Run dialog box:
    An error message immediately appears:
    "<UNC path>
    The specified path does not exist.
    Check the path and then try again."
    5 - Enter UNC path with trailing backslash in Run dialog box:
    Same as #4.
    6 - Enter UNC path without trailing backslash but contained in double quotes in Run dialog box:
    Same as #4.
    7 - Enter UNC path with trailing backslash and contained in double quotes in Run dialog box:
    Windows Explorer opens the correct UNC path location and displays the folder contents.  This is the expected behavior for all of these attempts.
    8 - Create Shortcut to UNC path by performing #7 and then dragging the folder icon in Windows Explorer's address bar to either to the desktop or the Favorites section, and then attempt to access the folder via
    the shortcut.
    Same as #7.
    9 - Attempt to create a shortcut to the UNC path using the New Shortcut wizard:
    Unable to successfully create the shortcut, regardless if you add a backslash at the end or enclose the path in double qutoes.  When you press Next after entering the UNC path, you receive the following error:
    "The file <UNC path> cannot be found."
    10 - Disable ABE on the share and repeat all tests:
    All tests with ABE disabled on the share have the same result as #7.  There is no issue whatsoever accessing the desired folder when ABE is disabled.
    Other Notable Behaviors:
    If the aforementioned folder (folder3) contains one or more subfolders (e.g. folder4), you are able to access those subfolders via UNC path directly and then go up one level to folder3 without issue, even when ABE is enabled.  You just cannot access
    folder3 directly via UNC path unless you attempt to access it via the method used in #7 above or a successfully created shortcut.
    Adding a user account directly to the folder3 ACL rather than using group membership makes no difference.
    If access is granted to folder4 instead of folder3 (the fourth folder deep rather than the third), accessing folder4 directly via UNC path is not an issue regardless of ABE status or attempted access method.
    Windows 8 and 8.1 clients have no trouble directly accessing the folder's UNC path via any method.  The unusual, undesirable behavior seen in Windows 7 is non-existent on Windows 8.x clients.
    Systems Involved:
    Client:  Windows 7 Enterprise SP1 x86
    Server:  Windows Server 2012 R2 Standard in cluster
    Other Details About the Systems:
    Both the client and the file server cluster are in the domain AD DS domain.
    The client and the file server cluster are in different subnets.
    There is no firewall or other packet inspection or compression service/device in between the client and server (not even Windows Firewall).
    Question:
    Is there a way to fix this behavior with Windows 7 clients and ABE enabled on the share so that it works correctly without forcing the clients or server to use SMBv1 or disabling ABE on the shares?

    7-Zip 9.20
    Adobe Flash Player 13 ActiveX
    Cisco WebEx Meetings
    Java 7 Update 51
    It should be noted that I can't repeat the behavior on my test machine again today after some changes were made in our environment.
    Today, I found that someone had modified permissions on the folder to give the group my test account was a member of rights to traverse the folder hierarchy from the root of the share.  Additionally, in testing something with FIPS mode, I ended up reverting
    my virtual machine to an older snapshot.
    After removing the extra permissions that weren't present when I was doing my testing and reverting to the older snapshot, I  am not having issues accessing the real equivalent of folder3 directly in Windows Explorer via DFS UNC path or creating a shortcut
    with the New Shortcut wizard.
    Things have been fundamentally changed and I cannot repeat the behavior on this particular folder.  I will see if I can recreate the same situation on another folder.

  • Intermittent loss of UNC path access on Windows Server 2012

    Hi All,
    I hope someone can help with a major headache we've been having on two Windows Server 2012 boxes since September this year. Basically, these servers will intermittently lose the ability to browse network shares from windows explorer and the only way we have
    found to resolve this is to reboot. When the issue happens, we can't even log into the server as it sits at 'applying user settings' - presumably as it is failing to access the netlogon share on our DCs. If we have an active RDP session when the issue occurs,
    we can connect. In this instance we see that if you enter a UNC path in Windows explorer and hit enter, nothing happens - no error messages or anything. The only way I can get any response is when trying to access the IPC$ share on another server, which gives
    the following response:
    \\server\ipc$ is not accessible. You might not have permission to use this resource, Contact the administrator of this server to find out if you have access permissions.
    The parameter is incorrect.
    Everything looks right from a physical network perspective, as we can ping from the affected servers and DNS queries are working fine. I can even run net view from powershell and see the local servers and shares on these, however any attempt to access shares
    just hangs the powershell session.
    If I look in the SMBClient event logs, I can see entries like the following:
    Event ID 30805
    The client lost its session to the server.
    Error: The transport connection is now disconnected.
    This is made worse by the fact that when this issue happens, we can't even cleanly reboot the server (it just hangs) and have to perform a cold boot.
    The firewall has been turned off and we have taken off our antivirus software to eliminate it as a possible cause. We have even rebuilt one of these servers on a clean install of 2012 R2, but the issue re-appeared. We have also tried using different NIC
    drivers (Broadcom NICs installed) to no avail. We have also tried disabling IPv6.
    We have logged a ticket with Microsoft support, who have come back telling us that this could be related to a known bug with DFS in 2012 for which a fix is being tested prior to release in a few weeks. However, I can't sit around on my hands until then on
    the off chance that this fix will resolve our problem. These servers are hosting our production Lync 2013 front end service and when this issue occurs it breaks the address book search and response group services, so this issue is of critical importance for
    us to get resolved asap.
    Any help on this would be greatly appreciated.

    Hi,
    That's right, if you hit enter absolutely nothing happens, no error messages. It makes no difference if I try name or IP address - even trying \\localhost doesn't work. A few minutes later after trying, an entry appears in the SMBClient event logs as mentioned
    in my original post. To me it looks like something deep within the networking operations of the OS is randomly breaking. Also, if I try to browse the network from Windows explorer, it just hangs. When I try to restart the workstation service, it just gets
    permanently stuck in a stopping state and the server has to be cold booted. Once it boots up, everything is working fine again....until the next time. There is absolutely nothing appearing in the application or system event logs indicating the root cause.
    I've checked and DNS resolution is working OK and I can telnet to other hosts on all the required ports.
    I had originally thought it might be related to the Broadcom NICs as we've had issues with them in the past, but we switched over to use the 2012 inbox driver for them and the same issue happens. I should also mention that one server is a blade and the other
    a rackmount box. Dell support have run full diagnostics on both and have come up clean, so it doesn't appear to be a hardware issue. The even more baffling thing is that we have a third server with identical spec and config that does not have the problem.
    The only difference with this third server is that it is not part of a Lync pool pairing using DFS and sits in a remote location on a different LAN.
    I had thought of trying to drop back to use SMB1 by disabling SMB2 and 3, but I'm not sure if this would adversely affect any other services.
    This one really has me stumped.

  • Acrobat Reader XI fail to open file from unc path "Access Denied"

    Hi,
    When we try to open a pdf file from an unc path by double-click on it there is an error message : "There was error opening this files. Access Denied"
    If we do "File -> Open" the file open correctly. Same if we copy the file localy.
    After looking around Internet and other thread Acrobat Reader X got the same problem but seemed to be resolved with an update.
    If we desable "Enable Protected Mode at startup" the file open correctly (it is not a solution).
    Does anyone have a solution to this problem ?
    OS : Windows XP SP3
    Acrobat Reader : 11.0.2
    Regards,

    I have also seen this occur with one user's computer.  Another user with similar privileges and software setup does not exhibit the same issue however.  Would love Adobe to investigate and address this issue.

  • The specified UNC path does not contain a valid WIM file or you do not have permission to access it. please specify a valid path

    I loaded 4 captured images into SCCM via the Add Operating System Image Wizard 2 months ago.
    I have since captured another image to the same location (which is the SCCM site server) and tried to add it to the server.
    I am getting error
    the specified UNC path does not contain a valid WIM file or you do not have permission to access it.  please specify a valid path
    nothing has changed on the site server that i can think of.
    i am domain admin and permissions have not changed.
    anyone got any answers?
    please help i am baffled

    I am having similer issues.
    Win 2003 SP2 - SCCM2007 SP2 R2 single site with MDT2010 intergrated but can not get a MDT2010 TS Captured WIM to import into SCCM OS Images "Invalid WIM". allso i tried to mount the MDT WIM image without luck (Invalid Image). however a SCCM TS
    will Capture and I can Import it into OS Images. it seems like something is amiss with MDT or WAIK possibly.

  • Creating a symlink directory on a network share to a path below a mapped drive letter, local path, or UNC path does not work

    Am I correct in assuming I can not create a `symlinkd` to a network share, local path, or a UNC path on a network share that will be accessible by clients?
    ###Mapped drive letters don't work:
    1) navigate to a network share:
    pushd \\windows2008server\share\
    2) make a hardlink:
    mklink /d test_sharedir t:\directory\
    dir .\test_sharedir
    #Directory of Z:\test_sharedir
    #File Not Found
    UNC paths don't work:
    1) navigate to a network share:
    pushd \\windows2008server\share\
    2) make a symlink:
    mklink /d test_dirunc \\windows2008server\share
    dir .\test_dirunc
    #Directory of Z:\test_dirunc
    #File Not Found
    I can create a functional `symlinkd` on a local drive to a mapped drive letter or a UNC path.
    Are my assumptions above correct?
    We are in the middle of a migration and have created two symlinkd to UNC paths for shared DLLs, one below c:\windows\system32\ (directing to a share containing 64-bit DLLs) and one below c:\windows\syswow64 (directing to a share containing 32-bit DLLs).
    On the file server, we have had a path to 32-bit DLLs (from Windows 7 clients: s:\dll\).  I am attempting to rename this directory so that it is accessible via "s:\dll32\" and would like to create a symlinkd that links "s:\dll" to
    "s:\dll32" [again where S: is a mapped drive on a Windows 2008 server].  How do I do this?
    Thanks,
    Matt

    Hello Mandy,
    The link you sent me is for Netapp CIFS server daemon contained within DataOnTap (the Netapp OS) to follow symlinks.  I am inquiring about the Microsoft products Windows Server and Windows 7.
    To gain a better understanding of the Microsoft Windows Server and client (Windows) CIFS stacks and interaction of the stacks, I have referred to Figure 6 "Server Message Block Server Model" within the following (albeit older) document: http://download.microsoft.com/download/2/8/0/2800a518-7ac6-4aac-bd85-74d2c52e1ec6/tuning.doc
    You will see the following:
    I assume that the Windows Server CIFS server service must be "smart enough" to determine that a CIFS client is attempting access to a SYMLINKD and actually fill the request by following the SYMLINKD.  The CIFS server service does not appear
    to operate like this.
    1) Am I correct in my assumption that the CIFS client (redirector) and the CIFS server (server) do not following symbolic links (whether they be file or directory)?
    2) If not, how do I submit a feature request for this so that it can be reviewed and approved or not approved for inclusion/hotfix release?
    Thanks for your time,
    Matt Brown
    [UPDATE]
    Note that you can use a `directory junction` instead of using a SYMLINKD, to link to LOCAL resources (source). However, `directory junctions` do not allow access to resources over UNC.

  • How do I create an installer for my project that allows for variable data entry like a server unc path?

    Hello All,
    I have a questions and a few hours of scouring the internet hasn't brought me much closer to an answer.
    Here's what I want to do. I have created a visual c# wpf application. I want to have an installer that during install time will have a text box or something where I can enter a server path as a string. Basically my application needs to know where to look
    for a server unc path \\server\somesharedfolder that it will be accessing primarily for its work. Secondly, how do I reference said information from within my code.
    I have come across application/user scoped settings, which appears to be what I'm looking for. However I can't find a way to have the installer prompt for a value "Server Path:" __________ that I could type into during installation. So far it appears
    the only way would be to edit the config.deploy file before running the installer, which isn't a big deal but you'd think there'd be an easy way to take in variables during install.
    EDIT: Apparently I can't edit the config.deploy file as I get an error message about the hash not matching.
    Thanks for your help!
    Lance

    Hello,
    The forums I found confusing, didn't know the best place to put this question so I put it here.
    I have found the answer over at stackoverflow and will detail here for anyone who may stumble across the same problem.
    The problem is ClickOnce seemingly doesn't support this feature. Installshield LE either doesn't or does but its incredibly too complicated if all you need is one variable passed to the registry during installation. And it seems the words used for googling
    this particular problem will never lead you to the solution.
    So here's how to do it (we will be first adding the Visual Studio Installer Add-on to restore original installer project functionality):
    1) Inside of visual studio 2013 go to Tools -> Extensions and Updates
    2) On the left-hand side click on Online -> Visual Studio Gallery
    3) In the upper-right search box search for "Visual Studio Installer"
    4) Download the extension labeled "Microsoft Visual Studio Installer Projects"
    5) Install, then open a new project under Templates -> Other Project Templates -> Visual Studio Installer -> Setup Project
    6) Now for the gold. In the solution explorer there are icons in a bar just below its title bar, highlight till you see "User Interface Setup" and open it.
    7) Now you can right click on Start, Progress, End etc any Category heading and hit Add Dialog.
    8) From here for my purposes, I used TextBoxes A
    9) Once you add it, click on it and observe its properties window. You will see Label, Property, and Value. Make a note of the property name as it will be used to store the data directly into the registry. *Note: there appears to be no way to perform data
    validation using the built in textbox dialogs, users can enter whatever they want and move on.
    10) Go to the registry editor on the same icon bar under solution explorer.
    11) Specify your registry folder, make a new value (I used string) and name it whatever you like. In the value section enter the property label formatted as such   [EDITA1]   depending on your value. 
    12) Now when you run the installer for your project, it will take data into that field and place it into the registry provided it has access to that key with the permissions you run the program under.

  • UNC paths and java.io.file in Oracle

    Hi,
    I'm just getting to grips with using some basic java in the database. I'm using 8.1.7 on W2K.
    I'm trying to test for the existance of a file on a separate w2k domain:
    import java.io.File;
    public class JFileExists {
    public static int fileexists (String fileName) {
    File myFile = new File (fileName);
    boolean retval = myFile.exists();
    if (retval) return 1; else return 0;
    public static void main (String args[]) {
    System.out.println (
    fileexists (args[0])
    grant javasyspriv to mp;
    function jfn_file_exists (file_in IN VARCHAR2) RETURN number
    AS LANGUAGE JAVA NAME 'JFileExists.fileexists (java.lang.String) return int';
    From the command prompt all is well:
    E:\java>"c:\oracle\ora81\Apache\jdk\bin\java.exe" JFileExists i:\test.txt
    1
    E:\java>"c:\oracle\ora81\Apache\jdk\bin\java.exe" JFileExists \\mpweb1\image\test.txt
    1
    But when loaded into oracle its returning false with the UNC path. (but is ok with a mapped drive to the same path)
    SQL> declare
    2 begin
    3 pa_main.pr_print(to_char(pa_main.jfn_file_exists('I:\test.txt')));
    4 pa_main.pr_print(to_char(pa_main.jfn_file_exists('\\mpweb1\image\test.txt')));
    5 end;
    6 /
    1
    0
    PL/SQL procedure successfully completed.
    The oracleservicesid and listener are starting under a user called oracle_user which is a member
    of the admins and domain admins group.
    mpweb1 is on a separate domain to the database server mpdb1 but it also has a user called oracle_user with the same password.
    oracle_user has full access to the share in question.
    Am I missing something? I was trying to keep the database server and web server on different domains for better security
    - but would things be easier if they were on the same domain?
    Any help much appreciated for this java newbi!
    Thanks,
    Simon.
    null

    I am also having problems with UNC paths. But I cannot access the location even if it is mapped as a drive. In JDK VJM I do not have a problem, but in Oracle it says the file cannot be found and say permission denied. I will try to change the user that starts the database and see if that helps.
    null

  • Finding the UNC path of a symlink'ed directory

    Hi Scripting Guys,
    I have multiple powershell scripts which access data files on a remote networked machine working through a symlink on the local machine. This way the remote fiile location isn't coded in the scripts, and if we decide to change the location of the data then
    only the symlink needs to be recreated. So, for example, "c:\my_scripting\my_symlink\" in fact takes you to "\\remote_machine\my_data\"
    In a script I am working on now, I have a need to be able to retrieve the UNC path of the remote data directory, in other words - where is my_symlink pointing to?
    Can you help me with this please?
    Cheers,
    Colin

    Here's my solution so far (assuming only one reparse point in the local starting directory):
    # get the remote path associated with my_symlink
    [string] $uncPath = &cmd /C dir /AL *
    $uncPath = $uncPath.Split("[`[`]]")[1]
    # get the logical disk object
    $networkDrive = $uncPath.SubString(0,2)
    $logicalDisk = Gwmi Win32_LogicalDisk -filter "DriveType = 4 AND DeviceID = '$networkDrive'"
    # replace the network drive letter with provider name
    $uncPath = $uncPath.Replace($networkDrive, $logicalDisk.ProviderName)

  • Unable to see the file share content via UNC path

    I have run a cmd command to modify the NTFS permissions on a few home directories.
    That command has helped me to remove all from the ACL of shared folders; and add domain admins into it.
    I am an admin on that Windows server. Now, whenever I try to access any home directory via UNC path; it doesn't displays the files and folders in it. But, if I go to the server and try to open the particular home directory from there...first it gives me
    a prompt that I currently do not have access on folder and then gives me an option to click on continue and then I can access the files and folders within the directory.
    I am also able to see the files and folders in the directory via UNC path after doing the above steps.
    Can somebody help me understand what I did wrong here and how can this be resolved now?

    Sorry, am added into local administratir group. But, NTFS permissions shows that I have only "read" and "change" permissions (I have checked this from effective permissions).
    The ACL of folder shows only "Domain Admins" have full access and I am not a part of AD group "Domain Admins". I think this is the root cause of the issue.
    I am running below mentioned command to give myself full access on the file shares without making any changes to the current ACL of all shared folders. However, it is not working and not even throwing any error message.
    for /f %i in (u:\users.txt) do cacls \\hdfile01\users$\%i /C /G "AMadm":F
    users.txt contains 'cn'. Another thing to notice here is that if I just keep one ID in .txt file and then run my command; it is working. But its not running for all users in loop.
    Can somebody please help.

  • Excel Formula Referring to a UNC Path is Corrupted when Open with Particular Workstation

    Hi Experts & Support,
    I have a critical problem when trying to refer across Excel workbooks which all are located in different network folders.
    There is a cell formula referring to another Excel file using UNC path, for instance, \\myserver\share\folder1\file.xlsm.
    It works as long as anyone who is opening the file has no mapped network drive-- access this Excel file directly via UNC path. 
    However, it turns out that one of the workstation (Windows 2008 Server x64), when trying to access this file--even from UNC path directly-- the link is corrupted. The formula is changed automatically to \\myserver\folder1\file.xlsm (please notice a missing
    \share\).
    And therefore, when the user on Windows 2008 Server save that Excel file, it causes the original file to be corrupted and every one who access the same file from another computers will all encounter a broken link then.
    This Windows 2008 Server has no mapped network drive at all. We have done a lot of researches on the Internet but still couldn't find a solution to this. Is there any way we can investigate further and resolve this issue please?
    Thanks in advance.

    Hi,
    In general,this issue should be  caused by a mapped drive.you can refer to the KB below:
    http://support.microsoft.com/kb/328440/en-us
    However, as you can be sure that there is no mapped drive in this server. could you please provide a litter more information about this server? Did a different version of Excel install in this server? Maybe you can try a repair of the office
    program.
    And I guess we can avoid this by using Hyperlink function.
    Wind Zhang
    TechNet Community Support

  • PcdStartUp.properties  - Setting PCD Import Folder to UNC path

    Hi All,
    Has anyone managed to successfully configure the pcdStartUp.properties so that the PCD import parameter Pcd.TransportApplication.ImportRootDir points to either a share or UNC path on another server?
    I want to configure  Pcd.TransportApplication.ImportRootDir  to point to our development server's export folder 
    \\devport\f$\usr\sap\PD1\SYS\global\pcd\Export
      but I can't get it to work.
    I've tried every variation I can think of but none works.
    The value I am currently setting is:
    Pcd.TransportApplication.ImportRootDir = \\\\devport\\f$\\usr\\sap\\PD1\\SYS\\global\\pcd\\Export
    The error I get is:
    Root directory for import not found:
    \\devport\f$\usr\sap\PD1\SYS\global\pcd\Export.
    Check the transport application configuration.
    I've also tried using a drive mapping rather than UNC but can't get that to work.
    Cheers,
    Steve
    Edited by: Steve Archer on Apr 23, 2009 3:44 PM

    This happens with the AS Java world! It looks like the Java runtime process owners (<sid>adm and SAPService<sid>) can only read local disks. I have been caught with the before and gave up trying to work it out. The issue also comes up with any Java apps that try to access non-local drives.
    Edited by: Michael Nicholls on Apr 24, 2009 5:41 AM

  • Error in UNC path while using RWCLIENT

    I am trying to run a report from command line using a bat file.The content of
    the bat file is as follows
    D:\ORANT\9IDS\BIN\RWCLIENT report=\\nyclegchuias\d\sample.rdf
    userid=sdh/arbosh38@pcsprod server=rep_nyclegchuias DESNAME=D:\SAMPLE30155.PDF
    DESTYPE=FILE DESFORMAT=PDF BATCH=YES LOGFILE=D:\LOGFILE30155.LOG
    ERRFILE=D:\ERRORFILE30155.LOG
    If I map a drive to \\nyclegchuias\d as J: and give the parameter
    D:\ORANT\9IDS\BIN\RWCLIENT report=D:\sample.rdf userid=sdh/arbosh38@pcsprod
    server=rep_nyclegchuias DESNAME=D:\SAMPLE30155.PDF DESTYPE=FILE DESFORMAT=PDF
    BATCH=YES LOGFILE=D:\LOGFILE30155.LOG ERRFILE=D:\ERRORFILE30155.LOG
    the report runs fine.So what can be the problem in RWCLIENT not accepting UNC
    path ?

    Not all Oracle products support UNC. I don't know if iDS supports UNC.
    On the other hand, "report=\\nyclegchuias\d\sample.rdf" looks like a strange UNC to me. I would expect something like report=\\nyclegchuias\reports\sample.rdf. Are you sure you have a share named d on nyclegchuias? Do you, or the reports server, have access to this directory?
    You say that you define a J drive, but then you issue the command with "report=D:\sample.rdf", which still doesn't refer to \\nyclegchuias\d\sample.rdf, but to the (local?) d drive.

  • Audit logs on Windows 2008 works different when file is modified from UNC path

    Hello All,
    Here i have a strange situation with the generation of audit logs when folders\files are changed locally(my computer) on the server (vs) from the UNC path
    (\\servername\drive$\folder\....).
    File Server : Windows 2008 R2.
    Audting enabled and SACL set on the folder level.
    Enabled advanced auditing for Audit Object Access and enabled the force sub category audit settings on vista \ window 2008 policy via GPO and also verified that the sub category is set.
    also set SACL on one folder on the R drive. (\\servername\r$\<folder>\<audited folder>
    auditpol /get /category:"Object Access"
    Object Access : File System                            
    Success and Failure
    Situation : 1
    When i make any manipulations (traversing \ listing \ adding or deleting folder or files) on the server locally from my computer ---> . r drive --> folder --> audited folder , i get the event id generated (4663) with all the correct
    information.
    For ex: created a new txt file.
    Object: Object Server: Security, Object Type: File, Object Name: R:\Audits1\folder1\New Text Document.txt, Handle ID: 0xcb4
    Process Information: Process ID: 0x1bac , Process Name: C:\Windows\explorer.exe
    Access Request Information: Accesses: WriteData (or AddFile) AppendData (or AddSubdirectory or CreatePipeInstance) , Access Mask: 0x6
    Situation : 2
    When i make the same  manipulations (traversing \ listing \ adding or deleting folder or files) on the server or remotely via the UNC path \\servername\r$\folder\audited folder or DFS share or \\servername\<sharename>
    , i dont get the event id generated (4663) with the needed information.
    For ex: created a new txt file.
    Object: Object Server:      
    Security , Object Type:File ,         
    Object Name:         
    R:\Audits1\folder1\New Rich Text Document (3).rtf , Handle ID:  
    0xa3c
    Process Information: Process ID: 0x4, Process Name:
    Access Request Information: 
    Accesses: WriteData(or addfile), Access Mask: 0x100
    In the second situation process name is empty (for the file events) and also found that the logs generated are very less compared to the first situation.
    Please suggest if there is any fix with this.
    Thanks,

    Enable the following auditing on the server either through domain
    policy or local policy:
    Audit logon events - Success
    Audit Object Access  - Success
    On the Auditing tab, add Everyone with the following audit settings.

  • UNC Paths

    Is it possible to publish links in the wiki that go to a file or folder on the network? I would like to link to files on the network that everyone has access to instead of uploading it to the X-Serve. Is there a way to do this? I tried using the UNC path but it didn't work because the wiki prefaced it with http:// and the name of the server. Then I tried the IP address but that didn't work either.
    Any ideas?

    OS X doesn't support UNC paths. In the windows world, a UNC path, \\servername\sharename, will automatically use SMB as the connection protocol. With OS X you have to specify the protocol as with any other URL. So \\servername\sharename becomes smb://servername/sharename, or if it's an apple server, afp://servername/sharename.

Maybe you are looking for