Friday, May 12, 2017

Overriding Active Directory Homedrive and Homepath

Rather frustratingly I am an AD environment which sets a "home path" to a server which has only a 20 Meg file quota which causes trouble for applications which like to use this environment by default and store more than 20 Megs worth of files.

With thanks to here: https://superuser.com/a/1109615

I tried this solution:

Best solution I found was to set variables during login and before userinit.exe.
This is what I did. First created a batch file at C:\Windows\System32\userinit.cmd containing
@ECHO OFF
SET HOMEDRIVE=C:
SET HOMEPATH=\Users\%USERNAME%
SET HOMESHARE=\\localhost\C$\Users\%USERNAME%
@START C:\Windows\system32\userinit.exe
and then changed value of HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Userinit to C:\Windows\System32\userinit.cmd in the registry.
More information at: https://technet.microsoft.com/en-us/library/cc939862.aspx

This worked fine for windows 10 and except for it being a little disconcerting having a batch file call userinit.exe I think it is ok.







Wednesday, February 20, 2013

Enable/Disable Screen Sharing on Mac

# Enable Screen Sharing
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.screensharing.plist

# Disable Screen Sharing
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.screensharing.plist 


with thanks to: https://gist.github.com/stefanschmidt/2432503


Friday, October 5, 2012

ArialMT Font not found on a Mac

This error was seen when opening a .pdf file in Adobe Acrobat.

The fix was to reset the users Microsoft Office 2011 Font Cache.

cd ~/Library/Preferences/Microsoft/Office\ 2011/
mv Office\ Font\ Cache Office\ Font\ Cache_off

Friday, July 13, 2012

“Windows Update Cannot Currently Check For Updates, Because The Service Is Not Running”

with thanks to:
http://www.simplecloudworks.com/2012/05/fixing-windows-update-cannot-currently-check-for-updates-because-the-service-is-not-running/

Turn off "Windows Update" Service
Open command prompt
cd c:\Windows\Softwaredistribution\Datastore\Logs\
move edb.log edb.log.off
Turn on "Windows Update" Service

Try to check for updates again.

Another site mentioned to try updating Defender manually but this didn't seem to help.

Monday, October 3, 2011

Word can not open the file because it is larger than 512 megabytes


You can do the following: Rename the file from .docx to .zip. Open it with the Windows Explorer and navigate to the subfolder word/media. There you will find your pictures. Delete at least some of the big ones to get under 512MB.

Rename back to docx and open with Word. Word will display some errors, because it can't find some files, just click Yes to recover the contents.

After that you will find placeholders for the images you deleted. Right-Click on them, choose "Change picture", select (just SELECT!) the picture on your local harddrive (better copy it to a directory under the Word document). Beside the Insert button you will find an arrow, click it and select "Link with file". After that, your file won't get bigger, but you will need the pictures to be beside the Word file.


With thanks to:
http://social.technet.microsoft.com/Forums/en-US/office2007deploymentcompatibility/thread/886e09a0-41e1-4017-8337-e82f897cff50/

Apple remote desktop adminstrator failed to start due to an unexpected error

Kill the "ARDAgent" program, either in Activity Monitor or Terminal, and it will start back up again. When you see it running again(make sure it's a new instance via the PID), you should be able to start Remote Desktop up without any problems after that.

With thanks to:
https://discussions.apple.com/message/7321940#7321940

Monday, September 12, 2011

Migrate VMWare to Virtualbox: Windows XP does not boot, hangs at agp440.sys

This can happen when attempting to boot a WinXP VM that was created in VMWare in a Virtualbox VM.

I needed to do 2 things to fix the problem.

Disable the agp440 service (apparently you can delete/rename the file also)
Set Enable IO APIC option.

Thanks to:
http://www.virtualbox.org/wiki/Migrate_Windows
http://support.microsoft.com/kb/324764
http://www.digizenstudio.com/blog/2008/05/20/vmware-to-virtualbox-migration-issues/