iban code for postfinance.ch
If you have an post account you can calculate your IBAN code online here:
http://tinyurl.com/kvd9cp
admin on June 30th 2009 in General
If you have an post account you can calculate your IBAN code online here:
http://tinyurl.com/kvd9cp
admin on June 30th 2009 in General
Today I wanted to change the default permalink settings in wordpress to the smarter custom structure “/%category%/%postname%”. Unfortunately after that i got a page error 404.
Luckily it is not difficult to fix that problem. You just need to change the permissions of the .htaccess file to (chmod) 666 in the home directory of your wordpress. Then apply the settings again and change back the permissions of the file to 644.
Unfortunately all the previous links from the search engine or other webpages will not work anymore. After doing some search on the net I found a useful plugin to prevent that it is called “Dean’s PermaLink Migration”. You just need to install it and set the old permalink settings to “/%post_id%/” if it was set to default in that plugin. Otherwise you need to change it accordingly.
admin on June 7th 2009 in Wordpress
Windows PowerShell is a new feature which comes with Windows 2008 server. It need to have the .Net Framework installed and can also be installed on Windows 2003 Server, Windows XP-Vista.
Create a textfile “NewUser.ps1” with following content:
$objOU=[ADSI]LDAP://OU=Users,DC=test,DC=com
$objUser = $objOU.Create("user", "CN=Test1 User")
$objUser.Put("sAMAccountName", "Test1.User")
$objUser.SetInfo()
$objUser = $objOU.Create("user", "CN=Test2 User")
$objUser.Put("sAMAccountName", "Test2.User")
$objUser.SetInfo()
Important: To run this scripts in PowerShell you need to first active it:
set-executionpolicy remotesigned
Go into the directory where the script is located and run it like this:
./NewUser.ps1
Get users samid:
dsquery user -name "*User" | dsget user -samid
admin on June 5th 2009 in Windows Server
dsadd | Creates and object in the directory |
dsget | Gets the attributes of an object |
dsmod | Changes the attributes of an object |
dsmove | Moves and object |
dsrm | Removes and object or container with all objects |
dsquery | Runs a query |
csvde | Import/Export Objects from/into a csv file |
ldifde | Import/Export (Lightweight Directory Access Data Interchange Format) |
dsa.msc | Active Directory Console |
Examples:
dsadd user “cn=Todd Test,ou=Users,dc=mist,dc=com” –samid ttest –upn ttest@mist.com
dsadd group “CN=Marketing,OU-Groups,DC=mist,DC=com” –samid Marketing –secgrp yes –scope g
dsget group “CN=Marketing,OU-Groups,DC=mist,DC=com” –members -expand
dsget user “cn=Todd Test,ou=Users,dc=mist,dc=com”
dsrm “cn=Todd Test,ou=Users,dc=mist,dc=com”
csvde –i –f NewUsers.txt
ldifde -i -f NewUsers.ldf
admin on June 4th 2009 in Windows Server
I gave users permissions to login to the Server but it still didn’t work. After trying out for a while I found out the solution.
Login to the Server as Admin:
1. gpedit.msc (Local Group Policy)
2. Computer Configuration/Security Settings/Local Policies/User Rights Assignment
3. Allow log on trough Terminal Serives you need to add your group or users
Warning: This should normally not be done and could be a security risk!
admin on June 4th 2009 in IT, Windows Server