Group:  English: General » microsoft.public.windows.powershell

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Threads Replies Last Post
22 Pages: 1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18  19  20  21  22  
Powershell use of SNMP WMI Provider
WMI supports an SNMP provider. Based on what I have read it seems that if I correctly setup the WMI SNMP provider on a box on which I have PS installed I should be able to access SNMP enabled devices on the network via PS. Could anyone confirm if this is correct? Has anyone come across step by step procedures on how to set this up? Owen ...
3 02.06.2007 23:15:11
psh bootstrapper
Is there a Powershell Bootstrapper Manifest out there that you can add to vs2005 for prereq in a setup project? -- William Stacey [C# MVP] PowerLocker, PowerPad www.powerlocker.com ...
2 02.06.2007 09:21:01
InvokeAsync api choice?
I am a little confused why they choose the async api model they did on Pipeline (i.e. p.InvokeAsync()). And why they did not implement the more standard and flexible Begin/EndInvoke pair like the rest of the framework? The way is stands, you don't get a callback method, so you have track around P in your program instead of using more natural closures and variable capture: IMO, this w...
1 02.06.2007 04:00:50
Running mutiple processes from a powershell script
I am running a cript on a multi-processor(and multi core) machine. It has to run a large number of datafiles through an executable (passed in by command line arg) that each takes a few minutes to run. I would like to parallelize it by running mutiple instances (say 4, since I have two dual-core processors) and then checking for each one to finish and starting the next one in the list whe...
2 02.06.2007 01:40:03
Using Powershell to script existing application, HomeSite
Somebody suggested I modify a script for a software product. The product (HomeSite) can be extended with scripts (JScript, VBScript) which gain access to the object model of the calling application. I already have a script that does the job in Powershell. How would I go about splicing Powershell into the existing system? (I have no access to the source code.)...
3 01.06.2007 23:57:01
$args for Functions doen't work as excepted
Hi Together In my script there is a function defined how bellow. function global:testargs($args){ foreach($item in $args) { Write-Host "Args -> $item" } Write-host "`$args.count -> " $args.count } After i loaded this script in my Powershell default environment (except there was set execution policy to unrestricted) and after executed the following line: PS C:...
2 01.06.2007 20:13:22
how to determine a script location?
Inside a basic .PS1 script how do I determine the location of the PS1. What i am doing is I want to locate a config file which will be located in the same dir as the script. Thanks, jeff ...
7 01.06.2007 19:56:59
Search and replace in a text file?
Is there an easy way to search for a string in a text file, and replace it with something else? Preferably using a regex, but it's not really that important. ...
9 01.06.2007 13:59:07
$Variables
I have been trying to use a $variable to control my format-table command. --------------------------------------------------------------------------------------------------------- $Item = "DeviceId, MediaType, Size, FreeSpace" get-wmiobject -query "Select $Item from win32_logicaldisk" ` |sort mediatype | format-table $Item -auto -groupby MediaType # |sort mediatype | format-table ...
6 01.06.2007 10:05:18
Add method not accessibe from Powershell?
I'm trying to learn Powershell and convert some of my existing VB automation over. Immediately I've run into a showstopper with a particular COM object that doesn't seem to expose the Add method of a member when working in Powershell. By contrast, I can easily invoke this method from VBScript. The application is Adobe InDesign. In VBScript, this works: Set myInDesign = CreateObject("InD...
5 31.05.2007 21:35:24
psh assemblies moved?
Where the heck is the psh assemblies now. They seem to have moved on me. Example: Microsoft.PowerShell.Commands.Management. c:\program files\reference assemblies\Microsoft\WindowsPowerShell... -- William Stacey [C# MVP] PowerLocker, PowerPad www.powerlocker.com ...
4 31.05.2007 18:46:21
Compare-object doesn't seem to work with Arrays
I think I'm doing this right... Any ideas? PS C:\Toolbox\Scripts\DNSCheck> $t TLD5.ULTRADNS.INFO TLD6.ULTRADNS.CO.UK TLD1.ULTRADNS.NET TLD2.ULTRADNS.NET TLD3.ULTRADNS.org TLD4.ULTRADNS.org PS C:\Toolbox\Scripts\DNSCheck> $v TLD4.ULTRADNS.org TLD5.ULTRADNS.INFO TLD6.ULTRADNS.CO.UK TLD1.ULTRADNS.NET TLD2.ULTRADNS.NET TLD3.ULTRADNS.org PS C:\Toolbox\Scripts\DNSCheck> compare...
5 31.05.2007 17:38:04
PowerShell Analyzer - Anyone else having problems with Vista??
PowerShell Analyzer Initialization throws an unhandled exception ("Object reference not set to an instance of an object") at the splash screen at PSA.editorstuff.EditorControl.setupAliases() Result is I can't run PSA :-( I've reported the bug here: http://www.powershellanalyzer.com/bugs/index.php (Issue number 81). This appears to be the same issue as bug FS#43, at least it's the sa...
4 31.05.2007 15:43:29
Where's my $ie.Document.Body.InnerText?
If I do the following, my $ie.Document doesn't have a "Body" property...should it? $ie=new-object -comobject internetexplorer.application get-childitem > temp.txt $temp=(get-childitem temp.txt).fullname $ie.navigate("file://$temp") $ie.visible=$true $ie.document|get-member Because my $ie.Document doesn't have a "Body" property, I can't extract the text that's supposed to be stored ...
4 31.05.2007 07:52:00
Prevent Output
I have this script (yes I am using some stuff from Quest) $VAR = 0 while ($VAR -ne 10) { $VAR++ New-QADUser -ParentContainer 'OU=Test,DC=domain,DC=local' -Name "Test User$var" } How can I prevent the script from showing a line for each user added. I just want a output line when the script has run. ...
5 31.05.2007 01:52:33
doc bug: get-content -Delimiter
CWhile I'm here as I can't log bugs with Powershell though connect. Please could somebody log that: the -delimiter of get-content is not documented: does not appear in the help: SYNTAX Get-Content [-path] <string[]> [-totalCount <long>] [-readCount <long>] [-include <string[]>] [-exclude <string[]>] [-filter <string>] [-force] [-credential...
2 31.05.2007 00:14:04
Listing all objects in an ADSI OU
I'm trying to pull a list of computers from an OU in AD. I know to use the [ADSI] object, but can't figure out where to go from there. I'd like to use this list of computers to -filter for 1-process on all computers. Thanks, --TJ ...
6 30.05.2007 23:35:37
Unlock a file beeing used by another user
Hello everybody do you know how to unlock a file for wich the system thinks it is beeing used by another user, like excel or word files ? i mean close every connection to this file by a powershell script ? bye Nico ...
5 30.05.2007 20:48:05
Looking for hints on sorting a file with PowerShell
Say one has an ASCII file with 2000 lines and 5 comma separated variables per line. How does one go about sorting the file in descending order using the third variable in a line to control the sorting order and write the sorted results to a file. The file to be sorted can not be modified. Thanks in advance for your hints, Howard ...
7 30.05.2007 20:20:42
Why can't I use Interop assembly instead of COM?
I'm new to Powershell and I'm curious about why this doesn't work. I know I can: $a = new-object -COM Word.Application But, why won't this work?: [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Office.Interop.Word") $a = new-object -type Microsoft.Office.Interop.Word.Application PS complains: "New-Object : Constructor not found. Cannot find an appropriate constru...
5 30.05.2007 19:07:03
PoSh: Quine
Hi everybody, Yes, I'm still alive (quite busy though) and I'm still playing 'round with PowerShell... ;-) I was kind of bored today and came across this on wikipedia: http://en.wikipedia.org/wiki/Quine_(computing) Since I could not find a PowerShell Quine on the web I tried to do my own. Here's what I came up with: solution 1: function q {"function q {$function:q};q"};q solu...
13 30.05.2007 18:24:02
AD Search.findall() and the pipeline
When doing an AD search such as the following from the command line you can see the individaul pages (of AD objects) returned from AD (on a slow network at least) $dom = [System.DirectoryServices.ActiveDirectory.Domain]::getcurrentdomain() $root = $dom.forest.rootdomain.getdirectoryentry() $search = [System.DirectoryServices.DirectorySearcher]$root $search.filter = “(&(objectcategory=per...
5 30.05.2007 17:10:40
import-csv missing charakters
Hello, Using the powershell cmdlet IMPORT-CSV, special Characters (ä,ö,ü) get lost. My Test: content of af file test.csv: english, german door, tür Powershell: PS C:\Test> $a= ipcsv .\text.csv $a english german ------- ------ door ...
4 30.05.2007 15:22:33
Possible FormatEnumerationLimit related bug
Can anybody else confirm the following? Start PowerShell with no profile (-noprofile). Execute this: [system.reflection.assembly]::LoadWithPartialName("System.Windows.Forms") | fc It should not hang. Now set the following variable: $FormatEnumerationLimit = 100 Execute the first command again: [system.reflection.assembly]::LoadWithPartialName("System.Windows.Forms") | fc ...
5 30.05.2007 14:00:02
Parsing command line arguments
I m pretty new to powershell and exploring its capabilities. One of the things i m trying to experiment is creating a custom cmdlets. This is what i m thinking of so please let me know if it is possible. I have a custom cmdlet ParseCommandline, basically this will parse and execute the input passed as a command line argument for eg. ParseCommandLine | dir | sort -desc length | select...
6 30.05.2007 05:30:51
22 Pages: 1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18  19  20  21  22  

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net