weblogs.com.pk

Proud To Be Pakistanis!
Welcome to weblogs.com.pk Sign in | Join | Help
in Search

Browse by Tags

All Tags » System Administration
Showing page 2 of 3 (104 total posts)
  • Creating Web Site in IIS using ADSI

    As posted earlier about ADSI; IIS also has an ADSI provider and one can use ADSI to manage IIS. Here is a simple script to create a new site; you can call it using >iis-newsite.vbs SomeRandomNumber SomeUser Domain>iis-newsite.vbs 8479 weblogs weblogs.com.pk Const ADS_PROPERTY_UPDATE = 2Const ServerName = ''YourServerName''dim ...
    Posted to Khurram Aziz (Weblog) by khurram on January 27, 2006
  • Managing file ACLs from the shell

    Windows Resource Kit has lot of command line tools for system administrators. One such tool is CACLS.exe that can be used to manage ACL (Access Control List) of files and folders. One can easily use it in batch files to manage ACLs in bulk. You can find a quick tutorial about it on this site. Here is the quick command to give particular user full ...
    Posted to Khurram Aziz (Weblog) by khurram on January 27, 2006
  • Using ADSI to create an Account

    ADSI is an API that can be used to manage directory services; Windows is shipped with an ADSI provder called NTDS that can be used to manage accounts and groups using ADSI. Here is the Windows Scripting Host (WSH) script to get this done. Save it as VBS file and double click it from Explorer. Set oDomain = GetObject(''WinNT://ServerName'')Set ...
    Posted to Khurram Aziz (Weblog) by khurram on January 27, 2006
  • FileUtility

    Last year, I volunteered to fix a web application which had some serious security issues. It’s being built using ASP (classic) platform. While working on it; I needed some mechanism with which I can capture all the requests, parse the parameters being sent (form, cookies, query string etc) and if any malicious item exists handle the request ...
    Posted to Khurram Aziz (Weblog) by khurram on January 4, 2006
  • Visual Web Developer 2005 :: IIS 5.1

    Last night; we installed Visual Web Developer 2005 Express on my brother's computer; it was working fine; but his IIS 5.1 (Windows XP Sp2) started giving problems. ASP (Classic) files were not working; ASP.NET v1.1 projects were not loading in Visual Studio and so forth. We are not yet sure that VWD caused it; but here is what we did Gave ...
    Posted to Khurram Aziz (Weblog) by khurram on November 19, 2005
  • Windows Update :: Machine running Project Server

    If you are trying to update Windows from Windows/Microsoft Update site; and you are getting errors; and the machine is running Project Server; this is may be due to Project Server and Sharepoint connection configuration. Complete problem and its workaround is discussed here.
    Posted to Khurram Aziz (Weblog) by khurram on November 17, 2005
  • PHP :: CGI or ISAPI

    Few days I posted about specifying php.ini path; and Adnan posted a simpler technique to use php.exe as CGI and specifying ini path in command’s parameter. Just wanted to say; no doubt his solution is much cleaner; but its good on development machines; on server side; especially the one who is serving some real world app; using PHP as CGI ...
    Posted to Khurram Aziz (Weblog) by khurram on October 12, 2005
  • Specifying PHP.INI path

    Today I wanted to test a php application behavior in Apache and IIS simultaneously; and for that I wanted to have a single PHP.INI file for both the servers. Apache part was easy; but not the IIS one. IIS was trying to load the ini file from %WINDOWS% folder. So, if you want that PHP.INI file is read from a specified location; you may add the ...
    Posted to Khurram Aziz (Weblog) by khurram on October 8, 2005
  • HttpException :: Unable to validate data

    If you are receiving HttpExceptions in your ASP.NET applications on postbacks; saying, Unable to validate data, you may try setting enableViewStateMac to true. You can do so at page level or for entire site in web.config. <configuration> <system.web>  <pages enableViewStateMac=''false'' ...
    Posted to Khurram Aziz (Weblog) by khurram on October 6, 2005
  • System Administrators Myth

    There exists a category of system administrators that don’t like Windows running on machines in their server racks. I understand; Unix/Linux has its culture; and its followers will not like Windows. One thing that annoy me; most of them basically don’t like “change”. I needed to do some stuff on a Linux server; I tried “pico”, “nano” and “joe”; ...
    Posted to Khurram Aziz (Weblog) by khurram on September 29, 2005
  • ADSI :: Permission Errors in Web Application

    If you are trying to access Active Directory services using ADSI in a web application, and your web server is not an Active Directory controller; you might get Permission Errors, (especially if you are trying to change user passwords etc). If you are getting similar errors, try enabling Basic Authentication. Caution: Password will be transmitted ...
    Posted to Khurram Aziz (Weblog) by khurram on September 6, 2005
  • WinFS and MSH

    Yesterday; I downloaded Microsoft Shell (MSH/Monad) and Windows File System (WinFS) and I am pleased and super excited to see the strong roots of Microsoft .NET in these two platforms. We can create Command-lets and/or functions (sort of scripts) that can call any .NET assembly or base class library components; and similarly WinFS exposes a ...
    Posted to Khurram Aziz (Weblog) by khurram on September 1, 2005
  • Tip for working on two (or more) servers

    If you are working on multiple servers, devices or files simultaneously, and doing similar work on similar work-items, it’s always a good idea to establish a distinction between the two. E-g administrating two servers and installing patches etc, working on two SQL servers and updating/creating/managing schema or data or even working on two source ...
    Posted to Khurram Aziz (Weblog) by khurram on August 18, 2005
  • BizTalk 2006

    I got BizTalk 2006 Beta 1 bits today, and I want to try it out. But wait a minute; it has the following system requirement.   ·          I need to have Windows 2003 SP1 o         IIS 6 o         Sharepoint Team ...
    Posted to Khurram Aziz (Weblog) by khurram on August 2, 2005
  • SQL Server Reporting Services :: Security Settings Not Working

    I love SQL Server Reporting Services. It’s very fine platform; has number of options for accessing reports; like web based portal; Sharepoint webparts; URLs and web services. Above this all; it provides extendibility at multiple points; like data providers; data rendering; report designing; report delivery and so forth.   Few weeks back; I ...
    Posted to Khurram Aziz (Weblog) by khurram on July 22, 2005
  • Exchange Server :: Messages are bouncing when sent to public folder email address

    Exchange public folders feature receiving emails. Each public folder can be given one or more email addresses. People then send emails to these addresses and messages will get delivered to public folder.   If Exchange administrator has locked down the public folder; and you are getting delivery failure errors when you try to send the mail ...
    Posted to Khurram Aziz (Weblog) by khurram on July 8, 2005
  • OS-Side Scripting - 2

    OS Side Scripting Part 2   Problem Scenarios   Business The manager wants to have a weekly sale progress, in Excel. An application generate the excel files and keep it on some shared folder; or mail to manager. Problem is; manager has to learn where to store the file on his computer; and how to make sure that he is viewing the most ...
    Posted to Khurram Aziz (Weblog) by khurram on July 7, 2005
  • OS side scripting

    Just one random thought… “Server side scripting has rocked the world.” The Operating system should have something “OS side scripting”; by which I mean when we open/access a file, the OS execute the code written in the file and return what that script has written in response.
    Posted to Khurram Aziz (Weblog) by khurram on July 3, 2005
  • Permission Error In Retreiving Exchange Public Folders

    These days I am trying to explore Microsoft Exchange 2003, that how we can use it affectively as collaboration platform for small teams. Today I tried setting up Public Folders, but I was not able to expand, Internet Newsgroup folder, and Outlook was giving Permission errors.  However Outlook Web Access was working ...
    Posted to Khurram Aziz (Weblog) by khurram on June 15, 2005
  • Why we cannt access manually created Tasks/Calendar folders?

    Exchange is one of the richest collaborative platforms I have ever come across in my short professional career.   One can share his Calendar, Tasks etc across different domain users and groups. One can even create multiple folders for Calendar, Tasks and other supported items. You can share such newly created folders with others, but others ...
    Posted to Khurram Aziz (Weblog) by khurram on June 14, 2005
  • Sharepoint Managed Paths

    In case you are using Sharepoint Team Services; and have extended your Default Web Site, you will be unable to access web sites that are created as Virtual folders. Recently on one server, its administrator installed Exchange Server and was facing problem of receiving HTTP 404 – Path Not Found, when opening Outlook Web Access at ...
    Posted to Khurram Aziz (Weblog) by khurram on June 14, 2005
  • Removing Dormant Data of Removed Domain Controller

    If your Active Directory based network has multiple domain controllers, and one of them is permanently made offline. You may experience problems when installing programs that extend Active Directory Schema. (Microsoft Exchange is one such application)   To resolve this, you need to clean up your Active Directory schema by removing dormant ...
    Posted to Khurram Aziz (Weblog) by khurram on June 14, 2005
  • Reporting Services :: Report Manager giving 401 after installing Service Pack 1 on Windows 2003

    Installing Service Pack 1 on the Windows 2003 box resulted problem in accessing Report Manager web site of SQL Server Reporting Services. We were having “The request failed with HTTP status 401: Unauthorized”   I checked logs of IIS, Report Manager and system’s event logs, but no use. Reporting Server web service was accessible just fine; ...
    Posted to Khurram Aziz (Weblog) by khurram on June 2, 2005
  • TFS Update :: Sharepoint / Reporting Server

    Microsoft Team Foundation Server is built and get integrated with following technologies in an amazing way. 1. Visual Studio .NET 20052. Active Directory3. SQL Server 2005 (Engine, Reporting and Analysis Services)4. SQL Server Analysis Services5. Sharepoint Services6. Excel 20037. Project 2004 It set ...
    Posted to Khurram Aziz (Weblog) by khurram on May 20, 2005
  • Setting Up The First Team Foundation Project

    Continuing my Team Foundation Server (TFS) fun, after dropping Abdullah at school I rush back to try creating a test project in TFS. Here are some discoveries   The client machine should be on Active Directory (AD) The client should logged on to Domain, TFS Beta 2 doest support other scenarios yet. I created an account on domain, ...
    Posted to Khurram Aziz (Weblog) by khurram on May 19, 2005
  • Installing Team Foundation Server

    Today; I had to stay at home; with my son, Abdullah. My wife was on evening duty today. We both enjoyed the evening; we went out; bought few toys and books. It was rush out; we had a little accident out there. The side light broke :(   When we return; Abdullah got busy with his new toys and story books. I availed the time and installed ...
    Posted to Khurram Aziz (Weblog) by khurram on May 19, 2005
  • mysqld-nt Has Thinner Memory Footprint

    In my earlier post; where I blamed mySQL to has fatter memory footprints, I received very informative comments, and I quickly discovered that I need to tune mySQL first. I found out that mySqld-nt daemon should be used if one is interested to run mySQL as Windows Service. Here is the latest task manager screen shot of my machine, and Yes, ...
    Posted to Khurram Aziz (Weblog) by khurram on May 16, 2005
  • mySQL Takes More Memory

    Dont beleive it? See it yourselves.... Both SQL Server and mySQL Server were hosting their default databases plus one database each for my application. At the time of snapshot; both servers were not handling any connections. You are seeing two sqlservr.exe; as I am running two instances of SQL Server Web Worker Process is taking more ...
    Posted to Khurram Aziz (Weblog) by khurram on May 13, 2005
  • Use Apache and Microsoft.NET v1.1 to Host Asp.Net Applications

    Use Apache and Microsoft.NET v1.1 to host Asp.Net applications.   mod_aspdotnet Apache HTTP Server 2.0 Module mod_aspdotnet is an ASP.NET host interface to Microsoft's ASP.NET engine. It is implemented with an Apache.Web.dll assembly that provides ASP.NET with the necessary System.Web.Host and System.Web.Request interfaces to converse with ...
    Posted to Khurram Aziz (Weblog) by khurram on April 1, 2005
  • mySQL :: Client does not support authentication protocol requested by server

    If you are using pre 4.1 client (PHP 4.x) you might get an error ''Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL''   This happens due to the reason that mySQL 4.1+ has new authentication scheme which pre 4.1 clients dont support. Issueing the following statement reset ...
    Posted to Khurram Aziz (Weblog) by khurram on March 26, 2005
  • Windows :: IPSec

    Windows 2000 onwards has the IPSec stack available that can be used to implement IP firewall rules. Windows 2003 is shipped with command NETSH that can be used to access these features. Here is how I recently configured a Slammer protection on one such machine.   C:\>netsh netsh>ipsec netsh ipsec>static netsh ipsec static>add ...
    Posted to Khurram Aziz (Weblog) by khurram on January 31, 2005
  • NAT :: SQL :: Sharepoint

    Last evening, I wanted to configure a box for multi-purpose. I am writing down the problems and their work-around that I faced J   Networking :: NAT   Network Address Translation (NAT) is useful to let people on private subnet to access the other subnets. It can be configured on Windows 2003 box easily. However if you have multiple ...
    Posted to Khurram Aziz (Weblog) by khurram on January 28, 2005
  • Open Solaris

    http://www.opensolaris.org   The Solaris operating system is being released under the terms of the OSI-approved, CDDL (Common Development and Distribution License). Millions of development hours worth of code and over 1,600 patents are being contributed to the open source community. We know that innovation happens everywhere. And we're ...
    Posted to Khurram Aziz (Weblog) by khurram on January 26, 2005
  • RADIUS

    I have been involved in a work that revolves around RADIUS, Remote Authentication Dial In User Service; one of the oldest protocols in the ISP industry. This protocol is used for AAA, Authentication, Authorization and Accounting.   RADIUS in simple is set of grammar to define attributes and their possible values, a format of packet in which ...
    Posted to Khurram Aziz (Weblog) by khurram on January 15, 2005
  • Group Policy :: gpupdate and event id 1030

    To refresh Group policies across the domain we use the command gpupdate. Sometimes we may get the following entries in the event viewer of domain controller.   “Windows cannot query for the list of Group Policy objects. Check the event log for possible messages previously logged by the policy engine that ...
    Posted to Khurram Aziz (Weblog) by khurram on January 11, 2005
  • MRTG on Windows

    If you want to run MRTG on Windows, you need to edit the Perl\lib\FindBin.pm file. In the end, you need to enter the following lines, which resolve folder path problem.   $RealBin = abs_path($RealBin) if($RealBin);   ## existing line    if ($IsWin32)    {       $Bin =~ s/\//\\/g; ...
    Posted to Khurram Aziz (Weblog) by khurram on January 7, 2005
  • Disabling Zip Support in Windows XP

    Windows XP has the zip file support, it shows zip file as folders. It slows down performance especially when you are browsing folders having lot of zip files. To disable this, simply issue, regsvr32 /u zipfldr.dll at command prompt.
    Posted to Khurram Aziz (Weblog) by khurram on November 21, 2004
  • Http.sys &amp; Microsoft .NET v2

    HTTP has gained an industry wide recognition in past 10 years. Windows 2003 and Windows XP Service Pack 2 now feature HTTP.sys, a kernel level HTTP stack. You can use this to create server applications that use HTTP. Aaron Skonnard is explaining how to use it in Microsoft .NET 2.0
    Posted to Khurram Aziz (Weblog) by khurram on November 20, 2004
  • Protect your web-applications from ASP.NET vulnerability

    ASP.NET has a vulnerability exploiting which one can bypass the Asp.Net authentication features. To protect your site use the following code in your Global.asax.cs   void Application_BeginRequest(object source, EventArgs e) { if (   Request.Path.IndexOf('\\') >= 0 || System.IO.Path.GetFullPath(Request.PhysicalPath) ...
    Posted to Khurram Aziz (Weblog) by khurram on October 7, 2004
  • Terminal Services

    To query the terminal sessions on some server give qwinsta /server:192.168.0.25 To disconnect any particular session giverwinsta /server:192.168.0.25 3(3 is the session id that you will come to know from the above command) qwinsta = Query WINdows STAtionrwinsta = Reset WINdows STAtion Make sure the session is established with administrative ...
    Posted to Khurram Aziz (Weblog) by khurram on September 27, 2004
  • GNU Utilities for Win32

    Addicted to UNIX utilities and working on Windows? Get GNU Utilities for Win32
    Posted to Khurram Aziz (Weblog) by khurram on September 22, 2004
  • Multiple Web Sites on XP

    Wishing to have multiple sites configured in your IIS running on XP? Try IISAdmin.
    Posted to Khurram Aziz (Weblog) by khurram on September 6, 2004
  • NTP: Time Synchronization

    NTP is widely used protocol being used to synchronize the time between computers and devices inter-connected. Windows also support the NTP protocol out of the box. (Windows 2000 onwards I guess) In case you have any NTP server on your network, you can use the following commands to keep your computer synchronized with the NTP server. In case you ...
    Posted to Khurram Aziz (Weblog) by khurram on July 19, 2004
  • Windows Hosting Discussions

    Asp.Net Forums are hosting Windows Hosting Discussions, the collection of forums. If you are using Windows for hosting the applications, you may find valuable information there. Best of all, Asp.Net forums provide RSS feeds!
    Posted to Khurram Aziz (Weblog) by khurram on June 25, 2004
  • MSXML and Temporary Internet Files

    There is an old application hosted on the application server at my job. The core COM+ application was exposed over HTTP using ASP and XML. The custom ASP scripts are used parsing XML requests using MSXML. It was a long time ago when SOAP was not made available.   This web-service like approach was required as two other web application ...
    Posted to Khurram Aziz (Weblog) by khurram on June 10, 2004
  • Windows XP: Get rid of low disk reminder

    Forwarding from a mailing list: Windows XP will warn you when one of your hard drives has less than 200MB of free space. It will continue to warn you at predefined intervals, and the balloons will remain open for 30 seconds when you have less than 80MB of space. If you're well aware that you're low on space and don't want to be repeatedly ...
    Posted to Khurram Aziz (Weblog) by khurram on June 8, 2004
  • Server applications with heavy backgrounds!

    I hate programs having heavy backgrounds.   The GUI designers should consider simpler approaches specially the programs that are meant to be running on the Server Operating Systems. (Windows Server specifically) Sometimes we need to run such application using Terminal consoles over dialup!   The coders/developers should implement low ...
    Posted to Khurram Aziz (Weblog) by khurram on June 4, 2004
  • Windows XP, Active Directory, Visual Studio.Net, Web Projects, REALM Problem

    Today, I needed to setup a web project on Windows XP box that was a member of an Active Directory domain. I was getting 500 errors while creating the web project in the Visual Studio. Checking event logs of System, Application and Security I discovered that IUSR_MACHINE account is having some ACL problems.   I dig furthered, and find out ...
    Posted to Khurram Aziz (Weblog) by khurram on June 3, 2004
  • IIS/ADSI/Microsoft.Net

    ADSI (Active Directory Services Interface) provide the accessibility to the developers to work with different ADSI compliant providers, like LDAP, Novell DS, WinNT and IIS. Microsoft.Net’s System.DirectoryServices namespace (you might need to reference the System.DirectoryServices.dll) provide the required classes and interfaces to work with ...
    Posted to Khurram Aziz (Weblog) by khurram on May 29, 2004
  • Security Concerns for Administrators Hosting Asp.Net Applications

    Generally, in production, there are multiple Asp.Net applications running on a single machine. (ISP environment) The administrators usually create separate windows accounts for each application, set them as the web application’s anonymous users and set the file system ACLs accordingly.   Asp.Net has a worker process that runs under ASPNET ...
    Posted to Khurram Aziz (Weblog) by khurram on May 17, 2004
Powered by Community Server (Personal Edition), by Telligent Systems