Posts

Showing posts with the label windows server

PowerShell | Word fails to open documents as a background service

System: Windows 2008 Server Environment: PowerShell + Microsoft.Office.Interop.Word.ApplicationClass (word.application) (as a task in Task Scheduler) Issue: Word fails to open document in method: $docxPath = gci "myfile.docx" $wordApp = New-Object -Com Word.Application $wordApp.Visible = $false $wordDoc = $wordApp.Documents.Open($docxPath.FullName) Solution: As CRAZY as it sounds, the solution is to CREATE AN EMPTY FOLDER called "Desktop" in either: C:\Windows\SysWOW64\config\systemprofile\Desktop or C:\Windows\System32\config\systemprofile\Desktop ...depending on whether you have 64-bit Windows. http://stackoverflow.com/questions/1177974/word-interop-not-working-in-a-scheduled-task

Windows Server | Server busy Switch To...

Image
System: Windows Server 2008 R2 (Hyper-V VM) SharePoint Server 2010 Running IE8, FireFox, SharePoint Designer 2010 Error: "This action cannot be completed because the other program is busy. Choose Switch To to activate the busy program and correct the problem." Solution: I haven't totaly figured out what's happenning here. The only thing that solves it is restarting the server. I do think my issue is due to low memory available, and when the IIS is constantly asking for more memory than what is available in the system, eventually I get this error. So while working on the server, regular iisresets keeps this from happening.

Windows Server RunMRU list

Image
I haven't had my start->run programs list populated for quite some time. Today I decided to look for a way to ativate it and come up with the apparently easy solution: - Right-click the Taskbar and choose Properties - Select the Start Menu tab - Uncheck the following option: - Store and display a list of recently opened programs Source http://www.winhelponline.com/articles/129/1/Clearing-the-Run-MRU-entries-in-Windows-Vista.html