Sign In
Developer Support ADSI, WMI, Powershell Team Blog
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
80072030
Active Directory
AD LDS
ADAM
ADSI
base64
C++
DsAddSidHistory
DsBindWithSpnEx
Error
failover cluster manager
Filter
GPMC
GPO
Group Policy Object
GUID
IADsGroup
IEEE Standard 754
IGPM
PowerShell
script
System.DirectoryServices
VBS
windows scripting host
WMI
Archive
Archives
April 2012
(1)
March 2012
(1)
January 2012
(7)
December 2011
(1)
November 2011
(2)
December 2010
(1)
October 2010
(1)
June 2010
(1)
May 2010
(2)
April 2010
(1)
March 2010
(1)
December 2009
(2)
October 2009
(2)
September 2009
(3)
August 2009
(3)
July 2009
(2)
June 2009
(1)
May 2009
(1)
March 2009
(2)
February 2009
(2)
January 2009
(1)
January, 2012
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Developer Support ADSI, WMI, Powershell Team Blog
WScript.Quit( Value ) does not always match the error code environment variable %errorlevel% in the command processor ( batch file processing ) environment.
Posted
4 months ago
by
Max Vaughn
0
Comments
In the windows scripting host environment, the WScript.Quit method can be used to return an exit code to a calling process. In 99.9% of the cases, the value set with the WSCript.Quit method will be returned as expected. If you are running your script...
Developer Support ADSI, WMI, Powershell Team Blog
Using PowerShell History ( Part 2 )
Posted
4 months ago
by
Joe Cordero
0
Comments
In my last blog, I talked about how you can increase the history buffer limit. This is very helpful if you ever want to save the commands that you may have been working on to later incorporate into your script library. I would normally save the history...
Developer Support ADSI, WMI, Powershell Team Blog
Using PowerShell History ( Part 1 )
Posted
4 months ago
by
Joe Cordero
0
Comments
I like trying to figure out how things work and most of the time, it is via trial and error. Then I experiment to test my understanding and discovery a few new tricks along the way. Most of the time, this discovery happens while I am in the Windows PowerShell...
Developer Support ADSI, WMI, Powershell Team Blog
Searching the Active Directory using PowerShell
Posted
4 months ago
by
Joe Cordero
0
Comments
In my last blog, I provided a sample PowerShell script that shows how to use the System.DirectoryServices namespace from .NET Framework to bulk create users. Now I will show you can you can use the same namespace to search the Active Directory. We...
Developer Support ADSI, WMI, Powershell Team Blog
Using a CSV file to create users by accessing the System.DirectoryServices namespace from a powershell script
Posted
4 months ago
by
Joe Cordero
0
Comments
There are several ways to programmatically create users in the Active Directory. The easiest way would be to use the Active Directory PowerShell Module. This is great if you have access to a Windows 2008 R2 domain controller as the Active Directory PowerShell...
Developer Support ADSI, WMI, Powershell Team Blog
Using the global error collection stored in the $Error variable to retrieve detailed error information in a powershell script
Posted
4 months ago
by
Joe Cordero
0
Comments
I was recently working with a developer who wanted to know if there is a way to get the error when they call the Invoke-Expression cmdlet. He was using the $LastExitCode to determine if it succeeded or not. Unfortunately, the $LastExitCode was not returning...
Developer Support ADSI, WMI, Powershell Team Blog
Using a customer application event log to debug a Powershell Script
Posted
4 months ago
by
Joe Cordero
1
Comments
Often, when I am debugging a developer’s PowerShell script, the only symptom I get is that the script is not working. In general, it is fairly easy to debug a small script even when you have little information but when given complex script, it can...
Page 1 of 1 (7 items)
MSDN Blogs
>
Developer Support ADSI, WMI, Powershell Team Blog
>
January, 2012