Technical Blog

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg
Showing posts with label Scripting. Show all posts
Showing posts with label Scripting. Show all posts

Saturday, 23 April 2011

Click here Batch Script ABCs (Basics)

Posted on 14:00 by Unknown
Batch Script Basics
1) http://www.computerhope.com/batch.htm#01
2) http://www.csie.ntu.edu.tw/~r92092/ref/win32/win32scripting.html



Read More
Posted in Scripting | No comments

Converting DOS Batch Files to Shell Scripts

Posted on 12:57 by Unknown
Click the above link for Converting DOS Batch Files to Shell Scripts
http://tldp.org/LDP/abs/html/dosbatch.html
Read More
Posted in Scripting | No comments

SQLCMD Syntax

Posted on 11:58 by Unknown
sqlcmd
[-U login id] [-P password] [-S server] [-H hostname]
[-E trusted connection] [-d use database name] [-l login timeout]
[-N encrypt connection] [-C trust the server certificate]
[-t query timeout] [-h headers] [-s colseparator] [-w screen width]
[-a packetsize] [-e echo input] [-I Enable Quoted Identifiers]
[-c cmdend] [-L[c] list servers[clean output]] [-q "cmdline query"]
[-Q "cmdline query" and exit] [-m errorlevel] [-V severitylevel]
[-W remove trailing spaces] [-u unicode output]
[-r[0|1] msgs to stderr] [-i inputfile] [-o outputfile]
[-f | i:[,o:]]
[-k[1|2] remove[replace] control characters]
[-y variable length type display width]
[-Y fixed length type display width]
[-p[1] print statistics[colon format]]
[-R use client regional setting] [-b On error batch abort]
[-v var = "value"...]
[-X[1] disable commands[and exit with warning]]
[-? show syntax summary]
 
Click here for SQLCMD Utility 
Read More
Posted in Scripting | No comments

Click here for DOS commands with XP

Posted on 10:03 by Unknown
Click above link for DOS commands with XP
Read More
Posted in Scripting | No comments

Create a Folder Using Batch Script

Posted on 09:43 by Unknown
ECHO Starts Creating Folder
Set FDate=%Date:~-10,10%
Set Fdate=%FDate:/=-%
MD C:\test\%FDate%
Move C:\test\DATA\*.* C:\test\%FDate%

Copy above code in Notepad and save as ".BAT" Extension.


Read More
Posted in Scripting | No comments

Thursday, 24 March 2011

How to Import and Export bulk users/objects from Active Directory using CSVDE

Posted on 17:38 by Unknown
Export users from a specified OU (organizational Unit)

Go to command prompt type the below command to export members from specified OU..

c:\csvde -f c:\ramadminss.csv -d ou="ouname",dc=dcname,dc=com -r (objectclass=user) -l "objectclass,sAMAccountName,sn,givenname,displayname,description,userprincipalname"

Bulk Export : c:\csvde -f report.csv

Bulk Import : c:\csvde -i -f report.csv

Follow this link for more information:
http://option9.blogspot.com/2009/05/importing-users-into-active-directory.html
http://www.computerperformance.co.uk/Logon/Logon_CSVDE_Bulk.htm
Read More
Posted in Scripting | No comments

Thursday, 22 April 2010

Export Distribution List Members (from Active Directory to Text)

Posted on 17:05 by Unknown
Here is the Script to Export the members from DL

On Error Resume Next

WScript.Echo Now()
Set objGroup = GetObject _
("ldap://CN=testgroup,OU=groupname,DC=domain,dc=com")
objGroup.GetInfo
arrMemberOf = objGroup.GetEx("member")
WScript.Echo "Members:"
For Each strMember in arrMemberOf
WScript.echo strMember
Next

Copy the above code and save it in Notepad. Save this file as "DLmembers.vbs"

Execute from Command mode

c:\>cscript dlmembers.vbs >c:\output.txt
Read More
Posted in Scripting | No comments

Wednesday, 21 April 2010

Batch File to Map network drive.

Posted on 20:02 by Unknown
First, open up Notepad or your favorite text editor.


Next, copy the commands as shown below and paste them into the file. Don't forget to modify the net use command with the drive letter you want to use, the name of the Computer and share you want to map a drive to, and password and account name.

ECHO Starts Mapping Drive
net use W: file://computer1/Test
net use X: file://computer2/NewFolder
exit

Then save the file with any name and a .bat extension
When you need to map the drive(s), just double click on it.
Read More
Posted in Scripting | No comments
Older Posts Home
Subscribe to: Posts (Atom)

Popular Posts

  • Rename a Windows Server 2003 domain controller (DC)
    Follow the below link: http://windowsitpro.com/article/articleid/41055/how-can-i-rename-a-windows-server-2003-domain-controller-dc.html
  • NetBackup Interview Questions
    Click Here NetBackup Interview Questions
  • Create a Folder Using Batch Script
    ECHO Starts Creating Folder Set FDate=%Date:~-10,10% Set Fdate=%FDate:/=-% MD C:\test\%FDate% Move C:\test\DATA\*.* C:\test\%FDate% Copy abo...
  • How to Redirect Computer OU and User's OU
    Redirecting  "users"  Organizational unit to Specified Organizantional Unit Go to - C:\windows\system32>redirusr ou=newusers,DC...
  • Citrix Interview Questions Citrix XenApp
    What is Farm? Farm is a collection of citrix servers which provide published applications to all users. It also prevent singel of failure o...
  • Windows 7 Deployment using MDT ( Microsoft Deployment Tool kit 2010)
    How to Deploy Windows 7 using MDT Open Deployment work bench and create a deployment share  as Windows 7 and finish the wizard.  After creat...
  • Active Directory Saved Queries Templates ( very useful)
    In order to configure and use server query follow the below link ( Very useful link) http://www.kreslavsky.com/2008/08/active-directory-save...
  • How To Create PST In Outlook 2010
    http://www.addictivetips.com/windows-tips/how-to-create-data-file-in-outlook-2010/
  • Click here Batch Script ABCs (Basics)
    Batch Script Basics 1) http://www.computerhope.com/batch.htm#01 2) http://www.csie.ntu.edu.tw/~r92092/ref/win32/win32scripting.html
  • VMware ESX 3.5 Update to Build Number
    ESX 3.5.0 Update 1 = Build 64607 ESX 3.5.0 Update 2 = Build 110268 ESX 3.5.0 Update 3 = Build 123630 ESX 3.5.0 Update 4 = Build 153875 ESX 3...

Categories

  • Active Directory
  • Citrix
  • Downloads
  • Exchange Server
  • HPSA
  • IIS
  • SCCM
  • SCOM 2007
  • Scripting
  • SQL
  • Storage
  • VMWARE
  • Windows
  • Windows 7
  • Windows Server 2003
  • Windows Server 2008

Blog Archive

  • ▼  2011 (25)
    • ▼  November (5)
      • SQL Interview Questions
      • Windows 7 Deployment using MDT ( Microsoft Deploym...
      • Storage Interview Questions
      • Windows Server 2008 R2 Failover Cluster
      • IIS Interview Questions..
    • ►  July (1)
    • ►  June (1)
    • ►  May (3)
    • ►  April (12)
    • ►  March (3)
  • ►  2010 (12)
    • ►  June (1)
    • ►  May (3)
    • ►  April (8)
  • ►  2009 (24)
    • ►  November (1)
    • ►  July (1)
    • ►  June (16)
    • ►  May (2)
    • ►  March (4)
Powered by Blogger.

About Me

Unknown
View my complete profile