Description:
Microsoft Windows newsgroup.
|
|
|
how to kill process with powershell
|
| |
hello everyone i am new here and just learned powershell few days . I want to declare a array that contains my program name,and then I shutdown it when I run the powershell script. here is my code $array=("a","b","c") foreach($i in $array){get-process|where { _$.Name -Equal $i}|kill} can you help me to edit it .thanks... more »
|
|
This will work
|
| |
$address = "Fraser Center`r`nBldg 3" set-user -id -streetaddress $address You need to have both the `r`n and that is not a ' it a ` there is a differance in powershell. ...I think part of the confusion may be between the term multi-line and 11-Apr-09 I think part of the confusion may be between the term multi-line and... more »
|
|
Scope question - Variable scope within script
|
| |
Another newbie question... I'm hung up on variable scope. Comparing to VbScript, I would like to have global/public variables visible anywhere within the script, as well as private/local variables visible only within their own function. As I understand the docs, global or script scope should be visible anywhere... more »
|
|
Getting top down org view with PowerShell
|
| |
Does anyone have any quick code samples that can return a list of all reports to a manager and below? I'm looking to make some distribution groups based on a manager and all their reports (direct and otherwise). Thanks!
|
|
Quota script
|
| |
Hello macblazer, ...Dale; This might work: (All one line) Get-Mailbox -Filter {UseDatabaseQuotaDefaults -eq $false -AND database -eq "<database DN>"} |Select-Object Alias |Set-Mailbox -UseDatabaseQuotaDefaults:$tru e If not, try this: Get-Mailbox -Filter {UseDatabaseQuotaDefaults -eq $false -AND database -eq... more »
|
|
Parse email and forward certain text
|
| |
I am sure this can be done, I'm just to new to Powershell to figure it out. I am using Outlook 2010 beta. I would like to create a rule that when an email from a certain sender, with a certain Subject line, comes into my Inbox launch a powershell script. This script will parse the email and forward everything between a particular word... more »
|
|
|