So here's the problem we had. User has offline files on his H: drive (Home drive), so that he can access them while traveling. If the user boots up his laptop and logs in, and THEN connects via VPN or work wireless, he can't access his H: drive at all. He can still see his offline files, but they stay offline and all other files are not accessible. Also if he disconnects his laptop goes to a meeting then comes back and docks he is unable to get access to his H: drive until he reboots. The only way to get the files back online and have access to the rest of his H: drive is to log-in WHILE having a live network connection to the office. After a bit of research I found the answer via mcseRob (See link below).
The short version is that the user needs read access to the folder that the share is pointed to, not just a sub-folder that his H: drive is pointing to. Windows checks to see if the files are back online by checking the share itself! So when it checks and doesn't have read access to the share it thinks the files are still offline. So a quick fix is to give all users read access to the share itself.
For our situation we ONLY give read access to the share and not all the sub folders below. This does allow everyone to see the sub-folder names, which may reveal user names. But follow the link below for some possible fixes to that problem.
Source: http://social.technet.microsoft.com/Forums/windows/en-US/dccf79c0-af86-43e9-99c6-20a21c22c38c/offline-files-the-work-offlinework-online-button-disappears-from-windows-explorer-after-the?forum=w7itpronetworking
If you have randomly stumbled on this blog, I first apologize... This blog started out as a note book of sorts but has quickly turned into something more. So... It may still be a little rough, but I will try and write more to the public. It will be random comments on things that I find out, and a place for commands and web pages that I have found useful...
Travis Epperson
Friday, July 18, 2014
Tuesday, December 6, 2011
Enable Windows 7 admin shares for local accounts (c$, etc)
If you are frustrated by the lack of access to admin shares in Vista or Windows 7 here is a reg hack to re-enable those shares. This will allow local accounts (On the host machine) to access admin shares. By changing this registry setting you are DISABLING UAC remote restrictions!
Hive: HKEY_LOCAL_MACHINE
Key: Software\Microsoft\Windows\CurrentVersion\Policies\System Name: LocalAccountTokenFilterPolicy Data Type: REG_DWORD
Value: 1
Please be aware that this is a security hole if your systems are not patched (Not to mention zero day attacks). Use with discretion and without blame (Me that is).
From Microsoft:
Source: http://support.microsoft.com/kb/951016/
Other Source: http://en.wikipedia.org/wiki/Administrative_share
Hive: HKEY_LOCAL_MACHINE
Key: Software\Microsoft\Windows\CurrentVersion\Policies\System Name: LocalAccountTokenFilterPolicy Data Type: REG_DWORD
Value: 1
Please be aware that this is a security hole if your systems are not patched (Not to mention zero day attacks). Use with discretion and without blame (Me that is).
From Microsoft:
How UAC remote restrictions work
To better protect those users who are members of the local Administrators group, we implement UAC restrictions on the network. This mechanism helps prevent against "loopback" attacks. This mechanism also helps prevent local malicious software from running remotely with administrative rights.
Source: http://support.microsoft.com/kb/951016/
Other Source: http://en.wikipedia.org/wiki/Administrative_share
Thursday, October 13, 2011
Check to see if a VBS script has Admin rights
Came across a problem today where we were running a VBS script that was obviously designed expecting UAC to be turned off. In looking for a way to elevate the script to Admin before running, I found some code to force the script to run as administrator without having to reghack each PC. It took a combination of sites to get the code, but here it is.
On Error Resume Next
key = CreateObject("WScript.Shell").RegRead("HKEY_USERS\s-1-5-19\")
If err.number <> 0 Then
Set objShell = CreateObject("Shell.Application")
objShell.ShellExecute "wscript.exe", Chr(34) & _
WScript.ScriptFullName & Chr(34), "", "runas", 1
WScript.Quit()End IfIf you insert that code at the beginning of your script it will first check to see if the script has Administrative rights (Either through UAC, or XP admin) and if it doesn't it will relaunch the script using runas administrator.
Warning: I haven't tested this in Windows XP. I know that the Check part will work, but don't know about the relaunch.
Reghack to get Run As Administrator in the context menu for .VBS files:
http://www.sevenforums.com/tutorials/152967-run-administrator-add-vbs-file-context-menu.html
UAC elevation code:
http://www.winhelponline.com/articles/185/1/VBScripts-and-UAC-elevation.html
Check for Admin rights code:
http://csi-windows.com/toolkit/csi-isadmin
Edited: 9-4-15 Thanks Hh Lohmann
Labels:
administrator rights,
elevated rights,
UAC,
VBS,
Windows 7
Monday, August 30, 2010
Driver Backup
If you have ever had to reload a Windows system and dreaded looking for CD's or figuring out what drivers to use, then this is the program for you!
DriverBackup! backs up all of your drivers and gives you a nice .bat file to run to install everything when you reinstall is complete. Haven't tried it yet but next chance I get I will definitely be using this. Oh and it's FREE.
http://sourceforge.net/projects/drvback/
Came across another tool that looks promising.
http://www.slimdrivers.com/
DriverBackup! backs up all of your drivers and gives you a nice .bat file to run to install everything when you reinstall is complete. Haven't tried it yet but next chance I get I will definitely be using this. Oh and it's FREE.
http://sourceforge.net/projects/drvback/
Came across another tool that looks promising.
http://www.slimdrivers.com/
Labels:
drivers,
free,
Open Source,
reinstall,
windows
Thursday, August 19, 2010
VNC Server for CE 5.0 and up
If you have ever needed a VNC server on a CE 5 or greater device then efonvnc is for you. It's a basic VNC server with a few basic functions. It has worked well for me and it's free!
http://sourceforge.net/projects/efonvnc/
http://sourceforge.net/projects/efonvnc/
Friday, June 4, 2010
Fix WinXP Explorer settings not being saved
Today I came across a problem where the users explorer settings were not being saved on reboot. Settings like Screen resolution, monitor setup, and icon placement. I first made sure he wasn't using a temporary profile. Then I deleted the following registry keys:
HKCU_ software\microsoft\windows\shellnoroam\bagmru
And
HKCU _software\microsoft\windows\shellnoroam\bags
That will force windows to recreate them and should fix any corruption that would have been causing this problem. It would be smart to make sure that the local user has read/write access to those registry keys, but you will find that out when you try to delete the keys :)
Source:
http://www.techsupportforum.com/microsoft-support/windows-xp-support/10283-windows-explorer-settings-not-being-saved.html
HKCU_ software\microsoft\windows\shellnoroam\bagmru
And
HKCU _software\microsoft\windows\shellnoroam\bags
That will force windows to recreate them and should fix any corruption that would have been causing this problem. It would be smart to make sure that the local user has read/write access to those registry keys, but you will find that out when you try to delete the keys :)
Source:
http://www.techsupportforum.com/microsoft-support/windows-xp-support/10283-windows-explorer-settings-not-being-saved.html
Tuesday, February 16, 2010
Use any webpage as your screen saver FREE
Looking for free screen savers is a virtual !MINE*FIELD@
Screen Saver sites in general tend to be full of "free" (Shareware != free) and spyware laden screen savers for download. So when I started looking for a free screen saver that would display a webpage, I cringed a little. I did some Google searching and found someone posted the following site on Digg (Yes it is useful once in awhile). This screen saver is FREE and as far as I can tell doesn't include any spyware. I haven't fully tested it, but it seems like a nice simple screen saver that allows you to display any website or anything that can be displayed in IE. Check it out and let me know what you think.
HTML Screensaver:
http://myweb.tiscali.co.uk/djmclean/htmlscreensaver.html
Side note: I wanted to display a nice full screen weather map while in screen saver mode. http://www.wunderground.com/auto/wxmap/
Screen Saver sites in general tend to be full of "free" (Shareware != free) and spyware laden screen savers for download. So when I started looking for a free screen saver that would display a webpage, I cringed a little. I did some Google searching and found someone posted the following site on Digg (Yes it is useful once in awhile). This screen saver is FREE and as far as I can tell doesn't include any spyware. I haven't fully tested it, but it seems like a nice simple screen saver that allows you to display any website or anything that can be displayed in IE. Check it out and let me know what you think.
HTML Screensaver:
http://myweb.tiscali.co.uk/djmclean/htmlscreensaver.html
Side note: I wanted to display a nice full screen weather map while in screen saver mode. http://www.wunderground.com/auto/wxmap/
Subscribe to:
Posts (Atom)