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  
Windows PowerShell Training
Here are the Windows PowerShell training courses that seem to be currently available, if you're looking: http://www.ScriptingTraining.com/public_classes.asp http://www.WindowsPowerShellTraining.com http://DesktopEngineer.com/ps310 http://www.training4systemcenter.com http://www.newhorizonsmn.com/CourseDetail.aspx?CrsNum=NHPowerShell ...
3 22.04.2007 04:50:01
Powershell and the "-" symbol
I'm trying a play with powershell with ADSI and I've managed to get to the point where I've got a user object whose properies I can access. Eg, $user being the user object. PS C:\> $user.cn Yolanda Mouriz PS C:\> $user.msExchALObjectVersion 58 These work fine but: PS C:\> $user.msRTCSIP-PrimaryHomeServer You must provide a value expression on the right-hand side of th...
4 22.04.2007 04:48:02
tutorial on working with xml files in powershell?
I'm trying to write a series of scripts to run discovery on a prospect or new client's network. I'm familiar enough with WMI and Powershell to get whatever data I want from a computer once I connect to it. But before that I need to (1) discover the active NIC on my laptop (wireless? ethernet?) and learn the network number (e.g., 192.168.1.0/24), then (2) scan the network to find the ac...
2 21.04.2007 00:46:40
passing params to windows commands
Hi, I have something like: $backFile="c:\backupfile.bkf" ntbackup backup $backFile The problem is that the variable doesn't get expanded. How can I get it expanded? Cosmin....
6 20.04.2007 12:26:04
certificate signing request
Can anyone tell me how to generate a Code Signing Certificate Signing Request for use in PoSH? I want the cert signed by a trusted issuer (ie. not Self Signed). Unfortunately I can only find examples relating to self signed, openssl and IIS - modification of which doesn't provide the intended results. Cheers, n ...
2 20.04.2007 11:22:45
Multi-property filtering
Let's say I have a cmdlet named Get-Thingy. Get-Thingy returns Thingy objects, which each have about 20 string properties. I want to do some filtering on my Thingy objects, so I pipe them to Where-Object. ??: Is there a way to filter across all 20 properties at once? E.g., something like... get-thingy | where-object { $_ -anyproperty -like "*Windows*" } So that the -like "*Windows*"...
4 19.04.2007 13:45:31
Add computer to AD
Hi everyone, I have one question about adding computer to domain (OU Test) using powershell: how to do that? I have no problem to add users using powershell... Here is what i tried: ============================= function add-comp ([string]$CompName) { # $const1="ADS_UF_PASSWD_NOTREQD = &h0020" $ADS_UF_WORKSTATION_TRUST_ACCOUNT = "&h1000" $sam = $CompName # Get an ADSI object for th...
4 18.04.2007 14:29:19
New to powershell: Starting resources
I'm a new to powershell on-again off-again coder (I've programmed in over a dozen languages over the years, but mostly at the hobby level, my preferences usually land me in high level scripting languages) Can anyone suggest the best powershell references for starting out? Either print books (acceptable), or online documentation (better), but something that will walk me through the basics. ...
5 17.04.2007 21:53:42
Using VSS with powershell through COM
Has anyone had luck creating a VSS COM object inside Powershell? I'm not very familiar with VB and references and I haven't been able to figure out what I need to load in order to be able to run something like: PS> $vss = new-object -com VSSDatabase I've been able to figure out that the code I want to access is in ssapi.dll and that I might beable to use any one of the following: ...
2 17.04.2007 20:57:15
List of Powershell Bugs
I am evaluating PowerShell for use in my project. Is there a list of known PowerShell bugs that I can look at? ...
2 17.04.2007 19:44:02
Redirection message with dsn
Hello, I tried to redirect a message with dsn code 5.1.1 toward an other mailbox here's my code: $Condition = Get-SystemMessage Fr\Internal\5.1.1 $Action = Get-TransportRuleAction RedirectMessage $Action.Addresses = @(("poubelle@gestor.fr")) New-TransportRule -Name "Redirection mail non valide vers poubelle" -Condition ($Condition) -Action ($Action) thanks -- Cordialement, ...
2 17.04.2007 13:44:04
Manipulating mouse events through Powershell
I've been scouring the Internet for a few days now to try and find a solution to this problem with no luck. I was wondering if anyone here had any information on how to manipulate mouse events in Powershell, for example, move, left click (x,y), right click (x,y). I managed to get the position of the mouse on a click, which is useful for logging, but can't seem to get further in actually cre...
6 17.04.2007 10:19:42
Trouble with $Error[0]
Hi PowerScripters ! I have a little problem, but very annoying. I am testing error management with PowerShell. Here's my code : $ErrorActionPreference = "SilentlyContinue" [int]$i="ABCD" # Here is the error if ($?) { Write-Host "All is ok" } Else { Write-Host "An error occured : $Error[0].exception.message" } My result is : An error occured : Impossible de convertir ...
3 17.04.2007 09:06:02
Anyway to timeout a command
Hi, I have a situation where I need to timeout an "Invoke-Expression" in the cases where a host may not respond. Is that possible? ,ie. (gwmi Win32_PerfFormattedData_PerfOS_memory -computername niner2).PageFaultsPerSec invoke-expression $var ...
2 17.04.2007 08:20:00
backup script
I need some help writing a backup script. This is what I need the script to do: - Copy 1 or more files from the internal hard drive (C:) to 2 external hard drives (G:\ & H:\) - Compare each file copied to make sure that it is only copied to the 2 external hard drives IF the file(s) on the internal hard drive are newer than the ones on the external drives. - Copy mulitiple files at ...
1 16.04.2007 22:00:02
Invoke-expression error status
Hi, How do I get the true status of Invoke-Expression, ie: $file_there = "dir filename_notthere.doc" invoke-expression $file_there When I look at $? variable, its always true because its the status of the call "invoke-expression", I believe. I would like to use invoke-expression in many different ways but I cannot if I can't find the true status of each command. Thanks in adv...
3 16.04.2007 17:22:03
Using a function to setup objects properties with scope of script
Hi, I am trying to use a function to setup objects to be used within the main script. I am calling the function from a loop counter and would like the name of the object with counter appended to it. so insted of doing: function setup1 { [param([string]$num) pcproc${num} = new-object system.diagnostics.PerformanceCounter} I do: function setup1 {set-variable -name pcproc${num} -val...
3 16.04.2007 16:45:07
Is There A Full, Correct PowerShell Grammar Anywhere?
Hi, I'm working on an editor/debugging type tool for PowerShell scripts and need a correct PowerShell grammar so I can parse in the scripts correctly. The grammar detailed at http://blogs.msdn.com/powershell/archive/2007/03/02/improved-powershell-grammar-documentation.aspx is incomplete; a newsgroup post at http://groups.google.com/group/microsoft.public.windows.powershell/browse_thre...
3 16.04.2007 15:24:03
PowerShell Gadget for Vista
What could be sweeter than PowerShell, always on, and available in your sidebar. And best of all: It's free! Check it out: http://andrewpeters.net/powershell-gadget/ w00t! ...
3 16.04.2007 13:52:03
"x`n" - bug or feature?
================================= C:>"x" x C:>"x`n" x C:>write-host "x`n" x C:> ================================= The above is cut unmodified from my PS console. What confuses me is, that write-output (aka echo) converts the `n into two empty console output lines - I expect (and need) just one. write-host behaves as expected. Anyone with an explanation for that? Of...
2 16.04.2007 09:58:02
How to use set-itemproperty
Hi, I have setup an object via: set-variable -name test1 -value (new-object system.diagnostics.PerformanceCounter) I have verified that this is the correct object but when I try to set a property via set-itemproperty -name test1.CategoryName -value "Processor" , it asks for a path, when I tried to put in a path: set-itemproperty -path test1 -name CategoryName -value "Processor", ...
3 15.04.2007 18:56:02
Multi-task in script
Hi, I want to create script that monitor counters via WMI . I want each counter will be check simultaneously, so the script will end as soon as it can. Thanks ...
1 15.04.2007 09:58:22
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