Archive

Archive for the ‘windows’ Category

Load all available PowerShell Modules

January 12, 2016 Leave a comment

I’ve had to look this tip up a number of times, so here it is.

Say you are running PowerShell on a Windows server, however it does not automatically load all available modules and you need one for a specific script you’ve got. ¬†Load all available PowerShell modules on a Windows server by running this command:

Get-Module -ListAvailable | Import-Module

From the “Hey, Scripting Guy! Blog.” ¬†Thank you!

Categories: how do I?, windows Tags:

Add index.php to DirectoryIndex in Apache2.2 httpd.conf on Windows

November 1, 2006 2 comments

If you want to give Apache2.2 the ability to serve up an index.php file by default, in addition to index.html, you must add”index.php” to the DirectoryIndex entry in the httpd.conf file for Apache2.2.

The entry needs to look something like this:

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>

Categories: Apache, php, windows