Posts tagged ‘Windows’

VirtualBox as a service on windows

http://vboxvmservice.sourceforge.net/

DON’T run the service using the Administrator account!

Steps required to run it as a “regular” user:

Start “secpol.msc” as Administrator
Select the “Local Policies” folder
Select the “User Rights Assignment” folder
Double click “Log on as a service”
Use “Add User or Group…” to add your non privileged user

open ports on windows

http://www.petri.co.il/quickly_find_local_open_ports.htm

MSSQL transaction log problems

so the transaction log of this stupid piece of software has completely filled up once again… that’s what worked for me last time:

1) DB -> Tasks -> BackUp

  • Backup Type: Transactional
  • Backup To: Disk
  • -> OK

2) DB -> Tasks -> Shrink -> Files

  • File Type: Data
  • press the “Script” button
  • press “OK”
  • hit “F5”

remotely add remote desktop users (RDP) in windows (7)

  1. take a windows-machine of your choice
  2. click on “start”
  3. right-click “computer”
  4. choose “manage” (“verwalten” if locale=DE)
  5. authenticate if necessary
  6. right-click “computer management (local)”
  7. choose “connect to a different computer”
  8. enter the DNS-name of the target machine
  9. wait for connection
  10. go to “System Tools” -> “Local Users and Groups” -> “Groups”
  11. double-click “Remote Desktop Users”
  12. click “Add”
  13. add the desired user


done

worth a glimpse: windows usb guard

USB monitor lets you control access to USB mass storage devices to prevent the usage of unauthorized sticks

worth a glimpse: software deployment

list domains in an ActiveDirectory forest

to list all available domains in an AD forest (e.g. to figure out their NetBIOS names and/or map them to DNS-FQDN), have a look at the search base “CN=Partitions,CN=Configuration,“, e.g.:

ldapsearch -x \
    -b "CN=Partitions,CN=Configuration,dc=my,dc=domain,dc=local" \
    -D "ldap@my.domain.local" \
    -h my.domain.local  \
    -W "(name=*)"

Note: accessing the global catalog (see ActiveDirectory and the global catalog) of your AD using port 3268 will return the domain-partitions, but the important attributes like “nETBIOSName” and “dnsRoot” will be missing there!

adjusting temp- and swap-path in GIMPportable on windows

By default, GIMP-portable tries to use a folder below the one it has been started from for temp and swap. That’s just fine if you use it on your usb-stick, but it bugs you with an error message if GIMP is supplied from a read-only network drive: “Unable to open a test swap file.”

This can be fixed by editing (or creating) the system-wide gimprc file, which is located in \Data\settings\

First, I tried to use the windows-style %APPDATA% variable, but GIMP does not interpret it correctly. Digging a bit in the web revealed the way how to do it, they have to be used in shell-style including curly brackets like this:

(temp-path "${APPDATA}\\gimp-2.6")
(swap-path "${APPDATA}\\gimp-2.6")
 
(undo-size 512M)

andLinux “Cannot open display” problems…

make it short:

-> open windows firewall, tcp port 6000
-> adjust the Xming startup command, include a full path for the logfile, e.g. “C:\Temp\Xming.log” instead of a filename only

ActiveDirectory and the global catalog

At work, we’re running a 2008R2 AD forest containing 5 sub-domains. now to query the LDAP can be a pity if you don’t know in which one of the overall 6 domains the queried object is located.

After months of helplessness and various (unsuccessful) experiments with meta-directories, ldap-proxies etc. we discovered that the problem is already solved. the solution is to use a different port, ActiveDirectory provides the so-called “global catalog” (containing all the information from the whole forest) on port 3268.

Assume, your username is “un321” and your account is located in the “it” subdomain of the “ads.forest.private” domain. To query for a user called “ab123” use the following ldapsearch-command:

ldapsearch -x -b "dc=ads,dc=forest,dc=private" -D 'un321@it.ads.forest.private' \\
        -h ads.forest.private -p 3268 -W  "(userPrincipalName=ab123*)"