How do you disable the office 2013 clipboard? - windows

This is what I tried:
[HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common\General]
"AcbControl"=dword:00000001
but the office clipboard still appears. Does this reg flag still work as described in this Kb?
And it did get set:

AcbControl does not disable the Office Clipboard, it merely disables/enables the automatic showing of the Office Clipboard pane.
You can test this manually by enabling the option "Show Office Clipboard Automatically":
If you now check your registry it will get an AcbControl entry with value 0
Now switch off the "Show Office Clipboard Automatically" option:
Check the registry again and notice the AcbControl switched to 1 (refresh RegEdit if you don't see it right away)
If you now copy twice you'll see that it still uses the Office Clipboard, but it just didn't change the status of the pane from invisible to visible.
So you can't turn the Office Clipboard off (you can programatically capture Copy commands and if detected clear the copy buffer, but I don't sense from your question that this is what you are looking for)

To completely disable Office Clipboard - use decimal value 2147483648 (or hexadecimal 80000000).
Source: https://support.microsoft.com/en-us/help/2817672/macro-takes-longer-than-expected-to-execute-many-individual-copy-and-p

Related

User Preference for "Restore Previous Session" in Firefox About:Config

I would like to set "Restore Previous Session" in Firefox programmatically using user_pref() in a *.js file. What is the key, value pair for this user preference?
Alternatively, is there a way to detect changes to user preferences (e.g., as can be done with with dconf watch / on linux gsettings? I have diff'ed the prefs.js file before and after manually selecting the "Restore Previous Session" in the GUI, but do not see a corresponding change between the prefs.js files.
I resorted to searching the Firefox source code at https://github.com/mozilla/gecko-dev for "Restore previous session" since my typical Google searches were not turning anything up. From the source code results, I was able to infer the correct key/value pair as
user_pref("browser.startup.page", 3);
This was confirmed by http://kb.mozillazine.org/Browser.startup.page after additional Google searching on this key/value pair. (It also showed up in the pref.js diff's but was not obvious due to the key's cryptic name)

Crashing Windows 7 using batch

I came across this link : https://vmxp.wordpress.com/2014/10/29/stress-testing-an-esxi-host-with-windows-server-vms/
.Since I am not so good in powershell i turned the whole thing to a simple batch script:
:loop
start testlimit64 -d
timeout /t 15
taskkill /f /im "testlimit64.exe"
timeout /t 9
goto loop
Note that I got into SYSTEM ACCOUNT before doing that using PsExec. The system I am using is a VM under ESXi. But nothing is happening, even the vm is not crashing. My aim is to crash whole esxi server.
I have two VMs under the ESXi and I ran the above scripts in both of them.
Still no luck. Am I missing something?
Windows 2000 Feature Allows a Memory.dmp File to Be Generated with Keyboard
Q244139
The information in this article applies to:
Microsoft Windows 2000 Advanced Server
Microsoft Windows 2000 Datacenter Server
Microsoft Windows 2000 Professional
Microsoft Windows 2000 Server
IMPORTANT: This article contains information about editing the registry. Before you edit the registry, make sure you understand how to restore it if a problem occurs. For information about how to do this, view the "Restoring the Registry" Help topic in Regedit.exe or the "Restoring a Registry Key" Help topic in Regedt32.exe.
SUMMARY
Microsoft Windows 2000 includes a feature that enables you to have the system stop responding and generate a Memory.dmp file (if configured to do so). The "Stop" screen that generates contains the following parameters:
*** STOP: 0x000000E2 (0x00000000,0x00000000,0x00000000,0x00000000)
The end-user manually generated the crashdump.
MORE INFORMATION
WARNING: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk.
For information about how to edit the registry, view the "Changing Keys and Values" Help topic in Registry Editor (Regedit.exe) or the "Add and Delete Information in the Registry" and "Edit Registry Data" Help topics in Regedt32.exe. Note that you should back up the registry before you edit it. If you are running Windows NT or Windows 2000, you should also update your Emergency Repair Disk (ERD).
This feature is disabled by default. To enable this feature, you must edit the registry as indicated below and restart the computer. After restarting the computer, you can generate a system to stop responding by holding down the right CTRL key and pressing the SCROLL LOCK key twice. Pressing left CTRL key does not generate the system to stop responding.
Please note that the steps below will not work on Legacy Free computers, i.e., those that use a USB keyboard. For those, you must attach a debugger.
Start Registry Editor (Regedt32.exe).
Locate the following key in the registry:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters
On the Edit menu, click Add Value, and then add the following registry value:
Value Name: CrashOnCtrlScroll
Data Type: REG_DWORD
Value: 1
Quit Registry Editor.
Additional query words: blue screen force dump bluescreen crash memory.dmp
For USB keyboards a USB one was added in a later OS. This sets Left Ctrl + Space, Spece for both USB (kbdhid) and PS/2 (i8042) keyboards.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\i8042prt\crashdump]
"Dump1Keys"=dword:00000020
"Dump2Key"=dword:0000003D
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\kbdhid\crashdump]
"Dump1Keys"=dword:00000020
"Dump2Key"=dword:0000003D
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters]
"CrashOnCtrlScroll"=-
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\kbdhid\Parameters]
"CrashOnCtrlScroll"=-

How can I tell if Office Clipboard collection is turned on?

I want to know whether the Office clipboard collection is turned on. This is the clipboard pane that saves the last 24 clipboard data. On Office 2007 and 2010 you get it by expanding the clipboard area on the Home ribbon, and in Office 2003 you can open it from the task pane area, and selecting clipboard from the menu.
I've an Office plugin.
Although I'm doing all sort of API hooking (using IAT), I'm looking for the simplest solution.
My initial idea was to look for a window with title: "Collect and Paste 2.0" (check out yourself with Spy++), with various Windows class (e.g. in Word it is bosa_sdm_msword). However, users can check the 'Collect without showing Office clipboard', and restart Office. At this point, Office will collect data without any sign to the Window.
I am looking at registry key: Software\Microsoft\Office\%d.0\Common\General\AcbOn. This is cool, but this entry isn't saved until user exit Office. Hence, users can open a different application, turn on collection, close the window.
Office clipboard creates an icon in the notification area. See question: how to acquire list of notification area icons?. Unfortunately, this question got no answer that work. If you know the answer for this, please reply here or on that question (you'll get +1 twice!)
As I said, I'm inside the process of the application and I'm able to intercept anything that has an export symbol, but I'd like to minimize the effect on the application. For example, intercepting send message, or subclassing a Window will have an effect on the performance (and in some cases: stability) of the Office application.
In Office 2003 there is a window with a class named ('ActiveClipboard'), but I can't find it on 2007 and 2010. On the other hand I see WM_USER+2304, which I don't know what it is.
Has anyone went through that path? Any hint?
Answering my own question:
As far as I can tell, Office doesn't have any event or API in the object model to tell you whether Office is collecting the clipboard. However, the combination of these two methods is working for me:
Enumerate all windows in the system, and search for a Window with the following attributes (class name/title respectively):
Word 2010: "bosa_sdm_msword", "Collect and Paste 2.0"
Word 2003: "bosa_sdm_Microsoft Office Word 11.0", "Collect and Paste 2.0"
Word 2007: "bosa_sdm_Microsoft Office Word 12.0", "Collect and Paste 2.0"
Excel (all): bosa_sdm_XL9", "Collect and Paste 2.0"
PowerPoint (all): "bosa_sdm_Mso96", L"Collect and Paste 2.0"
If such a window exists, this means Office is collecting clipboard data.
Search registry key: HKCR\Software\Microsoft\Office\14.0\Common\General\AcbOn (REG_DWORD). A value of 1 well tell you Office is collecting data.

Internet Explorer 8 Restrictions Registry Locations

I'm attempting to restrict IE8 to no toolbars, no anything.
I'm working with Kiosk mode, in Windows XP Home edition.
I have some XP pro computers set up properly with this already, using Group Edit and Windows Steady State.
However, I have been unable to set it up the same way on both XP pro and XP home:
On XP pro, whenever a new window is opened via link, it opens in a small window with no toolbars. In XP home, when a new window is opened via link, it opens a standard browser window, with all the toolbars still there.
I know I can disable the toolbars somehow in the registry, but I have not been able to find where; All the information online that I have seen has not sent me to any existing registry location.
Anyone Help?
As far as I am aware, you can start IE in kiosk mode from the cmd line - by running iexplore -k followed by the web address you want to open. If the registry values that you need to use to lock down the browser aren't there, you can just create them.
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\Restrictions
Create them as DWORD values - with a value of 1 enforcing the policy.
NoBrowserClose (disables closing the browser window)
NoBrowserContextMenu (disables right-click context menu)
NoFileOpen (disables use of Ctrl-O or Ctrl-L to launch an arbitrary URL)
NoOpenInNewWnd (disables opening a link in a new window via Ctrl-N or Shift-click)
These should pretty much cover all of the normal ways a user could circumvent kiosk mode.
In addition to the above, there are also:
AlwaysPromptWhenDownload - Always prompt user when downloading files.
NoBrowserBars - Disable changes to browsers bars.
NoBrowserClose - Disable the option of closing Internet Explorer.
NoBrowserContextMenu - Disable right-click context menu.
NoBrowserOptions - Disable the Tools > Internet Options menu.
NoBrowserSaveAs - Disable the ability to Save As.
NoFavorites - Disable the Favorites.
NoFileNew - Disable the File > New command.
NoFileOpen - Disable the File > Open command.
NoFindFiles - Disable the Find Files command.
NoNavButtons - Disables the Forward and Back navigation buttons
NoOpeninNewWnd - Disable Open in New Window option.
NoPrinting - Remove Print and Print Preview from the File menu.
NoSelectDownloadDir - Disable the option of selecting a download directory.
NoTheaterMode - Disable the Full Screen view option.
NoViewSource - Disable the ability to view the page source HTML.
RestGoMenu - Remove Mail and News menu item.

Show contents of the Windows clipboard

How can I see what the Windows clipboard currently contains without using the paste operation?
I don't want the "pasted-to" application to perform any actions on the clipboard (for example, formatting text and converting).
Is there a tool which shows the clipboard's objects and their format (CF_BITMAP, CF_TEXT, etc.) and content (in simple bytes for example)?
There is a list of clipboard manager tools at Wikipedia:
Clipboard manager
ClipX allows you to view a log of previous clipboard entries by pressing Ctrl + Shift + V.
NirSoft offers a free “Inside Clipboard” utility which allows you to see the raw clipboard contents and different formats. It’s close to what you would see with a programmatic API but with a nice GUI. Its GUI includes hex view. It also allows data to be exported and allows saving a snapshot to a .clp file which it can open and allow you to examine later.
If you need to see things at the level of the programmatic API to quick check things without writing a program yourself, I recommend this tool.
If using .NET you can query the Clipboard object.
How about the regular old Clipbrd.exe clipboard viewer from Windows XP?
That'll still run on Windows Vista and Windows 7, IIRC.
Select run from the start menu.
Enter "clipbrd.exe" in it.
Then you can see the clipboard items in the Windows systems.

Resources