Here is an example of setting registry key permissions by command line. The original version of subinacl.exe shipped with the old Windows Resource Kit was buggy, and would not run command line arguments. A better, non buggy version can…Read More »
This line is handy for quickly exporting an Active Directory groups membership list to a text file. Open the file as delimited in excel to make deciphering the LDAP a bit easier.
dsquery group -samid <groupname> | dsget group -members…Read More »
Simple, but handy when scripting with GREP: How to grab the trailing 2 lines after a specified pattern.
In this example, the pattern is “q4:Policy” from a GPO settings HTML file.
grep -A 2 “q4:Policy” c:\temp\gpo.html
Changing -A to -B will grab…Read More »
Moving the terminal server licencing server can be a bit of an exercise. If you follow these steps, chances are you won’t need to do anything else to move the TS Licencing server.
Original TS Licence server:
1) Stop the Terminal…
I’ve found this problem when installing various older msi’s designed for older operating systems like Windows 2000/2003 or earlier.
a) You execute the msi and you get an error stating that a mapped drive (eg, Z:) cannot be found
When you close the primary executable of a published Citrix XenApp application, the session may not end due to secondary processes still running from the app. This leads to loads of timed out sessions that just waste resources.
To force…Read More »
Getting rid of hiberfil.sys in Windows 7 and Windows Server 2008 r2 is much harder than your would expect. This file appears on the server even if you have no plans to use hibernation, and it wastes disk space,…Read More »
It seems like a simple question, but how do you know if your RDP session is on the console?
Answer – type this from a command prompt: Qwinsta
If your session appears as ID 0, you are on the console
This is…Read More »
There are a few ways of finding the corresponding SID for your desired user in the registry. A simple way is to use the following syntax using the free tool Psgetsid.exe. Very handy when trying to interrogate the crowded…Read More »
Here is the syntax of a handy for-loop when you need to register multiple ocx and dll files in a directory tree when packaging:
FOR /R “”folder name”” %a IN (*.OCX) DO regsvr32 /S “”%a”””Read More »
About UsPeninsula IT Services. Technical Support, Cloud and Mobility Services for Business. Based in the Sydney CBD and Northern Beaches, we deliver IT projects across Australia. Call us on 02 8091 2324
At Peninsula IT we are fielding many calls from…
Avanite Webinar: Listen to…
Stephen worked as a consultant for one of my large clients. The client was very happy with the work done and I have no hesitation in recommending Stephen - Al Tonner