Powershell – Get members of AD Group

Sometimes you will need a fast and easy way to list who is a member of a AD group.  Start Powershell and enter either of the following commands: Get-ADGroupMember -Identity “TestGroup” | Select samAccountName,Name,@{Name=”DisplayName”;Expression={(Get-ADUser $_.distinguishedName -Properties displayname).Displayname}},@{Name=”Title”;Expression={(Get-ADUser $_.distinguishedName -Properties Title).title}} Get-ADGroupMember -Identity “TestGroup” | Select samAccountName,Name Get-ADGroupMember -Identity “TestGroup” | Select samAccountName Sometimes you will …

Continue reading ‘Powershell – Get members of AD Group’ »

Windows 10 – Select Primary network interface

When running Windows 10, sometimes you have more than one network connection, and you want to select which NIC is the primary. In my case, I wanted to segment my network away from the network in house. I am connected wireless to house router, including my own router, which is performing as with multiple services …

Continue reading ‘Windows 10 – Select Primary network interface’ »

Google Stream drive

If you install the google stream drive, you can run into some problem regarding drive lettes, it will shift randomly after a reboot, or it will use a drive letter you have reserved for network drive. You can mitigate this by adding this registry key. Save as a gdrive.reg and doubleclick. Remember to edit DefaultMountPoint, according …

Continue reading ‘Google Stream drive’ »

Ansible Windows client + chocolatey

set-executionpolicy remotesigned winrm enumerate winrm/config/listener @powershell -NoProfile -ExecutionPolicy Bypass -Command “iex ((new-object net.webclient).DownloadString(‘https://github.com/ansible/ansible/raw/devel/examples/scripts/ConfigureRemotingForAnsible.ps1’))” @”%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe” -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command “iex ((New-Object System.Net.WebClient).DownloadString(‘https://chocolatey.org/install.ps1’))” && SET “PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin” @”%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe” -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command “iex ((New-Object System.Net.WebClient).DownloadString(‘http://darkrouter/prepwin.ps1’))”   Suggest packages: teamviewer skype picasa adobereader libreoffice firefox javaruntime spotify vlc 7zip k-litecodecpackfull wget malwarebytes thunderbird itunes windirstat

Ati Eyefinity

Denne guide er afprøvet i Windows 10 Pro med et Radeon HD 6970 og AMD Catalyst Control Center (version 2015.0715.2138.37093). Grafikkortet er udstyret med 2x DVI, 1x HDMI og 2x mDP. Ved op til 2 monitor kan alle kombinationer bruges Ved 3 monitor kan følgende kombinationer bruges: 2x mDP + 1x DVI 1x mDP + …

Continue reading ‘Ati Eyefinity’ »

Screen recorder with ffmpeg

Ubuntu 14.04 ffmpeg -y -f alsa -ac 2 -i pulse -f x11grab -r 30 -s 1920×1080 -i :0.0 -vcodec libx264 -pix_fmt yuv420p -crf 22 -acodec libmp3lame -ar 44100 -ab 126k -threads 3 ~/Skrivebord/screencast.mp4   Fedora 23, screengrab 720p no audio. bitrate 1200k ffmpeg -video_size 1280×720 -framerate 30 -f x11grab -i :1+3840,200 -vcodec libx264 -b:v 1200k …

Continue reading ‘Screen recorder with ffmpeg’ »

Windows 7 All In One image – and Danish Language Pack 32bit

Download one of the official iso from here Microsoft: http://www.microsoft.com/en-us/software-recovery Download the Config removal tool from here: http://www.itso.dk/files/winapps/eicfg_removal_utility.zip Run the eicfg_removal_utility and point to your iso file. Download the Windows USB/DVD Download tool from Microsoft: http://wudt.codeplex.com/ or http://www.itso.dk/files/winapps/Windows7-USB-DVD-tool.exe Run Windows7-USB-DVD-tool.exe and point to Windows 7 iso and either a DVD or USB key for destination. Boot and install wanted windows 7 …

Continue reading ‘Windows 7 All In One image – and Danish Language Pack 32bit’ »

Download videos from almost all videosites

Disclaimer: This might not be legal in all countries. Check you local copyright laws. Downloading videos and soundtracks from videosite can be accomplished with the program youtube-dl. For highest video resolution, type this command from terminal or windows command prompt: youtube-dl -f bestvideo+bestaudio [videolink]   Linux install: debian based distro: sudo apt-get install Arch based …

Continue reading ‘Download videos from almost all videosites’ »

Digital signatur

This is guide to setup digitally signed email with the danish NemID. Download and install the NemID platform from: here Installation in thunderbird Go to account settings, select the security tab, select Security Devices. Add NemID by selecting Load, and browse to the NemID PKCS#11, pointing at the file: C:\Program Files (x86)\Nets DanID\NemID Udvidelsesprogram\NemID_PKCS11.dll