So you’ve decided you want to install Oracle Middleware Weblogic Server on Windows, but you haven’t installed the Java JDK yet. Are you thinking about installing it somewhere like “C:\Program Files\Java\jdk…”?
Do not pass GO, do not collect $200, go directly to Oracle installation jail! For whatever reason, Oracle – who also happens to own Java – has made their Weblogic Configuration Wizard completely unfriendly to any spaces being present in the Java installation path. If you don’t heed my advice, you’ll likely end up with the error message
“C:\Program is not recognized as an internal or external command…”
or something like it.
Either choose the default location for installing Java, or if you must put it on a different drive than C, only change the drive letter. This will prevent a great amount of frustration!
While I could have manually set up the necessary printers on the new user, it seemed that there must be a way to do this that would ensure that all of the printers were set up correctly on the new user.
However, the HKEY_CURRENT_USER hive only shows registry information for whatever user you’re logged on as. What if you wanted to copy from one user (other than you), to some other user?
The HKEY_CURRENT_USER key for each user is found in the registry under the HKEY_USERS hive, under each user’s SID. If you don’t have an easy way to find out what a user’s SID is, what then?
There is a solution! The information that is displayed in the HKEY_CURRENT_USER hive is stored in the NTUSER.DAT file in each user’s profile.
Each user’s hive can be loaded either from the Registry Editor or the command line. Both of these must be started as an Administrator to have the privileges to do this.
The example below shows how to do this from a command line. If the user whose hive to be copied is called OLDUSER, the following command (reg load) should attach the OLDUSER hive as HKEY_USERS\OLDUSER. This can be run from Command Prompt or PowerShell.
reg load C:\Users\OLDUSER\NTUSER.DAT
Do the same thing with the new user (NEWUSER):
reg load C:\Users\NEWUSER\NTUSER.DAT
Note: If either of these users is currently logged on or running a service, they must first be logged off or the service stopped.
In the Registry Editor, export (in this case) the Printers key from HKEY_USERS\OLDUSER into a .reg file.
Open the .reg file with an editor and replace all instances of OLDUSER with NEWUSER. Save the file. Execute the file by double-clicking on it. Confirm the dialog box to add the information to NEWUSER’s hive.
To unload both users’ hives, execute the following commands:
reg unload OLDUSER
reg unload NEWUSER
(Remember to restart any Services that were stopped before loading!)
To verify that the information was copied correctly, you can log on as the new user and examine its HKEY_CURRENT_USER hive.
After downloading a new version of Citrix Receiver and installing it, I discovered that the single sign-on (SSO) functionality that used to “just work”, had stopped working.
After hunting through the Local Group Policy Editor, the registry, and the folder in which Citrix was installed, I was able to put together the following instructions. Completing these steps fixed my problem, however, the fole locations may vary somewhat depending on how your Windows and Citrix installations are configured.
Note: The person executing these steps will need local admin rights on the PC.
Add the following site(s) to the Local Intranet zone in Internet Options. (These will be specific to your organization.)
In Internet Explorer, go to Tools –> Internet options.
On the Security tab, click “Local intranet” in the “Select a zone…” area.
Click the Sites button, and on the next dialog box, click the Advanced button.
Add each site above by pasting or typing the URL into the “Add this website…” field and click the Add button for each one. The checkbox requiring HTTPS should be unchecked.
Click Close, OK.
Click the Advanced tab on the Internet Options box. Make sure the “Enable Integrated Windows Authentication” checkbox is checked. If not, check it. (You will also need to reboot the PC if this setting is changed after closing Internet Options.)
Click OK to close Internet Options.
Copy files from the Citrix Receiver client into the appropriate Windows folder to enable Citrix Group Policies.
Copy CitrixBase.admx and receiver.admx from “C:\Program Files (x86)\Citrix\ICA Client\Configuration” to “C:\Windows\PolicyDefinitions”
Copy CitrixBase.adml and receiver.adml from “C:\Program Files (x86)\Citrix\ICA Client\Configuration\en-US” to “C:\Windows\PolicyDefinitions\en-US”
Click Start –> Run –> type gpedit.msc in the search field and hit Enter to open the Local Group Policy Editor. Find the “User authentication” folder in the left pane under Local Computer Policy –> Computer Configuration –> Administrative Templates –> Citrix Components –> Citrix Receiver. Click “User authentication” to display its settings in the right pane. In the right pane, double click “Local user name and password”. Click the Enabled radio button, and make sure that the “Enable pass-through authentication” and “Allow pass-through authentication for all ICA connections” checkboxes are checked. Click OK to close the “Local user name and password” settings box. Close the Local Group Policy Editor.
Reboot the PC.
When opening the Citrix app you may see a box asking to Permit or Block access to local resources. Check the checkbox and select Permit.
I support an environment where users access the Primavera P6 thick client on Windows via Citrix.
If I connect to the Database Configuration app and add, modify, or delete the connection to a P6 database, the PrmBootStrap.xml file that is in my profile. For the version we are using (8.2), that location is C:\Users(username)\AppData\Local\Oracle\Primavera P6\P6 Professional. It appears that the file is also copied to the “%PROGRAMDATA%\Oracle\Primavera P6\P6 Professional” folder and the “All Users” profile (if it exists) as well, in “C:\Users\All Users\AppData\Local\Oracle\Primavera P6\P6 Professional”.
In the code below, I copy from the ProgramData folder instead of from my profile, but it would be easy to eliminate the outer for loop and uncomment two lines to make it copy from my profile.
Since I have multiple Citrix servers for P6, I normally would manually copy the file to the folders on the other Citrix servers so that the users will have the same list no matter where they log on. To simplify this, I wrote this Windows batch script to automate this copy process.
rem //Citrix servers hosting Primavera P6 should be in the serverlist variable, separated by spaces
set serverlist=citrixserver1 citrixserver2 citrixserver3
rem //Windows username of person who has standard file
set filepath=Oracle\Primavera P6\P6 Professional
rem set Sourceloc="C:\Users\%usersname%\AppData\Local\%filepath%\%filename%"
for %%s in (%serverlist%) do (
if not exist !Sourceloc! (
echo No file found: !Sourceloc!
) else (
for %%a in (!Sourceloc!) do set SourceFileDate=%%~ta
if "!SourceFileDate:~-2!" == "PM" set offset=12
set /a "SourceFileDateHour=!SourceFileDate:~11,2!+!offset!"
for %%x in (%serverlist%) do (
echo DestinationServer = %%x
echo SourceServer = %%s
if not %%x==%%s (
set secondloc="\\%%x\C$\Users\All Users\%filepath%\%filename%"
for %%y in (!firstloc! !secondloc!) do (
if exist %%y (
for %%a in (%%y) do set DestinationFileDate=%%~ta
if "!DestinationFileDate:~-2!" == "PM" set offset=12
set /a "DestinationFileDateHour=!DestinationFileDate:~11,2!+!offset!"
echo DestinationFileDateCompare = !DestinationFileDateCompare!
echo SourceFileDateCompare = !SourceFileDateCompare!
if "!SourceFileDateCompare!" gtr "!DestinationFileDateCompare!" (
ren %%y !NewDestinationFileName!
copy !Sourceloc! %%y
) else (
echo Destination file %%y is newer than or the same as !Sourceloc!.
) else (
echo INFO: %%y not found
) else (
echo Destination and Source servers are the same: no file copied.
If you uncomment the pause command at the end, you can look at the command window to make sure it’s working properly.