Encode vbscript to VNE file:
screnc.exe
convert vbscript to exe:
http://www.vbs2exe.com/overview.html
Decode all files encoded (original version) with screnc.exe
http://www.interclasse.com/scripts/decovbe.php
Showing posts with label Scripting. Show all posts
Showing posts with label Scripting. Show all posts
2010-06-10
2010-05-16
some VBscript resources
http://ezinearticles.com/?expert=Duane_Hennessy
Duane Hennessy - EzineArticles.com Expert Author
This guy is doing some good jobs of scripting.
Below are some handy tips.
VBScript - Printing Results to the Commandline for Flexibility
http://ezinearticles.com/?VBScript---Printing-Results-to-the-Commandline-for-Flexibility&id=536540
Use Flowcharts to Design Your Code
http://ezinearticles.com/?Use-Flowcharts-to-Design-Your-Code&id=216718
Duane Hennessy - EzineArticles.com Expert Author
This guy is doing some good jobs of scripting.
Below are some handy tips.
VBScript - Printing Results to the Commandline for Flexibility
http://ezinearticles.com/?VBScript---Printing-Results-to-the-Commandline-for-Flexibility&id=536540
Use Flowcharts to Design Your Code
http://ezinearticles.com/?Use-Flowcharts-to-Design-Your-Code&id=216718
2010-05-12
Javascript regular expressions
Regular expressions
Regular Expressions - User guide
http://www.zytrax.com/tech/web/regex.htm
JavaScript RegExp Example: Regular Expression Tester
http://www.regular-expressions.info/javascriptexample.html
How To: Use Regular Expressions to Constrain Input in ASP.NET
http://msdn.microsoft.com/en-us/library/ff650303.aspx
Form Validation with JavaScript Regular Expressions (Part 2)
http://www.devarticles.com/c/a/JavaScript/Form-Validation-with-JavaScript-Regular-Expressions-Part-2/
javascript正则表达式验证非法字符
http://www.cnblogs.com/zbnet/archive/2006/12/27/605108.html
在ASP中用“正则表达式对象”来校验数据的合法性
http://www.xmsc.com.cn/InfoView/Article_2839.html
正则表达式收集
http://ccap168.cn/news/20094306041.htm
asp 实现检测字符串是否为纯字母和数字组合的函数
http://kingoa.net/WEBPROGRAM/ASP/2010/0404/14715.html
正则表达式regular expression详述(一)
http://www.xmsc.com.cn/InfoView/Article_2838.html
线对你编写的正则表达式regex进行测试的网络工具,无须下载和安装,能够有效的返回匹配的结果
http://www.zhongguosou.com/computer_question_tools/test_regex.aspx
Regular Expressions - User guide
http://www.zytrax.com/tech/web/regex.htm
JavaScript RegExp Example: Regular Expression Tester
http://www.regular-expressions.info/javascriptexample.html
How To: Use Regular Expressions to Constrain Input in ASP.NET
http://msdn.microsoft.com/en-us/library/ff650303.aspx
Form Validation with JavaScript Regular Expressions (Part 2)
http://www.devarticles.com/c/a/JavaScript/Form-Validation-with-JavaScript-Regular-Expressions-Part-2/
javascript正则表达式验证非法字符
http://www.cnblogs.com/zbnet/archive/2006/12/27/605108.html
在ASP中用“正则表达式对象”来校验数据的合法性
http://www.xmsc.com.cn/InfoView/Article_2839.html
正则表达式收集
http://ccap168.cn/news/20094306041.htm
asp 实现检测字符串是否为纯字母和数字组合的函数
http://kingoa.net/WEBPROGRAM/ASP/2010/0404/14715.html
正则表达式regular expression详述(一)
http://www.xmsc.com.cn/InfoView/Article_2838.html
线对你编写的正则表达式regex进行测试的网络工具,无须下载和安装,能够有效的返回匹配的结果
http://www.zhongguosou.com/computer_question_tools/test_regex.aspx
2010-02-24
process command line arguments in WSH script
Working with Command-Line Arguments
Microsoft® Windows® 2000 Scripting Guide
http://technet.microsoft.com/en-us/library/ee156618.aspx
How to pass arguments with VBScript
This sample script shows how to process command line arguments using Windows Scripting Host. The example below would be used such that you would save this code off into args.vbs file. Open a command line .
Type in args.vbs argument1 argument2 etc... just put spaces between your arguments.
Set ArgObj = WScript.Arguments
sArgCount = ArgObj.Count
For x = 0 to sArgCount - 1
msgbox ArgObj(x)
Next
set ArgObj = Nothing
Test script that shows how many arguments you've typed
Option Explicit
Dim vArg, aArgs(), iCount, args
If WScript.Arguments.Count = 0 Then
WScript.Echo "No Arguments Supplied"
WScript.Quit
Else
args = WScript.Arguments.Count
WScript.Echo "You entered " & args & " Arguments:"
ReDim aArgs(wscript.Arguments.Count - 1)
For iCount = 0 To WScript.Arguments.Count - 1
aArgs(iCount) = WScript.Arguments(iCount)
WScript.Echo aArgs(iCount)
Next
End If
Save above codes to args.vbs and run it like below:
csript args.vbs arg1 agr2 agr3
Advance arguments passing skills
http://ezinearticles.com/?VBScript---Pass-DOS-Like-Arguments-to-Your-Script-for-Flexibility-and-Control&id=542008
This article shows you how to make DOS like switches with your VBScript
dir /ad /b
doublespace /mount c:
Further reading:
http://ist.marshall.edu/ist334/wsh_arguments.html
http://www.keyongtech.com/5463227-regular-expression-to-detect-repeating
Microsoft® Windows® 2000 Scripting Guide
http://technet.microsoft.com/en-us/library/ee156618.aspx
How to pass arguments with VBScript
This sample script shows how to process command line arguments using Windows Scripting Host. The example below would be used such that you would save this code off into args.vbs file. Open a command line .
Type in args.vbs argument1 argument2 etc... just put spaces between your arguments.
Set ArgObj = WScript.Arguments
sArgCount = ArgObj.Count
For x = 0 to sArgCount - 1
msgbox ArgObj(x)
Next
set ArgObj = Nothing
Test script that shows how many arguments you've typed
Option Explicit
Dim vArg, aArgs(), iCount, args
If WScript.Arguments.Count = 0 Then
WScript.Echo "No Arguments Supplied"
WScript.Quit
Else
args = WScript.Arguments.Count
WScript.Echo "You entered " & args & " Arguments:"
ReDim aArgs(wscript.Arguments.Count - 1)
For iCount = 0 To WScript.Arguments.Count - 1
aArgs(iCount) = WScript.Arguments(iCount)
WScript.Echo aArgs(iCount)
Next
End If
Save above codes to args.vbs and run it like below:
csript args.vbs arg1 agr2 agr3
Advance arguments passing skills
http://ezinearticles.com/?VBScript---Pass-DOS-Like-Arguments-to-Your-Script-for-Flexibility-and-Control&id=542008
This article shows you how to make DOS like switches with your VBScript
dir /ad /b
doublespace /mount c:
Further reading:
http://ist.marshall.edu/ist334/wsh_arguments.html
http://www.keyongtech.com/5463227-regular-expression-to-detect-repeating
2009-06-17
TechNet Virtual Labs: Windows System Administration Scripting
TechNet Virtual Labs: Windows System Administration Scripting http://technet.microsoft.com/en-au/virtuallabs/bb512930.aspx
Step into the Windows Scripting Virtual Labs for Free
It's simple: no complex setup or installation is required to try out Windows System Administration Scripting running in the full-featured TechNet Virtual Lab. You get a downloadable manual and a 90-minute block of time for each module. You can sign up for additional 90-minute blocks any time.
Virtual labs
TechNet Virtual Lab: Using Microsoft Windows PowerShell for Administration and Customization of Microsoft Windows SharePoint Services 3.0
TechNet Virtual Lab: Writing Scripts with Windows Powershell
TechNet Virtual Lab: Using PowerShell in Windows Server 2008 Beta 3
TechNet Virtual Lab: Introduction to Windows PowerShell
TechNet Virtual Lab: System Administration Scripting
TechNet Virtual Lab: Active Directory Scripting
Step into the Windows Scripting Virtual Labs for Free
It's simple: no complex setup or installation is required to try out Windows System Administration Scripting running in the full-featured TechNet Virtual Lab. You get a downloadable manual and a 90-minute block of time for each module. You can sign up for additional 90-minute blocks any time.
Virtual labs
TechNet Virtual Lab: Using Microsoft Windows PowerShell for Administration and Customization of Microsoft Windows SharePoint Services 3.0
TechNet Virtual Lab: Writing Scripts with Windows Powershell
TechNet Virtual Lab: Using PowerShell in Windows Server 2008 Beta 3
TechNet Virtual Lab: Introduction to Windows PowerShell
TechNet Virtual Lab: System Administration Scripting
TechNet Virtual Lab: Active Directory Scripting
VBScript tools for windows
http://www.computerperformance.co.uk/ezine/tools.htm
Contents of Guy's VBScript Tool Kit
ADSI - Check LDAP properties
Cacls - Set permissions
Connections web site
CDVDE - Bulk import / export accounts
CMDHere
LDIFDE - Bulk import / export accounts
Link Checker
NetSh - Network Shell
OH (Open Handles)
RoboCopy
Scriptomatic
StringConverter.exe - LDIFDE Password generator
TaskKill
Tasklist
WBEMTEST
Windiff - Compares two files
WinExit.scr
WSH client for Windows 9x and NT 4.0
http://www.computerperformance.co.uk/ezine/tools.htm
Contents of Guy's VBScript Tool Kit
ADSI - Check LDAP properties
Cacls - Set permissions
Connections web site
CDVDE - Bulk import / export accounts
CMDHere
LDIFDE - Bulk import / export accounts
Link Checker
NetSh - Network Shell
OH (Open Handles)
RoboCopy
Scriptomatic
StringConverter.exe - LDIFDE Password generator
TaskKill
Tasklist
WBEMTEST
Windiff - Compares two files
WinExit.scr
WSH client for Windows 9x and NT 4.0
VBScript tools for windows
http://www.computerperformance.co.uk/ezine/tools.htm
Contents of Guy's VBScript Tool Kit
ADSI - Check LDAP properties
Cacls - Set permissions
Connections web site
CDVDE - Bulk import / export accounts
CMDHere
LDIFDE - Bulk import / export accounts
Link Checker
NetSh - Network Shell
OH (Open Handles)
RoboCopy
Scriptomatic
StringConverter.exe - LDIFDE Password generator
TaskKill
Tasklist
WBEMTEST
Windiff - Compares two files
WinExit.scr
WSH client for Windows 9x and NT 4.0
http://www.computerperformance.co.uk/ezine/tools.htm
Contents of Guy's VBScript Tool Kit
ADSI - Check LDAP properties
Cacls - Set permissions
Connections web site
CDVDE - Bulk import / export accounts
CMDHere
LDIFDE - Bulk import / export accounts
Link Checker
NetSh - Network Shell
OH (Open Handles)
RoboCopy
Scriptomatic
StringConverter.exe - LDIFDE Password generator
TaskKill
Tasklist
WBEMTEST
Windiff - Compares two files
WinExit.scr
WSH client for Windows 9x and NT 4.0
ADSI Scriptomatic
ADSI Scriptomatic
What is the ADSI Scriptomatic?
The ADSI Scriptomatic -- as we keep trying to tell you -- is designed to help you write ADSI scripts; that is, scripts that can be used to manage Active Directory. As if that isn’t enough (and we learned the hard way that things are never enough), the ADSI Scriptomatic also teaches you an important point about ADSI scripting: like WMI, there are consistent patterns to ADSI scripts. For example, the ADSI Scriptomatic will help you write a script to delete a user account. It will also help you write scripts for deleting groups and organizational units. And if you take a close look at the scripts for deleting different objects, you’ll see something very interesting: theyre practical identical! What is this, some kind of a rip-off?
Well, it might be. But the reason the scripts look so similar is because ADSI uses a consistent approach for deleting objects, regardless of the type of object being deleted. What does that mean? Well, if you take the time to study the scripts created by the ADSI Scriptomatic (and if you read the ADSI chapter from the Windows 2000 Scripting Guide), you’ll understand how you can delete pretty much anything from Active Directory. For example, we wanted to keep the ADSI Scriptomatic relatively simple; as a result, weve limited the objects you can work with. The ADSI Scriptomatic will write a script that deletes a user account, but it won’t write a script that deletes a published printer. But, hey, so what? After you understand the pattern, you can write your own script for deleting published printers. (OK, OK, well consider creating the DeletePublishedPrintersOmatic. But don’t hold your breath.)
Find for details from here:
http://technet.microsoft.com/en-us/scriptcenter/dd939958.aspx
Download ADSI Scriptomatic
http://www.microsoft.com/downloads/details.aspx?FamilyID=39044e17-2490-487d-9a92-ce5dcd311228&DisplayLang=en
What is the ADSI Scriptomatic?
The ADSI Scriptomatic -- as we keep trying to tell you -- is designed to help you write ADSI scripts; that is, scripts that can be used to manage Active Directory. As if that isn’t enough (and we learned the hard way that things are never enough), the ADSI Scriptomatic also teaches you an important point about ADSI scripting: like WMI, there are consistent patterns to ADSI scripts. For example, the ADSI Scriptomatic will help you write a script to delete a user account. It will also help you write scripts for deleting groups and organizational units. And if you take a close look at the scripts for deleting different objects, you’ll see something very interesting: theyre practical identical! What is this, some kind of a rip-off?
Well, it might be. But the reason the scripts look so similar is because ADSI uses a consistent approach for deleting objects, regardless of the type of object being deleted. What does that mean? Well, if you take the time to study the scripts created by the ADSI Scriptomatic (and if you read the ADSI chapter from the Windows 2000 Scripting Guide), you’ll understand how you can delete pretty much anything from Active Directory. For example, we wanted to keep the ADSI Scriptomatic relatively simple; as a result, weve limited the objects you can work with. The ADSI Scriptomatic will write a script that deletes a user account, but it won’t write a script that deletes a published printer. But, hey, so what? After you understand the pattern, you can write your own script for deleting published printers. (OK, OK, well consider creating the DeletePublishedPrintersOmatic. But don’t hold your breath.)
Find for details from here:
http://technet.microsoft.com/en-us/scriptcenter/dd939958.aspx
Download ADSI Scriptomatic
http://www.microsoft.com/downloads/details.aspx?FamilyID=39044e17-2490-487d-9a92-ce5dcd311228&DisplayLang=en
Take Advantage of Scriptomatic 2.0 to Maximize Your WMI Scripting Efforts
Scriptomatic 2.0 resources
Take Advantage of Scriptomatic 2.0 to Maximize Your WMI Scripting Efforts
http://windowsitpro.com/article/articleid/44360/take-advantage-of-scriptomatic-20-to-maximize-your-wmi-scripting-efforts.html
The simplest and most obvious use for Scriptomatic is reading and displaying a class's properties and their values. When Scriptomatic 2.0 loads, it defaults to the root\CIMV2 namespace, then loads the classes in that namespace. You select a WMI class, such as Win32_ComputerSystem, to generate a script.
After Scriptomatic 2.0 generates the code, you can immediately run the script or save it to a file so that you can use it to create more complex code. If you run the script, you can output the results as command output in the command-shell window, as a text file for viewing in Notepad or another editor, as an HTML or XML file for viewing in a browser such as Microsoft Internet Explorer (IE), or as a comma-separated value (CSV) file for viewing in Microsoft Excel or another spreadsheet program.
Scriptomatic 2.0 alone won't give you a complete picture, which is why you need several WMI-specific tools and references in your toolkit. Here's a list of essential WMI tools and documentation that you can use to expand on the information Scriptomatic 2.0 provides:
Take Advantage of Scriptomatic 2.0 to Maximize Your WMI Scripting Efforts
http://windowsitpro.com/article/articleid/44360/take-advantage-of-scriptomatic-20-to-maximize-your-wmi-scripting-efforts.html
The simplest and most obvious use for Scriptomatic is reading and displaying a class's properties and their values. When Scriptomatic 2.0 loads, it defaults to the root\CIMV2 namespace, then loads the classes in that namespace. You select a WMI class, such as Win32_ComputerSystem, to generate a script.
After Scriptomatic 2.0 generates the code, you can immediately run the script or save it to a file so that you can use it to create more complex code. If you run the script, you can output the results as command output in the command-shell window, as a text file for viewing in Notepad or another editor, as an HTML or XML file for viewing in a browser such as Microsoft Internet Explorer (IE), or as a comma-separated value (CSV) file for viewing in Microsoft Excel or another spreadsheet program.
Scriptomatic 2.0 alone won't give you a complete picture, which is why you need several WMI-specific tools and references in your toolkit. Here's a list of essential WMI tools and documentation that you can use to expand on the information Scriptomatic 2.0 provides:
- WBEMTest. WBEMTest is part of every OS installed with WMI. It's not the easiest tool to master, but it has the advantage of always being there.
- WMI CIM Studio. WMI CIM Studio is a powerful and intuitive Web-based interface for digging into WMI. It's part of the WMI
- Administrative Tools suite. Those who don't already have this suite of tools can download it from http://www.microsoft.com/downloads/details.aspx?displaylang=en&familyid=6430f853-1120-48db-8cc5-f2abdc3ed314.
- WMI software development kit (SDK) documentation. The WMI SDK documentation is available online at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/wmi_start_page.asp. If you don't have an always-on Internet connection, you might prefer to download the Windows Server 2003 Core SDK from http://www.microsoft.com/msdownload/platformsdk/sdkupdate. The WMI SDK documentation is part of the Core SDK.
- "WMI Scripting Primer." I often reference the three-part article "WMI Scripting Primer" because, in relatively few pages, it provides powerful insights into the WMI architecture and the WMI scripting API. If you haven't already read this primer, I urge you to do so. "WMI Scripting Primer: Part 1" is at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnclinic/html/scripting06112002.asp. You can access the other parts from the directory on the right side of this Web page.
Using Contrast as an Effective Learning Tool
Scriptomatic 2.0 lets you select other WMI namespaces besides the common root\CIMV2 namespace. CIMV2 is the only namespace available in version 1.0. In version 2.0, you can gain insight on whether a namespace (i.e., provider) is available on other platforms. For example, the root\MicrosoftIISv2 provider is available on Windows 2003 computers running Microsoft IIS 6.0. In contrast, this namespace isn't available on computers running Windows XP and IIS 5.1 because the MicrosoftIISv2 provider is available only on IIS 6.0.
Download Scriptomatic 2.0:
Subscribe to:
Posts (Atom)