Blog Stats
  • Posts - 8
  • Articles - 0
  • Comments - 15
  • Trackbacks - 1

 

Sunday, February 12, 2006

VBScript + OpenOffice 2.0 = TRUE


I work alot with VBScript and Excel to view status of desktop clients. Read logs and use Excel to view It. And I got an idea today of use OpenOffice as an alternetive viewer for those who doesen't have Microsoft Office. So I have started to write some code that uses OpenOffice Calc If the administrator want to use that instead. I will post It in a couple of days or next week or so. Tommorow = Start of the Scripting game. I will post comment on how It's going for me. Good luck to all of you who will enter the competition!

Friday, February 10, 2006

Internet Explorer 7 Beta 2 - Problem solved


Okey, problem not solved, BUT I know why some pages looks like crap with IE7. IE 7 follow webstandards better then It´s earlier versions does. So many many websites uses special IE formating... Thats good and bad!

Wednesday, February 08, 2006

Internet Explorer 7 Beta 2


I have been using the latest beta on one of my computers 1 or 2 weeks now and I like It.
BUT some sites dosen´t look nice with It. IE 6 and Firefox 1.5 shows these sites nice.

So next mission is to look on the Internet and see why...


 

Thursday, February 09, 2006

Office 12 - Save as... PDF


One of the new features in Office 12 is the Save as... PDF.
No more need of a 3:d Party program just to save a dokument as a PDF, really cool!

Here is an video with one of the developers behind It...
http://channel9.msdn.com/Showpost.aspx?postid=159231

 

 

Wednesday, February 08, 2006

Training Day 6


It's Training Day 6 and I haven´t had the time to look at It at all :(

I hope that I get more time when the games starts!

http://www.microsoft.com/technet/scriptcenter/funzone/games/default.mspx

Tuesday, February 07, 2006

A script to view all accounts in an NT4 domain that are NOT disabled


I have been working with an NT4 migration recently and we have been disabling most of the accounts, but needed to know how many accounts that are open.
So I wrote this simple script that views the information in an formated excel file.

Nice and easy!

 

' Script to view all accounts that are not disabled in an NT4 domain
' You need Excel on your computer

Set objDomain = GetObject("WinNT://your domain name,domain")
objDomain.Filter = Array("User")

Set objExcel = CreateObject("Excel.Application")
objExcel.Visible = True
objExcel.Workbooks.Add

intRow = 2

objExcel.Cells(1, 1).Value = "Username"
objExcel.Cells(1, 1).Font.Bold = True
objExcel.Cells(1, 1).Interior.ColorIndex = 30
objExcel.Cells(1, 1).Font.ColorIndex = 2

objExcel.Cells(1, 2).Value = "Name"
objExcel.Cells(1, 2).Font.Bold = True
objExcel.Cells(1, 2).Interior.ColorIndex = 30
objExcel.Cells(1, 2).Font.ColorIndex = 2

objExcel.Cells(1, 3).Value = "Description"
objExcel.Cells(1, 3).Font.Bold = True
objExcel.Cells(1, 3).Interior.ColorIndex = 30
objExcel.Cells(1, 3).Font.ColorIndex = 2

For Each objUser In objDomain

IF objUser.AccountDisabled = False Then

objExcel.Cells(intRow, 1).Value = objUser.Name
objExcel.Cells(intRow, 2).Value = objUser.Fullname
objExcel.Cells(intRow, 3).Value = objUser.description
intRow = intRow + 1

End If

Next

Set objRange = objExcel.Range("A1")
objRange.Activate
Set objRange = objExcel.ActiveCell.EntireColumn
objRange.Autofit()

Set objRange = objExcel.Range("B1")
objRange.Activate
Set objRange = objExcel.ActiveCell.EntireColumn
objRange.Autofit()

Set objRange = objExcel.Range("C1")
objRange.Activate
Set objRange = objExcel.ActiveCell.EntireColumn
objRange.Autofit()


Scripting Games MMVI


February 13 - 24, 2006
http://www.microsoft.com/technet/scriptcenter/funzone/games/default.mspx

I will participate and I will compete for Sweden!
It would be nice to know If somebodey else will do It...

Welcome to my Scripting blog


Hi everyone,

welcome to my scriptingblog.
Hopefully I will blog everyday about new scripting stuff.

Who am I?
My name is Fredrik Wall, aka Walle or Dalle (I have changed my last name from Dahlberg)
I'm 30 years old and live in Sweden with my wife and our dog.
Working for a large IT Consulting company as an Consultant.
Have been scripting since 1993 or something like that. Batch scripting, KiXtart, VBScript, PHP, Perl and Monad.

 

 

 

Copyright © Fredrik Wall