Learning

TwitterFacebook
Get flash to fully experience Pearltrees
i'd get back either c: \ myscripts or c: \ myscripts \ thescript.ps1 i found this $ myinvocation .mycommand.path but that returns the current location (in this case, c: \ ) as does $(pwd).path any other suggestions? Thanks Justin $ myinvocation .invocationname Does anyone know whether its possible mark a post as a "sticky"? It would be really nice to start a FAQ. Justin the MyInvocation variable is what you want. The state of this variable depends on the context in whether you are at script of function scope. function test { echo "Entering function Test" echo "`$ MyInvocation .InvocationName is $($ MyInvocation .InvocationName)" echo "`$ MyInvocation .MyCommand.name is $($ MyInvocation .MyCommand.name)" echo "`$ MyInvocation .ScriptName is $($ MyInvocation .ScriptName)" echo "`$ MyInvocation .MyCommand.path is $($ MyInvocation .MyCommand.path)" echo "`$pwd.path execute that code.

MyInvocation

http://www.eggheadcafe.com/searchform.aspx?search=MyInvocation
http://www.sivarajan.com/scripts.html This script can be use to uninstall Symantec Antivirus client and install Microsoft Forefront Client Security. In this script you will see functions for removing Symantec passwords, uninstalling Symantec Antivirus, uninstalling Symantec Endpoint and installing FCS. You can use this scrip to uninstall McAfee Antivirus client and install Microsoft Forefront Client Security. In this script you will see functions for removing McAfee Antivirus and installing FCS. Uninstall ForeFront Client Security- VB Script

Santhosh Sivarajan's Microsoft Technology Web Site

Articles System.Security.Cryptography.X509Certificates.X509Store, 304 System.ServiceProcess.ServiceController, 381 [System.ServiceProcess.ServiceController]::GetServices(), 383 System.Security.Cryptography.X509Certificates.X509Store; System.Security.Cryptography.X509Certificates.X509Certificate2; System.Security.Cryptography.RSACryptoServiceProvider; System ...

Powershell Research - System.Security.Cryptography.X509Certificates.X509Store

http://www.dotnettech.net/BCL/CSharp/System.Security.Cryptography.X509Certificates.X509Store/Type.aspx
http://technet.microsoft.com/en-us/library/dd391964(v=ws.10).aspx This topic explains how to use the Active Directory module for Windows PowerShell to create a managed service account. Managed service accounts are used to run various services for applications that are operating in your domain environment. Example 1

Creating a Managed Service Account

http://theessentialexchange.com/blogs/michael/archive/2009/12/22/getting-the-contents-of-an-active-directory-integrated-dns-zone-version-2.aspx In June of 2009, I published the first version of Getting the Contents of an Active Directory Integrated DNS Zone . Shortly after that, Chris Dent (chris at highorbit dot co dot uk) published a blog post clarifying the format of the dnsRecord attribute. Most of the time, the difference between the "correct" format and what I had deduced had no effect.

Getting the Contents of an Active Directory Integrated DNS Zone, Version 2 - Michael's meanderings...

http://blogs.technet.com/b/benp/archive/2008/06/12/tech-ed-2008-demo-2-administering-servers-in-bulk.aspx BulkServers1.ps1 – This script reads in a text file, containing 1 server per line. It simply then writes the server names back to the console BulkServers2.ps1 – This script extends the first script and simply gets the hostname, operating system and service pack level for each server listed in the input file. BulkServers3.ps1 – This script gets a little bit more complex and in fact is rather exciting.

Tech Ed 2008 - Demo 2 - Administering Servers in Bulk - Benp's Guide to Stuff - Site Home - TechNet Blogs

http://blogs.technet.com/b/benp/archive/2008/06/12/tech-ed-2008-demo-1-administering-windows.aspx Hello Again Well I’ve delivered my session “Windows, PowerShell and WMI: Unveiling Microsoft’s Best Kept Secret”, and as promised here are the scripts for the Demo’s I used during my session: The following lines of code show help on how to use the Get-WMIObject cmdlet in PowerShell, how to list all classes in the cimv2 namespace and finally how to use some basic parameters. These lines of code show how to get disk information from a system, identify all the properties and methods of the disk objects that can be used, then uses some properties.

Tech Ed 2008 - Demo 1 - Administering Windows - Benp's Guide to Stuff - Site Home - TechNet Blogs

PowerShell is a vast product, especially when you take into account how it's used in other products such as Lync Server, Exchange, and the Windows Operating System. It can be a little daunting to those new with PowerShell - there is a vast array of deeply technical discussions of all of PowerShell's many aspects, quirks and peculiarities and all. So start at the beginning, and learn the basics, either on you own, or possibly with the aid of a great training class. Then work with it and return to find more. And when you can, how about adding to the body of knowledge referenced here.

Windows PowerShell Survival Guide - TechNet Articles - Home - TechNet Wiki

http://social.technet.microsoft.com/wiki/contents/articles/windows-powershell-survival-guide.aspx
Microsoft Assistance Markup Language (MAML) is a XML based markup language used by "Longhorn" Help. The current help system HTMLHelp 1.x is using HTML topic files. HTML is a markup language that combines presentational and semantic elements.The most significant aspect of MAML is the shift to a structured authoring model. Documents and their constituent elements are defined semantically, placing the focus on content rather than formatting. http://www.help-info.de/en/Help_Info_AP_Help/longhorn_maml_example.htm

MAML - Microsoft Assistance Markup Language

Active Directory Powershell Blog - Site Home - MSDN Blogs

Check out this page in {0} translated from {1} translated from Original: Translated: Automatic translation powered by Microsoft® Translator Start translating Stop translating Close Close and show original page Select http://blogs.msdn.com/b/adpowershell/

Scripting with Windows PowerShell

In this session, Microsoft Scripting Guy Ed Wilson discusses a number of compelling reasons for learning Windows PowerShell scripting. These reasons include: It is powerful and provides the ability to collect and consolidate information from multiple remote systems into a centralized view of the data. It is safer than many other tools and offers the ability to prototype a command prior to the command execution. There is a confirmation mode that lets a network administrator or other IT professional selectively step through a group of commands to pick commands to execute or ignore.

DFS-R Health Report for SYSVOL « blog.powershell.no

Distributed File System Replication (DFS-R) was introduced as a replacement for File Replication Service (FRS) in Windows Server 2008, and was further enhanced in Windows Server 2008 R2. When your domain functional level are set to Windows Server 2008, you have the option to migrate SYSVOL-replication from the deprecated FRS to the new and more reliable DFS-R service. A major advantage of using DFS-R over FRS is that FRS copies the whole file when a change are made, while DFS-R only copies the changed bits. This and further details are discussed here . I`ve also included some links in the resource section below on how to perform an FRS to DFS-R migration.
MSDN

TechNet

Windows PowerShell Survival Guide - TechNet Articles - Home - TechNet Wiki

PowerShell is a vast product, especially when you take into account how it's used in other products such as Lync Server, Exchange, and the Windows Operating System. It can be a little daunting to those new with PowerShell - there is a vast array of deeply technical discussions of all of PowerShell's many aspects, quirks and peculiarities and all. So start at the beginning, and learn the basics, either on you own, or possibly with the aid of a great training class. Then work with it and return to find more. And when you can, how about adding to the body of knowledge referenced here.
Counting Log Activity Did you know that Group-Object can analyze text-based log files for you? Here's sample code that tells you how many log entries on a given day a log file contains: Get-Content $env:windir\windowsupdate.log | Group-Object { $_ .

Powershell Scripts, Tips and Resources

Several cmdlets in Windows PowerShell 2.0 have new parameters. Perhaps the most imme¬diately useful parameter is the −computername parameter, which allows you to work with computers in a remote fashion. The following modified cmdlets now add the –computername parameter. Get-EventLog Gets the events in an event log or a list of the event logs on local or remote computers. The following command uses the −computername parameter with the Get-EventLog cmdlet to retrieve the most recent event from the application log on a remote computer named berlin:

Use the New Computername Parameter in Windows PowerShell 2.0

Blogs

HuddledMasses