Here’s an interesting tip – if you need an editor on a Windows server that handles Unix line endings you can use Powershell ISE … it’s not installed by default, but open a Powershell prompt and enter these commands: Import-Module ServerManager Add-WindowsFeature PowerShell-ISE And you will have a half-decent editor.
Archive for the ‘Windows’ Category
fsutil fsinfo ntfsinfo X: where X: is the drive letter gives output like this: NTFS Volume Serial Number : 0x101051a010518e1a NTFS Version : 3.1 LFS Version : 2.0 Number Sectors : 0x0000000074498860 Total Clusters : 0x000000000e89310c Free Clusters : 0x000000000447f222 Total Reserved : 0x00000000000016e2 Bytes Per Sector : 512 Bytes Per Physical Sector : 512 […]
The 260 character limit on the file path makes deleting the file from applications like Weblogic problematic (especially the .patch_storage sub-folder structure). As a result the PeopleTools DPK “cleanup” command doesn’t actually clean everything up. Use: ROBOCOPY D:\TEMP\EMPTY .patch_storage /PURGEROBOCOPY D:\TEMP\EMPTY .patch_storage /PURGE or /MIR to delete the files recursively, where D:\TEMP\EMPTY is an empty […]
Placeholder for useful code snippet: open my $fh, ‘<:raw:perlio:encoding(UTF-16LE):crlf’, $filenameopen my $fh, ‘<:raw:perlio:encoding(UTF-16LE):crlf’, $filename which will convert CR/LF combinations to LF only. Alternatively, to keep them intact: open my $fh, ‘<:raw:perlio:encoding(UTF-16LE)’, $filenameopen my $fh, ‘<:raw:perlio:encoding(UTF-16LE)’, $filename Useful for reading Windows registry export files, SQL server log export files etc.
When you map a network drive to the Samba share of a VirtualBox PUM VM in order to install (say) the PeopleTools client, the mapped drive may be invisible to your cmd prompt running as Administrator – something you need in order to update the registry and install the client software. To work around this […]
What an obscene memory and CPU hog this can be. I’ve seen it grow to 3.2 Gb of RAM on one of my servers. As it is used for Windows Updates, I stop the related Windows Services and mark them as manual to avoid this issue. The services to stop/set to manual are: “Windows Installer […]
Quick tip. Need to run an executable in a different compatibility mode? Set this environment variable appropriately prior to running the executable: SET __COMPAT_LAYER=WIN95 Valid values for __COMPAT_LAYER: WIN95 – Windows 95 WIN98 – Windows 98 WIN4SP5 – Windows NT 4.0 SP5 WIN2000 – Windows 2000 WINXPSP2 – Windows XP SP2 WINXPSP3 – Windows XP […]
I generally use PSExec from the Sysinternals Suite, but here is another approach if you are not allowed to install external tools or it is blocked by (say) a virus checker: Use sc.exe to achieve the same end result e.g. 1 2 3 4 5 6 7 8 9 10 11 12 13 REM REM Establish […]
If you are encountering this error installing the x64 version of VirtualBox on Windows 7, then there is a good chance it is because the MSI installer service is trying to execute a custom action in 32-bit mode. The error message about the Windows Installer is somewhat misleading in this case. To verify this is […]
Well you learn something new every day! I just discovered that if the first parameter to the windows “start” command is quoted, then it assumes that is the title of the Window. This can be particularly annoying if the path to the executable you are trying to start contains spaces e.g. “C:\Program Files (x86)\Microsoft Office\Office14\winword.exe” […]