Instead of going through the long-winded way of installing features using Server Manager, you can install PowerShell quickly in Windows Server 2008 from the command line using the following command: servermanagercmd -install powershell Why use the GUI when the command line is much quicker?
Tag Archives: tips
Ignore ALL DCC from anyone on IRC in irssi
During the last few months, I’ve been waking up to mass floods of DCC SEND from bots/people trying to exploit random clients into accepting a file over IRC. I use irssi for connecting to IRC – it’s an extremely configurable text based client, so I wanted a way to just ignore these DCC requests – …
Continue reading “Ignore ALL DCC from anyone on IRC in irssi”
Windows 7 Keyboard Shortcut: Start an Application with Administrator Privileges
You’ll have noticed that Windows 7 is pretty strict with some applications on the tasks they can perform – I often find myself needing elevated privileges in a Command Prompt to edit the routing table for example. You can, of course, right click on the application from the start menu and run as Administrator, but …
Continue reading “Windows 7 Keyboard Shortcut: Start an Application with Administrator Privileges”
Viewing Previous Command History in Windows Command Prompt (cmd)
We all use the Windows Command Prompt, but there are quite a few very useful features you may not know about – one being command history viewing. To access the command history of your current session, press “F7” and you’ll be presented with a prompt containing the last commands you’ve executed. Please note that it …
Continue reading “Viewing Previous Command History in Windows Command Prompt (cmd)”
How to Create a Windows 7 System Repair Disc
Windows 7 has restored the “System Repair Disc” option so it’s easy to create. If you go to Start and search for “System Repair Disc“, it should find “Create a System Repair Disc”. If you open the application, you’ll get a prompt box to burn the image to CD/DVD. Choose your CD/DVD burner and click …
Continue reading “How to Create a Windows 7 System Repair Disc”
Finding the Uptime of Windows Server 2008
So, you want to see the date and time a Windows Server 2008 box last booted up. From a command prompt run: C:\> systeminfo | find “System Boot Time” System Boot Time: 17/12/2009, 23:09:04 You will then be shown the date and time the server was booted (as seen in the …
Continue reading “Finding the Uptime of Windows Server 2008”
Kill a GNU Screen Session from the Command Line
This article is about GNU Screen – you can read about GNU Screen here: http://www.gnu.org/software/screen/ There may be times when you have multiple, or even a single, screen session which you want to kill without attaching to it and ending it as you normally would. You can kill a screen session using the session ID or the …
Continue reading “Kill a GNU Screen Session from the Command Line”
How to Stop .DS_Store From Being Created on Network Drives (OS X)
.DS_Store files can make even the tidiest network shares look horrible to none-OS X users. Whenever an OS X machine accesses a network share, it creates a .DS_Store file for it’s own use (on SMB/CIFS, AFP, NFS, and WebDAV servers). These files are invisible to the OS X user, but will show up to anyone …
Continue reading “How to Stop .DS_Store From Being Created on Network Drives (OS X)”
Removing packages only installed as dependancies and no longer needed (Ubuntu, Debian)
We’ve all installed packages, using apt-get, where it’s installed a lot of other packages to satisfy dependancies. But what if you remove that package at a later date that needed all of those dependancies? You’ll probably find it’s left the dependancies installed.. and if you’ve not installed any other packages which also need those dependacies, …
Finding out when (and where from) a user last logged into a Linux/BSD machine
There may be times when you want to find out when and where from a user last logged into a Linux or BSD machine. Of course, you could trawl through auth logs, but there is a quicker way by using “lastlog“. lastlog is a command which shows you the last login time and also from …
Continue reading “Finding out when (and where from) a user last logged into a Linux/BSD machine”