Code snippet to get permissions from Windows File System.