Scenario: Several IPsec policy filters matches a packet, which filter takes precedence?
Friday, February 19, 2010
Saturday, February 13, 2010
Account lockout problems
Scenario: User accounts are continuosly being locked out as a result of numerous failed password attempts.
Microsoft tool “Account Lockout and Management Tools” (http://www.microsoft.com/downloads/details.aspx?FamilyId=7AF2E69C-91F3-4E63-8629-B999ADDE0B9E&displaylang=en) kan användas.
Documentation: http://technet.microsoft.com/en-us/library/cc738772(WS.10).aspx
Check functions that be configured to use specific user accounts to run under, for example:
Mapped shares/drives
Services
Scheduled tasks
Software that uses cashed credentials.
Tuesday, December 8, 2009
Installera Win 7 på Dell E4200
- Gör backup (förslagsvis på extern hårddisk). Kom ihåg:
o Ev. TrueCrypt-volym
o Skrivbordet och Mina dokument
o Bokmärken
o E-mail
o Certifikat (SVN, ev mjukt certifikat FMV - Om du saknar CD-rom:
o skapa en bootbar USB-sticka enligt http://www.intowindows.com/how-to-install-windows-7vista-from-usb-drive-detailed-100-working-guide/. OBS! Kräver att USB-stickan skapas från en dator som redan har Windows Vista eller Windows 7.
o Kontrollera att USB ligger först i boot priority i BIOS
o Starta datorn med stickan och kör installationsprogrammet (tar knappt 10 min (!))
o kom ihäg att ta ut sticka när datorn startar om efter installationen - Återställ TrueCrypt volymen
o Av någon anledning blev TrueCrypt-volymen Write only för mig, därför fick jag skapa en ny TrueCrypt volym, mounta båda och kopiera över filerna till den nya.
• Installera office
o Ladda ner Office 2007 Professional från microsoft, välj engelsk eller svensk version. Om du väljer svensk version kan du behöva aktivera licensen över telefon istället för över Internet. - Återställ mail
o Spara mail på TrueCrypt colymen
Lägg Outlook mappen med e-mail på TrueCrypt-volymen/partitionen.
Konfigurera Outlook enligt fredriks dokument.
När det är klart och den börjar synka mail, stäng av outlook. Kolla även i task manager att processen Outlook.exe försvunnit ur processlistan. Öppna outlooks vanliga mapp för mailfiler och flytta dem till papperskogen. Gå till Kontrollpanelen –> mail. Dubbelklicka på respektive datafil, den kommer då klaga att den inte hittar filen och du får möjlighet att navigera till filen du sparade på TrueCrypt volymen. Gör sedan likadant med övriga datafiler. - Installera drivrutiner
o ladda ner och installera drivrutiner för bluetooth och TouchPad från Dells hemsida
Thursday, December 3, 2009
Forward Windows Events
Requires at least Windows Vista
http://msdn.microsoft.com/en-us/library/aa390433(VS.85).aspx
Tuesday, November 24, 2009
Move outlook 2007 data files to other location, including IMAP accounts like Gmail.
Scenario: You want to move your outlook datafiles to another location for some reason, in my case, store them on an encrypted drive. Another reason would be to keep them on a file share for the sake of backup.
Locate the files, usually in C:\Documents and Settings\User\Local Settings\Application Data\Microsoft\Outlook. Move all the files to the new preferred location.
If you have an IMAP account like GMAIL, go to Control Panel –> E-amil –> Data files. Double click the one associated with the Gmail account. It says it can’t find, press OK and navigate to the new location. Click OK.
Now you can open Outlook. If you use any other data files you will now be prompted for their new location.
Wednesday, November 4, 2009
Access 2003 Listbox: Items invisible
Scenario: Some or all of the items in a Listbox are invisible:
Cause: The properties from the field in the original table from which the data are pulled have format setting in it’s properties.
Solution: Track from which table data are pulled in the SQL statement that populates the listbox. Open the table in design view and check the properties for the current field and make sure that the format propery are empty.
Thursday, October 22, 2009
Turn 3 dimensional (pivot) table to junction table
Tuesday, October 13, 2009
Macro to paste unformatted text in word
- Copy a bit of text
- Choose the Developer tab
- Record macro (save in the norma.dotm template)
- Choose a smart keyboard combination, for example ctrl + shift + v
- Paste the text somewhere in the document
- Stop the macro
- Edit the macro and replace the one line with
- Selection.PasteSpecial Link:=False, DataType:=wdPasteText
Monday, October 12, 2009
Create domain trust
Wednesday, October 7, 2009
Enable anonymous access in Sharepoint.
Enabling anonymous access to a sharepoint site requires to separate activities.
1. Enable in Central Administration: Application management --> authentication providers --> Default --> Enable anonymous access
Note: DO NOT CHANGE ANYTHING IN IIS
Navigate to the site where you want to enable anonymous access: Site actions --> Site settings --> Advanced permissions --> Settings --> Here you should see an option for Anonymous access.
Translate business security needs to the configuration and management of security devices.
Reliable process for security policy development
“We focus in this paper on the problem of configuring and managing network security devices, such as Firewalls, Virtual Private Network (VPN) tunnels, and Intrusion Detection Systems (IDSs). Our proposal is the following. First, we formally specify the security requirements of a given system by using an expressive access control model. As a result, we obtain an abstract security policy, which is free of ambiguities, redundancies or unnecessary details. Second, we deploy such an abstract policy through a set of automatic compilations into the security devices of the system. This proposed deployment process not only simplifies the security administrator's job, but also guarantees a resulting configuration free of anomalies and/or inconsistencies.”
Schedule backup with synctoy
http://www.mydigitallife.info/2008/01/01/schedule-synctoy-to-run-and-automatically-and-repetitively/
Schedule SyncToy Sync Task in Windows Vista
- Click on the Start menu, then select All Programs - Accessories - System Tools - Task Scheduler.
- Click on Create Basic Task in the “Actions” pane on the right.
- In the “Create Basic Task Wizard”, type in a Name and Description. For example, SyncToy Synchronization.
- Click on Next button.
- Choose the frequency of when do you want the task to start. If you always make changes to the files, Daily is a good choice.
- Click on Next button.
- Choose date and times (if applicable) to trigger and run the task.
- Click on Next button.
- In the “Action” step, select Start a Program as the option for the task to perform.
- Click on Next button.
- Under “Program/Script”, click on Browse button and locate the SyncToyCmd.exe. Normally it’s located in “C:\Program Files\SyncToy 2.0 Beta\SyncToyCmd.exe” for SyncToy 2.0 Beta.
- In the “Add Arguments” textbox, type -R. –R will run all folder pairs that are active for run all. If you want to run just a single folder pair, add –R”folder pair name” to the end of the command line.
Note: there is a space before the hyphen but not one after the R. If the folder pair name contains a space, surround it with quotation marks, as the example above shows. For another example, assume that SyncToy is in the folder named C:\Program Files\SyncToy 2.0\ and that you want to run a folder pair named “My folder pair.” Enter the command line as follows, including the quotation marks: “C:\Program Files\SyncToy 2.0\SyncToyCmd.exe” -R”My folder pair.” Note that there are two sets of quotation marks in this case: one is around the path to the SyncToy program file and the other surrounds the folder pair name.
Schedule a SyncToy Task in Windows XP
- Go to the Start menu, select All Programs - Accessories - System Tools - Scheduled Tasks.
- Select Add scheduled task to start the Scheduled Task Wizard. You will see a list of possible programs to run.
- SyncToy may appear as an option in the list. If SyncToy does not appear in the list, click Browse and locate the SyncToy executable. Normally it’s installed in Program Files directory.
- The wizard will next prompt you to enter how often you want to run the scheduled SyncToy (for example, daily, weekly, et cetera). Select a frequency.
- The next page asks when to start the task. Select a start time.
- The next page asks for the user name and password to run the program under. Enter your user name and password. However, in SynToy 2.0, it’s not necessary for the defined user to log in to the computer. Different user or no one logged on is possible to have the task running too.
- The final page contains an option to open the properties dialog when the wizard ends. Select this checkbox.
- Modify the Run textbox to include the –R command line option. –R all by itself will run all folder pairs that are active for run all. If you want to run just a single folder pair, add –R“My Pair” to the end of the command line.
Note: there is a space before the hyphen but not one after the R. If the folder pair name contains a space, surround it with quotation marks, as the example above shows. For another example, assume that SyncToy is in the folder named C:\My Folder and that you want to run a folder pair named “My folder pair.” Enter the command line as follows, including the quotation marks: “C:\Program Files\SyncToy 2.0\SyncToyCmd.exe” -R”My folder pair.” Note that there are two sets of quotation marks in this case: one is around the path to the SyncToy program file and the other surrounds the folder pair name.
Install EventSentry on a 64 bit Sharepoint server
Scenario: You want to install Eventsentry on a 64 bit server hosting sharepoint. The problem is that the web reports in Eventsentry, in the case of 64 bit, require IIS to run in 32 bit mode, which is not an option an an 64 bit SP install. The approach was to put the web reports on a different server.
- Make sure to have an ES config export file as well as an export only including filter packages and an export file for the custom web reports.
- Install MySQL as outlined in the ES documentation
- Install ODBC driver (wait to configure)
- Install ES without DB support and web reports
- Run modify wizard and add MySQL support.
- From the Management interface, add an db action to test the database.
- Configure ODBC System DSN with the eventsentry_svc user. Test if it works
- Import the config XML file. Restart the GUI.
- Check if everything seems properly done.
- In particular, reconfigure the DB action if needed.
- Copy the Eventsentry folder under Program Files to the server used for the web reports (use the same place). Set permissions on the folder to only allow admininstrator access (and the System account).
- Make sure that Active Server Pages is added in Windows Componenents (Application Server --> Details, Internet Informations Service --> Details, World Wide Web Service --> Details, Check Active Server Pages
- On the web server, create a new web site, point it to the copied Eventsentry folder (eventsentry/web).
- Add “index.asp” as “document” in the properties for the web site (in IIS).
- Check Windows integrated authentication in IIS Manager.
- The first time you access the web reports, choose to disable authentication (trust the NTFS permissions).
- You propably need to reconfigure the database setting on the Default Profile.
Move Sharepoint to 64 bit server
Scenario: A Sharepoint stand-alone (Basic Install with SQL Express) environment needs to be moved from a 32 bit server to a 64 bit server. The orignal installation is done from a Swedish installer while the new installation is done from a english installation.
This is what worked for me:
- Install Win Server 2003 64 bit. I had to use a Dell CD to manage to install on the RAID setup.
- Install MOSS 2007 English from CD (Install from a downloaded copy did not work, the config wzard hung)
- Choose basic installation
- Run the config wizard
- Download language pack (.img opens with WinRAR)
- Install language pack (make sure it is the right one, swedish, 64 bit, moss 2007 etc.)
- Run the config wizard again
- Run Microsoft Update. Make sure to get the latest SP updates. At least newer than the environmnet your moving from.
- Delete the site collection via Central Adminstration and create a new one with the right language pack. Use the same template as the site you want to move.
- You can check what template was used by creating a aspx site. Google “determine site template”
- In my case the site template used was now deprecated. My solution was to create a custom site template, upload it to the created site and create is as an subsite. However, I got “File not found”-error on the new site.
- At this point, i used STSADM to make a backup of the original site
- Restored the backup to the faulting subsite using STSADM
- Voila, an exact copy was now up and running on the new server!
- It did bring up a login dialog when browsing on the local server, but not browsing from a arbitrary client (or other server).
- Added a hostname “temp” and created a DNS A record “temp@domain.com” pointing to the IP adress of the new server.