Monday, December 28, 2009

Create UAC White List (Windows Vista/7)

There is no such Exception list as Windows Firewall has, for UAC. This at times does cause some annoyance if you are the admin and you are trying to run a program and every time you have to ‘Allow’ it.

There are three ways (other than disabling it) by which you can bypass eh UAC prompt for particular applications:




  1. Task Scheduler

  2. Elevate Me

  3. Tweak UAC


 

Print Friendly and PDF
Share/Bookmark

HVRemote (Hyper-V Remote Management Configuration Utility)


 

  • HVRemote reduces the manual configuration steps needed for Hyper-V Remote Management down to a few simple commands.

  • HVRemote can diagnose common configuration errors.

  • HVRemote is locale neutral, although output is in English only.

  • HVRemote can configure all combinations of workgroup and domain joined clients and servers.


 



http://code.msdn.microsoft.com/HVRemote

In the Client and Server both in workgroup, the following things need to aware:

1. The local account on server should be local administrator

2. The hostname and IP address of Hyper-V Server need to add to hosts file of the Client for Remote access (Eg. Windows 7 remote server administration tools (RSAT)). Print Friendly and PDF
Share/Bookmark

Opening Explorer shell with admin privileges on XP

Open a network share with different credential


runas /u:domain\username "explorer \\server\share, /separate"



 


running the application in user profile by different credential


runas.exe /noprofile /user:administrator cmd

Print Friendly and PDF
Share/Bookmark

Open My Computer using keyboard with quick run command

Quick Run command to Open My Computer



1. Press Win + R keys to open Run box (or Click Start > Run).
2. Type "…"  and press Enter key.
Print Friendly and PDF
Share/Bookmark

VMware savings-calculator

http://www.vmwareyourtime.com/apac/?src=REM_09Q3_EXPERT_SMBT_APAC_HK_EM1#/virtualization-savings-calculator Print Friendly and PDF
Share/Bookmark

open port checker (local + remote)

http://www.yougetsignal.com/tools/open-ports/


*The open port checker is a tool you can use to check your external IP address and detect open ports on your connection. This tool is useful for finding out if your port forwarding is setup correctly or if your server applications are being blocked by a firewall.

Print Friendly and PDF
Share/Bookmark

Wednesday, December 9, 2009

Tradelink on Terminal Server

The tradelink internet network connection setting by default is using a Windows dial up/PPPoE ..... connection 


When a user to try to connect to trandlink in a corp. network (e.g. be hide firewall), they will got the following error. It is because the tradelink try to use the network connection e.g. PPPoE, dial up …… to connect the internet.


 The solution is use the administrator account login the tradelink system, go to “admin” -> “system parameter” -> “system” - > “Internet connection” -> select “Use leased line connection”


 But for the terminal server environment, there are some different:


It depends on the installation method of the tradelink (e.g. in user mode/in admin mode during the install and the user account of the terminal service). It will make the tradelink use the “Wini.ini” in different localtion


The following is the location of “Win.ini”


e.g. C:\Documents and Settings\Administrator\WINDOWS (For Multiple user environments)


e.g. C:\Windows (For local login only)


e.g. User home folder H:\Windows (If User domain account have home folder setup)


 


The following is the tradelink configuration in the “Win.ini”


 


[SEDIF_Schedule]


ConnectControl=ON


CONNECTMIN=60


ActionAfterConnect=Both Send and Receive


ConnectType=CETS


[TRADELINK_CONNECTION]


RASProfile=


Leaseline=1 [The “1” = “Use leased line connection”]


UseProxy=0


ProxyAddr=


[IDAPI]


DLLPATH=C:\VALUNET\IDAPI

Print Friendly and PDF
Share/Bookmark

hmailserver installation and configuration information

~hmailserver~懶人網路工程師郵件伺服器

http://www.ivorytower.com.tw/?p=223

~hmailserver~懶人網路工程師郵件伺服器(郵件域名設定)

http://www.ivorytower.com.tw/?p=282

~hmailserver~懶人網路工程師郵件伺服器(防毒反垃圾)

http://www.ivorytower.com.tw/?p=297

~hmailserver~懶人網路工程師郵件伺服器(輔助工具)

http://www.ivorytower.com.tw/?p=347

How To Configure SpamAssassin for HMailserver in Windows Server 2003



  1. Download SAWin32 3.2.3.3, which is the latest windows build of SpamAssassin (As of September 8, 2009).

  2. Download the latest SpamAssassin for Win32 command-line tools 3.2.3.5

  3. Unzip both files into your computer with HMailServer installed under the path "c:\sa\"

  4. Next we will have to create a new Windows Service called "SpamAssassin". This will allow HMailServer to use SpamAssassin.

    1. Install the Windows Server 2003 Resource Kit Tools. This will give you the necessary INSTSRV.EXE and SRVANY.EXE files to run SA as a service

    2. Go to Start Menu -> Run -> cmd

    3. Under the command line, enter in the following line (with quotes):




"C:\Program Files\Windows Resource Kits\Tools\INSTSRV.EXE" SpamAssassin "C:\Program Files\Windows Resource Kits\Tools\SRVANY.EXE"


 




  1.  

    1. Once installed, open up Regedit

    2. Go to HKLM -> SYSTEM -> CurrentControlSet -> Services -> SpamAssassin

    3. Add a new key called "Parameters"

    4. Under Parameters, add a new String Value of Application, and set the value data to (without quotes):




"c:\sa\spamd.exe -l -s c:\sa\spamd.log --round-robin"


 




  1.  

    1. Then go to the services control panel and start up the spam assassin service.

    2. If there are any issues, check the c:\sa\spamd.log file for more info



  2. Then you might have to allow dccproc and spamassassin in your firewall

  3. Adjust your hMailServer settings to allow the incoming e-mail check against SpamAssassin

  4. And finally you might have to restart your hMailServer service for the new service to take effect.


http://alterprocedure.net/articles/alterprocedure/how-to-configure-spamassassin-for-hmailserver-in-windows-server-2003.aspx



完整的免費Email 伺服器方案--hMailServer 4.4中文 + 防毒 + WebMail 完整 Windows 應用方案


http://twg.idv.tw/dv_rss_xhtml_229_91179_8.html



 


SquirrelMail


http://www.squirrelmail.org/download.php


WampServer 2


http://www.wampserver.com/en/


ClamWin Free Antivirus is a free software project


http://www.clamwin.com/content/view/18/46/

Print Friendly and PDF
Share/Bookmark

Tuesday, December 8, 2009

(Freeware) Apache, MySQL, PHP on Windows

WampServer is a Windows web development environment. It allows you to create web applications with Apache, PHP and the MySQL database. It also comes with PHPMyAdmin to easily manage your databases.

WampServer installs automatically (installer), and its usage is very intuitive. You will be able to tune your server without even touching the setting files.

WampServer is the only packaged solution that will allow you to reproduce your production server. Once WampServer is installed, you have the possibility to add as many Apache, MySQL and PHP releases as you want.

http://www.wampserver.com/en/ Print Friendly and PDF
Share/Bookmark

(Freeware) ChromePlus

ChromePlus has all the functionalities that Google Chrome has. More, ChromePlus added some useful features such as Mouse gesture, Super drag, IE tab, etc. Meanwhile, ChromePlus is free with no function limitation and you can use ChromePlus to surf the internet in any case.


http://www.chromeplus.org/

Print Friendly and PDF
Share/Bookmark

Using Netsh with Windows Firewall

http://www.windowsnetworking.com/articles_tutorials/Using-Netsh-Windows-Firewall.html Print Friendly and PDF
Share/Bookmark

GPO of Windows firewall allow Remote Administration exception

Allow Remote Administration exception policy on the target machine. This might be needed for some commands to function properly.
Start "gpedit.msc" snap-in. Navigate to Computer Configuration | Administrative Templates | Network | Network Connections | Windows Firewall
Choose Domain or Standard as needed, and enable the following: Allow Remote Administration Exception

For more information:

http://technet.microsoft.com/en-us/library/cc738900%28WS.10%29.aspx Print Friendly and PDF
Share/Bookmark

Enable and Disable Windows Firewall Quickly Using Command-Line (From http://www.winhelponline.com/blog/enable-and-disable-windows-firewall-quickly-using-command-line/)

Enabling Windows Firewall


Click Start, Run and type:


Netsh firewall set opmode enable


 


Disabling Windows Firewall


Click Start, Run and type:


Netsh firewall set opmode disable


http://www.winhelponline.com/blog/enable-and-disable-windows-firewall-quickly-using-command-line/

Print Friendly and PDF
Share/Bookmark

找回Vista及Server 2008的RunAs 功能

The command-line Runas utility is handy for launching programs under different accounts, but it’s not convenient if you’re a heavy Explorer user. ShellRunas provides functionality similar to that of Runas to launch programs as a different user via a convenient shell context-menu entry.

Screenshot

ShellRunas

 

Using ShellRunas


Usage: shellrunas [/reg | [/quietreg ] | /regnetonly [/quiet] | unreg | [/netonly] <program> <arguments>


























/reg                      Registers ShellRunas shell context-menu entry
/regnetonlyRegisters Shell /netonly context-menu entry
Note: a command prompt will flash when the program starts
/unregUnregisters ShellRunas shell context-menu  entry
/quietRegister or unregisters ShellRunas shell context-menu entry without result dialog
/netonlyUse if specified credentials are for remote access only
<program>Runs program with specified credentials and parameters

http://technet.microsoft.com/en-us/sysinternals/cc300361.aspx Print Friendly and PDF
Share/Bookmark

(Freeware) VHD Attach – Attach and detach VHDs in Windows Explorer

This is small tool that adds Attach and Detach option to contextual (aka right-click) menu of Virtual disk (vhd) files. That enables those operations to be done without trip to Disk Management console. Detach option is available on hard drive contextual menu also.

           

Additionally program can be used as classic utility in order to see various information about virtual disk, even without attaching it.

           

Do notice that this program only works with Windows 7 and Windows Server 2008 R2. Older operating systems are not supported.

http://www.jmedved.com/default.aspx?page=vhdattach&rendering=xhtml Print Friendly and PDF
Share/Bookmark

create a custom default user profile

How to create a custom default user profile
http://support.microsoft.com/default.aspx?kbid=319974 Print Friendly and PDF
Share/Bookmark

Copy User Profiles in Windows XP

Copy User Profiles in Windows XP


http://www.petri.co.il/copy_user_profiles_in_windows_xp.htm  


 

Print Friendly and PDF
Share/Bookmark

How do I Find Out Linux CPU Utilization?

http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html Print Friendly and PDF
Share/Bookmark

Some Windows 7 hot key

Keyboard Shortcuts


 


And here is a list of useful new keyboard shortcuts:


 


Alt+P


Display/ hide the Explorer preview pane


 


Windows key+G


Display gadgets in front of other windows


 


Windows key++ (plus key)


Zoom in, where appropriate


 


Windows key+- (minus key)


Zoom out, where appropriate


 


Windows key+Up


Maximise the current window


 


Windows key+Down


Minimise the current window


 


Windows key+Left


Snap to


 


http://www.edmartechguide.com/2009/04/windows-7-optimization-tips.html

Print Friendly and PDF
Share/Bookmark

display message on Window XP login GINA

Windows Registry Editor Version 5.00


 


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]


 


"LogonPrompt"="This is XXX Workstation: hostname"


"Welcome"=" - This is XXX Workstation: hostname"

Print Friendly and PDF
Share/Bookmark

Beware of Unused NICs (From: http://windowsitpro.com/article/articleid/96610/beware-of-unused-nics.html)

Executive Summary:
When you're configuring a new Microsoft Windows server that has multiple network interface cards (NICs), it's important that you disable any NICs that aren't plugged in to the network. If you don't disable an unused NIC, problems can arise on domain controllers (DCs) running Domain Name System (DNS). The DNS server problems can impede the performance of client computers.

 For more information:


http://windowsitpro.com/article/articleid/96610/beware-of-unused-nics.html

Print Friendly and PDF
Share/Bookmark

English office 可提供細明體或新細明體等中文字型

OS: Microsoft Windows XP English
Microsoft Office 2003/2007 English

control panel -> Regional and Language Options -> advanced page - > Chinese(Taiwan) match non-unicode Print Friendly and PDF
Share/Bookmark

Tuesday, December 1, 2009

Show User and Computer Name on Desktop (From: http://www.pctools.com/guides/registry/detail/370/ )

Show User and Computer Name on Desktop (Windows NT/2000/XP) Popular

This tweak will rename "My Computer" to "Username on Computername" making it simple to determine which computer you are logged on to and which username you are logged on as.







 





Using REGEDT32.EXE (this is necessary for REG_EXPAND_SZ) open your registry and find the key in the settings section below. Then continue following the steps for your Windows version.

For Windows NT
Delete the existing value called "No Name" and add a new REG_EXPAND_SZ value with an empty value name and set the value to "%USERNAME% on %COMPUTERNAME%".

For Windows 2000
Rename the value named "LocalizedString" to "LocalizedString.old". Create a new REG_EXPAND_SZ value named "LocalizedString", and copy the contents of the original value to the new value except change the words "My Computer" to equal "%USERNAME% on %COMPUTERNAME%". For example, the new "LocalizedString" value may equal "@C:\WINNT\system32\shell32.dll,-9216@1033,%USERNAME% on %COMPUTERNAME%".

For Windows XP or Internet Explorer 6.0+
Rename the value named "LocalizedString" to "LocalizedString.old". Create a new REG_EXPAND_SZ value named "LocalizedString", and set the value to "%USERNAME% on %COMPUTERNAME%".

Exit the registry editor, click on your desktop and press F5 (for refresh). The "My Computer" icon should now be rename to "Username on Computername".

Note: Users of Internet Explorer 6.0 or greater should use the method for Windows XP.

Registry Settings



System Key: [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}]
Data Type: REG_EXPAND_SZ (Expanded String Value)

http://www.pctools.com/guides/registry/detail/370/


 

Print Friendly and PDF
Share/Bookmark

Utility lets you execute commands and scripts on the remote machine

Remote Script


Utility lets you execute commands and scripts on the remote machine.


http://www.simply-ware.com/

Print Friendly and PDF
Share/Bookmark

Hardware inventory during the user login and write to a excel (From:http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_22575735.html)

The script write to an existing Excel spreadsheet, on the first sheet, and output the same results, creating a new row if that Pc is new, and overwriting the existing row if it already exists.
Pleae change the strWorkbook string to the UNC path (or mapped drive if all of your clients use the same drive) to point to an Excel template file, that has one sheet in it.  The file must exist first.
'=-=============================
'On Error Resume Next

' To convert to a logon script that runs without user interaction, add a rem in front of the strComputer = InputBox
' line below and remove the rem from the strComputer = "." line below that. This will then only check the PC on which
' the script runs
Set WshNetwork = WScript.CreateObject("WScript.Network")

strComputer = "."
strWorkBook = "N:\Scripting\Test Scripts\Hardware Inventory Script\Hardware.xls"

' Create Excel Spreadsheet
Set app = CreateObject("Excel.Application")
app.Workbooks.Open strWorkBook
Set wb = app.ActiveWorkbook
app.Visible = False
wb.Activate
Set ws = wb.Worksheets(1)
ws.Cells(1,1).Value = "Computername"
ws.Columns(1).ColumnWidth = 20
ws.Cells(1,2).Value = "Username"
ws.Columns(2).ColumnWidth = 30
ws.Cells(1,3).Value = "Manufacturer"
ws.Columns(3).ColumnWidth = 20
ws.Cells(1,4).Value = "Model"
ws.Columns(4).ColumnWidth = 20
ws.Cells(1,5).Value = "Serial Number"
ws.Columns(5).ColumnWidth = 30
ws.Cells(1,6).Value = "CPU"
ws.Columns(6).ColumnWidth = 30
ws.Cells(1,7).Value = "CPU Speed"
ws.Columns(7).ColumnWidth = 10
ws.Cells(1,8).Value = "Operating System"
ws.Columns(8).ColumnWidth = 40
ws.Cells(1,9).Value = "Service Pack"
ws.Columns(9).ColumnWidth = 20
ws.Cells(1,10).Value = "Total Memory"
ws.Columns(10).ColumnWidth = 20
ws.Cells(1,11).Value = "Audit Date"
ws.Columns(11).ColumnWidth = 20
ws.Rows(1).Font.Bold = True

' Get the serial number first to see if it already exists in the spreadsheet
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_BIOS",,48)
For Each objItem In colItems
strSerialNumber = "" & objItem.SerialNumber
Next
Set objWMIService = Nothing
Set colItems = Nothing

intRowToUse = -1
For intRowCount = 2 To ws.UsedRange.Rows.Count
      If Trim(strSerialNumber) = Trim(ws.Cells(intRowCount,5).Value) Then
            intRowToUse = intRowCount
      End If
Next
If intRowToUse = -1 Then
      intRowToUse = ws.UsedRange.Rows.Count + 1
End If

' Get Computer System Details
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_ComputerSystem",,48)
For Each objItem In colItems
ws.Cells(intRowToUse,1).Value = "" & objItem.Caption
    ws.Cells(intRowToUse,2).Value = "" & objItem.UserName
    ws.Cells(intRowToUse,3).Value = "" & objItem.Manufacturer
    ws.Cells(intRowToUse,4).Value = "" & objItem.Model
Next
Set objWMIService = Nothing
Set colItems = Nothing
'
'Output the Serial Number
ws.Cells(intRowToUse,5).Value = strSerialNumber

'
' Get CPU Details
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_Processor",,48)
For Each objItem In colItems
ws.Cells(intRowToUse,6).Value = "" & objItem.Name
    ws.Cells(intRowToUse,7).Value = "" & objItem.CurrentClockSpeed
Next
Set objWMIService = Nothing
Set colItems = Nothing
'
' Get OS Details
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_OperatingSystem",,48)
For Each objItem In colItems
    ws.Cells(intRowToUse,8).Value = "" & objItem.Caption
    ws.Cells(intRowToUse,9).Value = "" & objItem.CSDVersion
    ws.Cells(intRowToUse,10).Value = "" & FormatNumber(objItem.TotalVisibleMemorySize/1024,0)  
Next
Set objWMIService = Nothing
Set colItems = Nothing
'
' Get & Writeout current Date
ws.Cells(intRowToUse,11).value = "" & Day(Now) & "-" & Month(Now) & "-" & Year(Now)

'Autofit all columns
app.ActiveSheet.Columns.EntireColumn.AutoFit
' Save Audit File
app.DisplayAlerts = False
'wb.Saved = True
wb.Close True
app.DisplayAlerts = False
app.quit

MsgBox "Done"
'=====================

 


http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_22575735.html

Print Friendly and PDF
Share/Bookmark

Map Network Drives and Log the Results

VBScript


' Name         : Login.vbs


' Version      : 3.2, 04/15/2004


' Author       : J. Jason Bergh


 


' INITIALIZATION


 


' Declare Variables


 


Option Explicit


 


Dim objNetDrive        ' Network Drive Object


Dim objNetDriveEnum    ' Network Drive Enumeration Object


Dim objWMIService      ' WMI Service Object


Dim strComputer        ' WMI Computer Namspace String


Dim colItems           ' WMI Item Collection (Win32_OperatingSystem)


Dim colComputers       ' WMI Computer Collection (Win32_ComputerSystem)


Dim objItem                ' WMI Item Object


Dim objComputer        ' WMI Computer Object


Dim strError           ' Event Log Error String


Dim strSuccess         ' Event Log Success String


Dim strEventLog        ' Event Log Report String


Dim WshShl                 ' Windows Scripting Host Shell Object


Dim WshNet                 ' Windows Scripting Host Network Object


Dim i                      ' Counter


 


' Instantiate Variables


Set objNetDrive = CreateObject("WScript.Network")


Set WshShl = WScript.CreateObject("WScript.Shell")


Set WshNet = WScript.CreateObject("WScript.Network")


 


' Ignore Error Messages


On Error Resume Next


 


' Instantiate Event Log Report


strEventLog = "Login Script v.3.2 status as follows:"


 


' Determine OS Type and Role


OSTypeAndRole()


 


' Enumerate Network Drives


Set objNetDriveEnum = WshNet.EnumNetworkDrives


 


' Map Network Drives


NetworkMapDrive "V:", "\\GODZILLA\DOWNLOADS"


NetworkMapDrive "W:", "\\GODZILLA\DOCUMENTS"


NetworkMapDrive "X:", "\\GODZILLA\PICTURES"


NetworkMapDrive "Y:", "\\GODZILLA\MUSIC"


 


' Write Event To The Application Event Log


EventLog()


 


' End Script


 


' FUNCTIONS


 


Function OSTypeAndRole()


 


        ' Instantiate WMI


        strComputer = "."


        Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")


        Set colItems = objWMIService.ExecQuery("Select * from Win32_OperatingSystem",,48)


 


        ' Query Target OS Type


        For Each objItem In colItems


               ' Target is in the Windows NT family if OS Type 18


               If objItem.OSType = 18 Then


                       ' Query target and if the target's role is a Domain Controller (Primary, Backup) the Login script will exit.


              


                       ' Instantiate WMI


                       Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")


                       Set colComputers = objWMIService.ExecQuery ("Select DomainRole from Win32_ComputerSystem")


                       ' Query target role if target is in Windows NT family


                       For Each objComputer In colComputers


                               ' Check target's role and terminate script if target is a Domain Controller (Domain Role > 3)


                               If objComputer.DomainRole > 3 Then


                                      Wscript.Quit()


                               End If


                       Next


               Else


                       ' Operating System is not part of the Windows NT family, terminate the Login script


                       Wscript.Quit()


               End If


        Next


 


        ' Instantiate Error and Success string values


        strError = "- Error determining operating system and role."


        strSuccess = " - Windows NT family functioning as a member workstation / server."


 


        ' Check for errors


        CheckError strError, strSuccess


End Function


 


Function NetworkMapDrive (Drive, Share)


        ' Enumerate and compare specified Drive Letter and UNC share point to mapped Drive Letters and UNC share points


        For i = 0 to objNetDriveEnum.Count -1 Step 2


               If LCase(Drive) = LCase(objNetDriveEnum.Item(i)) Then


                       If Not LCase(Share) = LCase(objNetDriveEnum.Item(i+1)) Then


                               ' Remove Network Share Point


                               WshNet.RemoveNetworkDrive Drive, TRUE, TRUE


                       Else


                               ' Drive mapped correctly, exit function


                               Exit Function


                       End If


               End If


        Next


 


        ' Map specified Drive Letter to specified UNC share point


        WshNet.MapNetworkDrive Drive, Share, TRUE


 


        ' Instantiate Error and Success string values


        strError = " - Error mapping drive " & Drive & " to " & Share & "."


        strSuccess = " - Drive " & Drive & " mapped to " & Share & "."


       


        ' Check for errors


        CheckError strError, strSuccess


End Function


 


Function CheckError (EventError, EventSuccess)


        ' Function status reported to Application Event Log string


       


        ' Check for errors


        If Err > 0 Then


               ' Error occured, mark Event Log string accordingly


               strEventLog = strEventLog & vbCR & EventError


               Err.Clear


        Else


               ' No errors, mark Event Log string complete for this function


               strEventLog = strEventLog & vbCR & EventSuccess


        End If


End Function


 


Function EventLog()


        ' Write Event to the Application Event Log


        WshShl.LogEvent 0, strEventLog


End Function


 


 


http://gallery.technet.microsoft.com/ScriptCenter/en-us/5ff5f445-d28d-45d5-8db7-bc5998ca8fcd

Print Friendly and PDF
Share/Bookmark

Microsoft Active Directory Topology Diagrammer

The Microsoft Active Directory Topology Diagrammer reads an Active Directory configuration using ActiveX Data Objects (ADO), and then automatically generates a Visio diagram of your Active Directory and /or your Exchange 200x Server topology. The diagramms include domains, sites, servers, administrative groups, routing groups and connectors and can be changed manually in Visio if needed.


http://www.microsoft.com/downloads/details.aspx?familyid=cb42fc06-50c7-47ed-a65c-862661742764&displaylang=en

Print Friendly and PDF
Share/Bookmark

Monday, November 30, 2009

Install Missing Runtimes With All In One Runtime

http://www.raymond.cc/blog/archives/2009/08/18/easily-install-all-versions-of-net-framework-plus-hotfixes-with-aio-runtimes/zh_TW/


http://www.ghacks.net/2009/11/07/install-missing-runtimes-with-all-in-one-runtime/

Print Friendly and PDF
Share/Bookmark

.net framework setup cleanup utility

http://blog.joaoko.net/archives/1324 Print Friendly and PDF
Share/Bookmark

DropMyRights

DropMyRights


DropMyRights is a tool written by Michael Howard that allows administrators to run internet-facing applications (such as email clients and web browsers) as a non-administrator. You can read about it and download it from his MSDN article "Browsing the Web and Reading E-mail Safely as an Administrator".


http://nonadmin.editme.com/DropMyRights


 

Print Friendly and PDF
Share/Bookmark

Hard disks wipe and data clearing


Dariks Boot And Nuke


http://www.dban.org/



Eraser is an advanced security tool for Windows which allows you to completely remove sensitive data from your hard drive by overwriting it several times with carefully selected patterns. Works with Windows 98, ME, NT, 2000, XP, Vista, Windows Server 2003 and Server 2008.


http://eraser.heidi.ie/


 Western Digital DLG Diagnostics (Data LifeGuard Diagnostics) WinDLG.zip


http://support.wdc.com/product/download.asp?groupid=302&sid=3&lang=en



Print Friendly and PDF
Share/Bookmark

Monday, November 23, 2009

(Freeware) PDF-XChange Viewer (With editing function)

 The FREE PDF-XChange Viewer offers all the feature's you would expect such as support of all PDF file formats from Version 1.0 all the way to the latest 1.7 (Acrobat 8)You might be surprised just how quickly your large PDF files open and pages smoothly refresh as they are scrolled.

So, why not speed up and improve your PDF Viewing experience by downloading the free PDF-XChange Viewer now! 

In addition to all the standard features here are some of the features available in the PDF-XChange FREE Viewer 

  • Add Comments and Annotations to any PDF file (subject to security settings) - unlike the Adobe Viewer which requires the PDF creation tool to be 'certified' by Adobe !

  • Add & apply Custom Stamps from any Image or PDF File and even your Windows Clip board !

  • Mark-up pages with text and objects

  • Type directly on any PDF page, not just Adobe enabled forms documents - in Typewriter mode.

  • Export PDF pages or entire files to any one of the supported Image formats including BMP, JPEG, TIFF, PNG and many more ...

  • Extract text from a PDF page/File

  • Make your navigation of large or complex PDF files both simple and enjoyable with the extended functionality of our 'Loupe' and the 'Pan' Window tools

  • Fill and Save Adobe Forms to disk, email or 'post' !

  • Full Javascript Engine included

  • Updated JPEG2000 Compression support - improving speed.

  • Plug-Ins for both MS IE or Firefox Browser's included

  • Integrate seamlessly with your favourite translation software to translate text on the 'fly' - including :  ABBYY Lingvo 12, Translate It!, Lingoes.

  • Includes comprehensive Help file and PDF Manual - no extra downloads required to add features etc.

  • Portable version also available - can be run from any suitable device such as a Memory stick/CD/DVD etc - simply unzip and use - no installation required - just 4MB download !


And many more features such as Rotate and 'Save',  Email files etc ...

Please ensure you 'Update' under the 'Help' drop down menu once installed and periodically thereafter to ensure you have the latest release.

See what other's say about the PDF-XChange Viewer

http://www.docu-track.com/home/prod_user/PDF-XChange_Tools/pdfx_viewer?act[69]=scr_shot

 

Print Friendly and PDF
Share/Bookmark

VMLite XP Mode (No HW VT need - An alternative solution of MS XP Mode)

VMLite XP Mode offers similar functions as Microsoft WIndows XP Mode, but doesn't require hardware virtualization. It allows you to run Windows XP at the same time from your desktop running on a different host operating system. 

Even if your computer has VT-x or AMD-V, you should try out VMLite, because it runs faster, and will support 3D/2D acceleration in our next build.

If you want to migrate your old Windows XP to run as virtual machine on your new Windows 7 PC, you can use our MyOldPCs software.

If you want to boot your old Windows XP directly on your new PC to have a multiple boot system in addition to your Windows 7, you can use our VBoot software, which boots an operating system from a single virtual disk file in VHD format.

http://www.vmlite.com/index.php/products/vmlite-xp-mode Print Friendly and PDF
Share/Bookmark

Add RunAs to Explorer Context Menu in Vista and Server 2008

That’s where the RunAs command (XP and Server 2003) came in handy over the years.  You could login as a non-privileged user but if you needed to do something which required Admin rights, you could hold down Shift and Right Click on the application in Windows Explorer and start the application using your Admin credentials.

With the release of Windows Vista and Server 2008, this all changed.  True, you could still use the RunAs.exe from the command line however, if you wanted to do it with Windows Explorer.  Fortunately Mark Russinovich has written a new tool called which adds the RunAs feature to Windows Explorer.

Extracted from:

http://www.groovypost.com/howto/microsoft/vista/add-runas-to-explorer-context-menu-in-vista-and-server-2008/ Print Friendly and PDF
Share/Bookmark

VMware Player 3.0

What's New


This release of VMware Player adds the following new features and support:

New Support for 32-Bit and 64-Bit Operating Systems  


This release provides support for the following host and guest operating systems:




















































    Operating System



    Host and Guest Support


    Windows 7 Home Basic
    Windows 7 Home Premium
    Windows 7 Professional
    Windows 7 Enterprise
    Windows 7 Ultimate
    Host and guest
    Windows 2008 SP2, R2Guest
    Windows Vista SP2Guest
    Debian 5Guest
    Ubuntu 9.04Host and guest
    Red Hat Enterprise Linux 5.3Host and guest
    CentOS 5.3Guest
    Oracle Enterprise Linux 5.3Guest
    OpenSUSE 11.xHost and guest
    Mandriva 2009Host and guest
    SUSE Linux Enterprise 11.xHost and guest


 

New Features in VMware Player



  • Virtual Machine with Easy InstallCreate a virtual machine and install any supported guest operating system with Easy Install.

  • New User Interface — Use the new user interface to create virtual machines and edit virtual machine settings.

  • Windows 7 — Create and run Windows 7 32-bit and 64-bit virtual machines using VMware Workstation. VMware Workstation has been enhanced for performance and to take advantage of the new Windows 7 features including Live Thumbnails and Aero Peek.

  • Aero Glass — A new Windows Display Driver Model (WDDM) graphics driver has been developed for Windows Vista and Windows 7 virtual machines. The WDDM driver can display the Windows Aero user interface, OpenGL 1.4, and Shader Model 3.0. For more information on the VMware recommended graphics hardware, see the VMware Workstation User's Manual.

  • Windows XP Mode Compatible — Import a Windows XP Mode virtual machine using VMware Player 3.0 and run the virtual machine without being prompted to enter a Windows XP license key. VMware Player enables the Windows XP Mode virtual machine to take advantage of more than one processor, render high-end graphics, integrate seamlessly with Unity, and transfer files easily with drag and drop, and shared folders. VMware Player also has the ability to run concurrently with Windows XP Mode.

  • 3D Graphics Improvements for Windows XP guests — OpenGL 2.1 and Shader Model 3.0 support is now available for Windows XP virtual machines. The XPDM (SVGAII) graphics driver works with Windows XP, Windows Vista, and Windows 7. However, only Windows XP virtual machines install the XPDM graphics driver by default. To switch graphics drivers in the guest operating system, see How to Switch Between SVGAII and WDDM Drivers.

  • Multiple-Monitor Display — Virtual machines can now take advantage of multiple monitors.

  • Advanced Linux Sound Architecture (ALSA) — ALSA significantly improves the sound of virtual machines running on a Linux host and streams the audio from each virtual machine on a separate channel so that multiple virtual machines can be heard simultaneously.

  • Drag and Drop Enhancements — Drag and drop enhancements include support for new file types including images and formatted text and extend the existing ability to drag and drop files to a broader set of guest and host operating systems.

  • On-Demand VMware Tools DownloadOn-demand download capability provides the latest VMware Tools for the guest operating system. This feature reduces the overall download size of VMware products by downloading only the required set of VMware Tools and and enables VMware to release new versions frequently.

  • Virtual Printing — Print from virtual machines without mapping network printers or installing printer drivers in the virtual machine. With virtual printing enabled in the virtual machine setting, all of the printers installed on the host operating system are available in the guest operating system. This functionality is enabled through a partnership with ThinPrint, Inc.

  • VIX API for VMware Player — Software vendors can use the VIX functionality to add their own interface to the VMware Player menu bar.


http://www.vmware.com/support/player30/doc/releasenotes_player3.html Print Friendly and PDF
Share/Bookmark

(Freeware) DropMyRights

This freeware privacy program greatly increases the security of Windows XP. Everyone running XP should use it. Drop My Rights makes Windows more secure by running selected programs in a restricted environment (i.e. with lower rights) even when logged on to Windows XP as an Administrator. To find out more, click here.


 


http://www.download.com/DropMyRights/3000-2144_4-10722877.html

Print Friendly and PDF
Share/Bookmark

rogram is able to detect object or SID that can be queried by the Global Catalog or the local SAM within the process machine. (From: http://www.petri.co.il/obj_sid.htm)

BJ::SID and vice versa is a program written in C++ and used to translate SID/OBJ conversions. The program is able to detect object or SID that can be queried by the Global Catalog or the local SAM within the process machine. Querying OBJ/SID is within the scope of the user privileges.

Requirements: This tool requires Windows 2000/XP/2003.

http://www.petri.co.il/obj_sid.htm

Print Friendly and PDF
Share/Bookmark

check the map drive present remotely

Check map driver present PC:


Dim objNetwork : Set objNetwork = CreateObject("WScript.Network")


Dim objFSO : Set objFSO = CreateObject("Scripting.FileSystemObject")


 


If objFSO.DriveExists("X:") Then


Set WSHShell = CreateObject("Wscript.Shell")


WSHShell.Run ("E:\Testing_file\test2\map_drive_check.bat")


 


End If


 


The bat to record the hostname


hostname >> E:\Testing_file\test2\a.txt

Print Friendly and PDF
Share/Bookmark

List Installed Programs remotely (From: http://www.billsway.com/vbspage/)

'InstalledPrograms.vbs - Lists installed software shown in Registry Uninstall key


'?Bill James - wgjames@mvps.org - 19/Sep/2003 19:51


 


'This script should run on Windows 2000 and Windows XP as is, and on


'Windows 9X and NT where WMI and current scripting engine are installed.


 


'Capability to probe a remote computer only available on NT to NT type


'Operating Systems, and only if the local computer is logged in with the


'same ID and PW as the remoted computer.


 


'Output is to tab delimited text file which can be imported to newer


'versions of Excel and converted to a spreadsheet.


 


'GetAddRemove Function based on script posted by Torgeir Bakken


'Date: Wed, 17 Sep 2003 21:06:44 +0200


'From: "Torgeir Bakken (MVP)"


'Subject: Re: Track installed software, patches and plugins using WMI


'Newsgroups: microsoft.public.win32.programmer.wmi


 


Option Explicit


 


Dim sTitle


sTitle = "InstalledPrograms.vbs by Bill James"


Dim StrComputer


strComputer = InputBox("Enter I.P. or name of computer to check for " & _


                       "installed software (leave blank to check " & _


                       "local system)." & vbcrlf & vbcrlf & "Remote " & _


                       "checking only from NT type OS to NT type OS " & _


                       "with same Admin level UID & PW", sTitle)


If IsEmpty(strComputer) Then WScript.Quit


strComputer = Trim(strComputer)


If strComputer = "" Then strComputer = "."


 


'Wscript.Echo GetAddRemove(strComputer)


 


Dim sCompName : sCompName = GetProbedID(StrComputer)


 


Dim sFileName


sFileName = sCompName & "_" & GetDTFileName() & "_Software.txt"


 


Dim s : s = GetAddRemove(strComputer)


 


If WriteFile(s, sFileName) Then


  'optional prompt for display


  If MsgBox("Finished processing.  Results saved to " & sFileName & _


            vbcrlf & vbcrlf & "Do you want to view the results now?", _


            4 + 32, sTitle) = 6 Then


    WScript.CreateObject("WScript.Shell").Run sFileName, 9


  End If


End If


 


Function GetAddRemove(sComp)


  'Function credit to Torgeir Bakken


  Dim cnt, oReg, sBaseKey, iRC, aSubKeys


  Const HKLM = &H80000002 'HKEY_LOCAL_MACHINE


  Set oReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _


              sComp & "/root/default:StdRegProv")


  sBaseKey = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\"


  iRC = oReg.EnumKey(HKLM, sBaseKey, aSubKeys)


 


  Dim sKey, sValue, sTmp, sVersion, sDateValue, sYr, sMth, sDay


 


  For Each sKey In aSubKeys


    iRC = oReg.GetStringValue(HKLM, sBaseKey & sKey, "DisplayName", sValue)


    If iRC <> 0 Then


      oReg.GetStringValue HKLM, sBaseKey & sKey, "QuietDisplayName", sValue


    End If


    If sValue <> "" Then


      iRC = oReg.GetStringValue(HKLM, sBaseKey & sKey, _


                                "DisplayVersion", sVersion)


      If sVersion <> "" Then


        sValue = sValue & vbTab & "Ver: " & sVersion


      Else


        sValue = sValue & vbTab


      End If


      iRC = oReg.GetStringValue(HKLM, sBaseKey & sKey, _


                                "InstallDate", sDateValue)


      If sDateValue <> "" Then


        sYr =  Left(sDateValue, 4)


        sMth = Mid(sDateValue, 5, 2)


        sDay = Right(sDateValue, 2)


        'some Registry entries have improper date format


        On Error Resume Next


        sDateValue = DateSerial(sYr, sMth, sDay)


        On Error GoTo 0


        If sdateValue <> "" Then


          sValue = sValue & vbTab & "Installed: " & sDateValue


        End If


      End If


      sTmp = sTmp & sValue & vbcrlf


    cnt = cnt + 1


    End If


  Next


  sTmp = BubbleSort(sTmp)


  GetAddRemove = "INSTALLED SOFTWARE (" & cnt & ") - " & sCompName & _


                 " - " & Now() & vbcrlf & vbcrlf & sTmp


End Function


 


Function BubbleSort(sTmp)


  'cheapo bubble sort


  Dim aTmp, i, j, temp


  aTmp = Split(sTmp, vbcrlf) 


  For i = UBound(aTmp) - 1 To 0 Step -1


    For j = 0 to i - 1


      If LCase(aTmp(j)) > LCase(aTmp(j+1)) Then


        temp = aTmp(j + 1)


        aTmp(j + 1) = aTmp(j)


        aTmp(j) = temp


      End if


    Next


  Next


  BubbleSort = Join(aTmp, vbcrlf)


End Function


 


Function GetProbedID(sComp)


  Dim objWMIService, colItems, objItem


  Set objWMIService = GetObject("winmgmts:\\" & sComp & "\root\cimv2")


  Set colItems = objWMIService.ExecQuery("Select SystemName from " & _


                                         "Win32_NetworkAdapter",,48)


  For Each objItem in colItems


    GetProbedID = objItem.SystemName


  Next


End Function


 


Function GetDTFileName()


  dim sNow, sMth, sDay, sYr, sHr, sMin, sSec


  sNow = Now


  sMth = Right("0" & Month(sNow), 2)


  sDay = Right("0" & Day(sNow), 2)


  sYr = Right("00" & Year(sNow), 4)


  sHr = Right("0" & Hour(sNow), 2)


  sMin = Right("0" & Minute(sNow), 2)


  sSec = Right("0" & Second(sNow), 2)


  GetDTFileName = sMth & sDay & sYr & "_" & sHr & sMin & sSec


End Function


 


Function WriteFile(sData, sFileName)


  Dim fso, OutFile, bWrite


  bWrite = True


  Set fso = CreateObject("Scripting.FileSystemObject")


  On Error Resume Next


  Set OutFile = fso.OpenTextFile(sFileName, 2, True)


  'Possibly need a prompt to close the file and one recursion attempt.


  If Err = 70 Then


    Wscript.Echo "Could not write to file " & sFileName & ", results " & _


                 "not saved." & vbcrlf & vbcrlf & "This is probably " & _


                 "because the file is already open."


    bWrite = False


  ElseIf Err Then


    WScript.Echo err & vbcrlf & err.description


    bWrite = False


  End If


  On Error GoTo 0


  If bWrite Then


    OutFile.WriteLine(sData)


    OutFile.Close


  End If


  Set fso = Nothing


  Set OutFile = Nothing


  WriteFile = bWrite


End Function


http://www.billsway.com/vbspage/

Print Friendly and PDF
Share/Bookmark

GPO + bat file to edit host files

It is create your host file and deploy it with a startup script which doesn't require that the user has admin rights since it runs on machine account.
Put your host file on a share and create a batch file with this line:

type \\server\sharename\hosts >>%systemroot%\system32\drivers\etc\hosts

Then go in your group policies:
Computer configuration / Windows settings / Scripts / Startup
and use your script. At next startup everyone will have new hosts file.

(Reference: http://www.experts-exchange.com/Software/Server_Software/Email_Servers/Exchange/Q_23790188.html)

Print Friendly and PDF
Share/Bookmark

Monday, November 16, 2009

how to boot vhd created by disk2vhd (From: http://forum.sysinternals.com/forum_posts.asp?TID=20716&PN=2)





1. Start VM with the XP cdrom in the player.

2. boot from cd-rom and press R this will load the recovery console

3. login with local administrator password of the VM

4. goto system32 directory, cd system32

5. type:  expand d:\i386\halacpi.dl_  and press enter

6. type:  copy halacpi.dll hal.dll  and press enter, type Y to overwrite

7. reboot the VM

8. boot in normal mode and update all drivers, this is a automated proces, but check it

9. reboot again in normal mode

10. install VM additions

 

and see, you got your old VM back in business, but now virtual !!


 

 

Print Friendly and PDF
Share/Bookmark

How to create a pop up message after login using VBS and html (From: http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_22936624.html)

OK, now I see what you're trying to do, and this makes it easier to work with.

What I would suggest though, is that you create your HTM file as below, and then only modify that when you want things to change.....

There is one possible catch with this though....because you're using VBScript code inside the HTM file to close the window, if the source of the file location isn't a Trusted Site in IE, then it will pop-up a security warning.  So, I suggest hosting the HTM file on a web server, then placing that server name as a Trusted Site in IE (can be done via Group Policy), and then use VBS to navigate to that page.

So, here's the HTM that I modified:

<HTML><TITLE>
Login Message
</TITLE>
<BODY bgcolor="silver">
<INPUT TYPE='button' onclick='return window.close()' value='Close'/>
<BR>
<BR>
<BR>
<BR>

<CENTER><SPAN STYLE="color: green; font-size: 20pt">Hello World</SPAN></CENTER>

<CENTER><SPAN STYLE="color: green; font-size: 15pt">To find out more click below</SPAN></CENTER>

<CENTER><A HREF="http://intranet.com" target="_blank">Click Here</A></CENTER>
</BODY>
</HTML>


and here's the VBS to load that page:

'===================
strFile = Replace(WScript.ScriptFullName, WScript.ScriptName, "") & "Message.htm"

Set objExplorer = CreateObject("InternetExplorer.Application")
objExplorer.Visible = 1
objExplorer.Navigate strFile
objExplorer.ToolBar = 0
objExplorer.StatusBar = 0
objExplorer.Width=700
objExplorer.Height = 260
objExplorer.Left = 200
objExplorer.Top = 200

Do While objExplorer.ReadyState <> 4
    Wscript.Sleep 200
Loop

' Now activate the window to bring it to the foreground
strWindowTitle = objExplorer.Document.Title & " - Microsoft Internet Explorer"
Set objShell = CreateObject("WScript.Shell")
objShell.AppActivate strWindowTitle
'===================

http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_22936624.html Print Friendly and PDF
Share/Bookmark

Command prompts for Windows (From: http://en.kioskea.net/faq/sujet-403-command-prompts-for-windows)

Some of these command below can cause harmful an undesirable functions, leading to the formatting of your hard disk and data loss, while others will not run under Windows XP. As for Windows Vista the Run Tab is not visible in the start up menu. Windows Vista specific command prompts are not included.


 Here is a list of commands you can use under Microsoft Windows prearranged depending of their functionality :


 





  1. Control Panel


  2. Windows utility and applications


  3. Disk management


  4. Connection management


  5. Miscellaneous commands


Control Panel


CONTROL: opens the control panel window


CONTROL ADMINTOOLS: opens the administrative tools


CONTROL KEYBOARD: opens keyboard properties


CONTROL COLOUR: opens display properties.Appearance tab


CONTROL FOLDERS: opens folder options


CONTROL FONTS: opens font policy management


CONTROL INTERNATIONAL or INTL.CPL: opens Regional and Language option


CONTROL MOUSE or MAIN.CPL: opens mouse properties


CONTROL USERPASSWORDS: opens User Accounts editor


CONTROL USERPASSWORDS2 or NETPLWIZ: User account access restrictions


CONTROL PRINTERS: opens faxes and printers available


APPWIZ.CPL: opens Add or Remove programs utility tool


OPTIONALFEATURES: opens Add or Remove Windows component utility


DESK.CPL: opens display properties. Themes tab


HDWWIZ.CPL: opens add hardware wizard


IRPROPS.CPL: infrared utility tool


JOY.CP: opens game controllers settings


MMSYS.CPL: opens Sound and Audio device Properties. Volume tab


SYSDM.CPL: opens System properties


TELEPHON.CPL: Opens phone and Modem options


TIMEDATE.CPL: Date and Time properties


WSCUI.CPL: opens Windows Security Center


ACCESS.CPL: opens Accessibility Options


WUAUCPL.CPL: opens Automatic Updates


POWERCFG.CPL: opens Power Options Properties


AZMAN.MSC: opens authorisation management utility tool


CERTMGR.MSC: opens certificate management tool


COMPMGMT.MSC: opens the Computer management tool


COMEXP.MSC or DCOMCNFG: opens the Computer Services management tool


DEVMGMT.MSC: opens Device Manager


EVENTVWR or EVENTVWR.MSC: opens Event Viewer


FSMGMT.MSC: opens Shared Folders


NAPCLCFG.MSC: NAP Client configuration utility tool


SERVICES.MSC: opens Service manager


TASKSCHD.MSC or CONTROL SCHEDTASKS: opens Schedule Tasks manager


GPEDIT.MSC: opens Group Policy utility tool


LUSRMGR.MSC: opens Local Users and Groups


SECPOL.MSC: opens local security settings


CIADV.MSC: opens indexing service


NTMSMGR.MSC: removable storage manager


NTMSOPRQ.MSC: removable storage operator requests


WMIMGMT.MSC: opens (WMI) Window Management Instrumentation


PERFMON or PERFMON.MSC: opens the Performance monitor


MMC: opens empty Console


MDSCHED: opens memory diagnostics tools


DXDIAG: opens DirectX diagnostics tools


ODBCAD32: opens ODBC Data source Administrator


REGEDIT or REGEDT32: opens Registry Editor


DRWTSN32: opens Dr. Watson


VERIFIER: opens Driver Verifier Manager


CLICONFG: opens SQL Server Client Network Utility


UTILMAN: opens Utility Manager


COLORCPL: opens color management


CREDWIZ: back up and recovery tool for user passwords


MOBSYNC: opens Synchronization center


MSCONFIG: opens System Configuration Utility


SYSEDIT: opens System Configuration Editor (careful while using this command)


SYSKEY: Windows Account Database Security management (careful while using this command)


 


Windows utility and applications


EPLORER: Opens windows Explorer


IEXPLORER: Opens Internet explorer


WAB: opens Contacts


CHARMAP: opens Character Map


WRITE: opens WordPad


NOTEPAD: opens Notepad


CALC: opens Calculator


CLIPBRD: opens Clipbook Viewer


WINCHAT: opens Microsoft Chat Interface


SOUNDRECORDER: opens sound recording tool


DVDPLAY: run CD or DVD


WMPLAYER: opens Windows Media Player


MOVIEMK: Opens untitled Windows Movie Maker


OSK: opens on-screen Keyboard


MAGNIFY: opens Magnifier


WINCAL: opens Calendar


DIALER: opens phone Dialer


EUDCEDIT: opens Private Character Editor


NDVOL: opens the mixer volume


RSTRUI : opens Tool System Restore (For Vista only)


%WINDIR%\SYSTEM32\RESTORE\rstrui.exe: opens Tool System Restore (for XP only).


MSINFO32: Opens the System Information


MRT : launches the utility removal of malware.


Taskmgr : Opens the Windows Task Manager


CMD: opens a command prompt


MIGWIZ: Opens the tool for transferring files and settings from Windows (Vista only)


Migwiz.exe: Opens the tool for transferring files and settings from Windows (for XP only)


SIDEBAR: Open the Windows (Vista only)


Sigverif : Opens the tool for verification of signatures of files


Winver : Opens the window for your Windows version


FSQUIRT: Bluetooth Transfer Wizard


IExpress opens the wizard for creating self-extracting archives. Tutorial HERE


MBLCTR: opens the mobility center (Windows Vista only)


MSRA : Opens the Windows Remote Assistance


Mstsc : opens the tool connection Remote Desktop


MSDT: opens the diagnostic tools and support Microsoft


WERCON: opens the reporting tool and solutions to problems (for Vista only)


WINDOWSANYTIMEUPGRADE: Enables the upgrade of Windows Vista


WINWORD : opens Word (if installed)


PRINTBRMUI : Opens migration wizard printer (Vista only)


 


Disk management


DISKMGMT.MSC: opens disk management utility


CLEANMGR: opens disk drive clean up utility


DFRG.MSC: opens disk defragmenter


CHKDSK: complete analysis of disk partition


DISKPART: disk partitioning tool


 


Connection management


IPCONFIG: list the configuration of IP addresses on your PC (for more information type IPCONFIG/? in the CMD menu)


INETCPL.CPL: opens internet properties


FIREWALL.CPL: opens windows firewall


NETSETUP.CPL: opens network setup wizard


 


Miscellaneous commands


JAVAWS: View the cover of JAVA software (if installed)


AC3FILTER.CPL: Opens the properties AC3 Filter (if installed)


FIREFOX: Mozilla launches Firefox (if installed)


NETPROJ: allow or not connecting to a network projector (For Vista only)


LOGOFF: closes the current session


SHUTDOWN: shut down Windows


SHUTDOWN-A: to interrupt Windows shutdown


%WINDIR% or %SYSTEMROOT%: opens the Windows installation


%PROGRAMFILES%: Opens the folder where you installed other programs (Program Files)


%USERPROFILE%: opens the profile of the user currently logged


%HOMEDRIVE%: opens the browser on the partition or the operating system is installed


%HOMEPATH%: opens the currently logged user C: \ Documents and Settings \ [username]


%TEMP%: opens the temporary folder


VSP1CLN: deletes the cache for installation of the service pack 1 for Vista


System File Checker (Requires Windows CD if the cache is not available):


SFC / scannow: immediately scans all system files and repairs damaged files


SFC / VERIFYONLY: scans only those files system


SFC / Scanfil = "name and file path": scans the specified file, and repaired if damaged


SFC / VERIFYFILE = "name and file path": Scans only the file specified


SFC / scanonce: scans the system files on the next restart


SFC / REVERT: return the initial configuration (For more information, type SFC /? In the command prompt CMD.


 


http://en.kioskea.net/faq/sujet-403-command-prompts-for-windows

Print Friendly and PDF
Share/Bookmark

(Domain PC) How to solve the local admin account locked

If your have a domain PC, the local administrator account is lockout and your domain admin account is remove from the PC local administrators group, what can you do?

This a solution may be useful to solve this problem:

Use the GPO to add a start up script to add a domain user account to this PC.

Use the GPO -> Computer policy -> add the bat and vbs to startup script and add the GPO to the Computer OU

The bat file is used to run the following script:

Script to add domain user account to local Administrators group (From Rod Trent - rtrent [at] swynk [dot] com)
Dim DomainName

Dim UserAccount

Set net = WScript.CreateObject("WScript.Network")

local = net.ComputerName

DomainName = "DomainName"

UserAccount = "userAccount"

 

set group = GetObject("WinNT://"& local &"/Administrators")

 

on error resume next

group.Add "WinNT://"& DomainName &"/"& UserAccount &""

CheckError

 

sub CheckError

        if not err.number=0 then

        set ole = CreateObject("ole.err")

        MsgBox ole.oleError(err.Number), vbCritical

        err.clear

else

        MsgBox "Done."

end if

end sub

http://www.enterpriseitplanet.com/resources/scripts_win/article.php/3083571
Print Friendly and PDF
Share/Bookmark

How to use logon script to call a vbs

For the logon script,



The bat command



cscript //nologo %0\..\add_admin.vbs

Print Friendly and PDF
Share/Bookmark

Wednesday, November 11, 2009

(File Server Migration) Using robocopy for file copy and synchronize

Robocopy.exe C:\folder1 D:\folder2 /e /copyall /w:1 /r:1


 


The “/e” specifies to copy everything, including subfolders.  The “/copyall” switch specifies to copy security and file attributes.  The “/w:1” switch specifies to wait 1 second before retrying a file if access denied.  The “/r:1” switch specifies to retry a failed file 1 time before moving on. 

Print Friendly and PDF
Share/Bookmark

(轉貼) Terminal Services Command Line Administration

Terminal Services Command Line Administration


Managing your Windows 2003 Terminal Server can be done faster and easier with a few simple command line tools. There are a lot of them so hang on!


Change User - When installing applications on a terminal server you must be in Install Mode. To toggle the system between Install and Execute Modes, you can use the Change User commands.


To switch to Install Mode: CHANGE USER /install


To switch to Execute Mode: CHANGE USER /execute


Change Logon - To quickly disable or enable the ability to logon to the terminal server you can use the Change Logon command. This will not affect currently logged on users.


To enable new logons: CHANGE LOGON /enable


To disable new logons: CHANGE LOGON /disable


Query TermServer - Lists all terminal servers in the current domain.


QUERY TERMSERVER [/domain:domain] [/address][/continue]




  • /domain:domain - specifies the domain (current logged on domain is default)

  • /address - lists the IP address of the terminal server

  • /continue - removes the pause between ouput screens


Query Session - Lists all current sessions running on a terminal server.


QUERY SESSION [sessionname | username | sessionid][/server:servername] [/mode] [/flow] [/connect] [/counter]




  • sessionname is the name of the session that you want to query

  • username is the name of the user you want to query

  • sessionid is the ID of the session you want to query

  • /server:servername is the name of the server you are querying

  • /mode outputs the current line settings

  • /flow outputs the current flow control settings /connect outputs the current connection settings

  • /counter outputs the counter information for the server


Query User or Quser - Lists all current users on a terminal server


QUERY USER [username | sessionname | sessionid] [/server:servername]




  • sessionname is the name of a specific session that you want to query

  • username is the name of the specific user you want to query

  • sessionid is the ID of the specific session you want to query

  • /server:servername is the name of the server you are querying


Query Process - Lists all processes running on the terminal server.


QUERY PROCESS [ x | processid | username | sessionname | /id:nn | programname] [/server:servername] [/system]




  • x lists information on all processes (note - replace x with an asterisk)

  • processid lists information about only the specific process ID

  • username lists processes running under the context of a specific user

  • sessionname lists processes running under the context of a specific session

  • /ID:nn lists processes running in the session with the specified session ID number

  • programname lists all processes started by the specified executable

  • /server:servername is the name of the server you are querying—the default is the server you are logged on to

  • /system lists processes running under the system context


TSShutdn - Will shutdown/reboot the terminal server after a specified delay.


TSSHUTDN [wait_time] [/server:servername] [/reboot] [/powerdown] [/delay:logoffdelay] [/v]




  • wait_time is the number of seconds to wait after notifying the users that the terminal server is about to shut down before forcibly logging them off (the default is 30 seconds)

  • /server:servername is the name of the server to reboot/shutdown (the default is the server to which you are connected)

  • /reboot reboots the server

  • /powerdown powers down the server after Windows has shutdown; the servers BIOS must support this command

  • /delay:logoffdelay the number of seconds to wait after logging out all users before shutting down the system (the default is 30 seconds)

  • /v displays verbose information about actions being performed


Logoff - Will logoff the specified user off the terminal server and close the session. Caution, if you don't specify a user it will log you off!


LOGOFF [sessionid | sessionname] [/server:servername] [/v]




  • sessionid is the ID of the session you want to logoff

  • sessionname is the name of the session you want to logoff

  • /server:servername specifies the name of server on which the session you want to logoff is running

  • /v displays verbose information about actions being performed


Reset Session - Will kill the specified users session without warning which can be useful when a users session is stuck. Caution, if you don't specify a user it will kill your session!


RESET SESSION [sessionname | sessionid] [/server:servername] [/v]




  • sessionid is the ID of the session you want to logoff

  • sessionname is the name of the session you want to logoff

  • /server:servername specifies the name of server on which the session you want to logoff is running

  • /v displays verbose information about actions being performed


MSG - Will popup a message on the specified user(s) terminal server session.


MSG [username | sessionname | sessionid | @filename | x ][/server:servername] [/time:seconds] [/v] [/w] message




  • username is the name of the user to whom you are sending the message

  • sessionname is the session name to which you want to send the message

  • sessionid is the ID number of the session to which you want to send the message

  • @filename is the name of a text file containing usernames, sessionnames, or session IDs to which you want to send the message

  • x sends the message to all users on the current or specified server (note - replace x with an asterisk)

  • /server:servername specifies the server where recipients of the message are connected

  • /time:seconds the number of seconds to display the message before the popup closes itself

  • /v displays information about the message as it is sent

  • /w causes the popup window to wait for the user to click OK before closing message is the text of the message to send


Shadow - Will allow you to shadow or take control of a users session.


SHADOW [sessionname | sessionid] [/server:servername] [/v]




  • sessionid is the ID of the session you want to logoff

  • sessionname is the name of the session you want to logoff

  • /server:servername specifies the name of server on which the session you want to logoff is running

  • /v displays verbose information about actions being performed


TSProf - Will update, copy or display the Terminal Server users profile path and/or data.


TSPROF /update [/domian:domainname | /local] /profile:path username TSPROF /copy [/domian:domainname | /local] [/profile:path] src_user dest_user TSPROF /q [/domian:domainname | /local] username




  • /update populates the user domainname\username’s Terminal Services profile path

  • /copy copies the Terminal Services profile from the source (src_user) to a different user (dest_user)

  • /q displays the Terminal Services Profile path for the specified user



原文網址:


http://thelazyadmin.com/blogs/thelazyadmin/archive/2005/06/24/Terminal-Services-Command-Line-Administration.aspx

Print Friendly and PDF
Share/Bookmark