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  
Clearing IE History
Is there a way to use PS to clear the IE History/Temp Files? ...
3 04.05.2007 18:44:01
Difference between string and array
I used the following statements: -- ...
7 04.05.2007 17:38:36
Relative Path Completion
I know this sounds trivial, but the way PowerShell expands to a full path when using tab completion really annoys me. Is there a way to configure it to us relative path completion, like cmd? For example if I'm in c:\data and type 'cd pro<TAB>', I want it to say 'cd projects', rather than 'cd C:\data\projects'....
5 04.05.2007 16:24:03
file associations launching new cmd.exe
I have .py files associated with the python2.4 interpreter, and when I try to run one in cmd.exe, it correctly launches python within my current command line, and displays the results as it would any console command. However, when attempting the same thing within PowerShell, it launches a new window to run the program. Running python.exe directly with the file name as an argument, it w...
2 04.05.2007 15:40:52
C-Style callback in Powershell
Hi all, continuing my quest into low-level land, i've got a question about C-style callbacks or ?delegates? in Powershell. I have to interface with a DLL Written in C that contains a function to enumerate a collection which expects a callback function, this callback will be called for every item in the collection. Found this blog entry about creating delegates from scriptblocks but it only se...
1 04.05.2007 12:28:11
Bug in about_if documentATION
Just for fun i thought i'd read about_if, i guess most people skip this chapter, atleast i did. The following shows the if statement syntax: if (<test1>) {<code_block1>} [elseif (<test2) {<code_block2>}] [else <code_block3>}] Seems there's a bug in the syntax for else, it's missing an opening curly-brace PS> if($true)...
2 04.05.2007 12:13:12
how can i get "Logonserver" value with wmi object
win32_environment object not contain "Logonserver" property where can i get "Logonserver" value with wmi object ...
2 04.05.2007 12:11:01
get-packet
Computer keeps on beeping at me while receiving packets no clue why. ...
4 04.05.2007 12:08:34
Slashdot Review: Windows PowerShell in Action
Slashdot has a review of Bruce's book http://books.slashdot.org/books/07/05/02/1345254.shtml One comment I found interesting about why they did not like the fact that PSH passed objects rather than text see http://books.slashdot.org/comments.pl?sid=233133&cid=18961759 Any responses (1 liners) to his example? ...
9 04.05.2007 07:47:49
Can't run external app from command line
I can run this command successfully from the DOS command: flashfxp.exe -download POWDB -remotepath="test.ps1" However, when I try to run this from the Powershell prompt, ../flashfxp.exe -download POWDB -remotepath="test.ps1" I get the continuation prompt on the next line. If I remove the double-quotes from the last parm, the app sees the 2nd and 3rd parms as a single parm and fails. I...
8 04.05.2007 03:34:28
Bug spreading pipeline commands across multiple lines in a script
Put the following command (assumes you have PowerGadgets for out-chart) in a script file on the same line and run it. The generated chart is correct. gci . -rec | select @{n='LastWriteDate';e={$_.LastWriteTime.Date}} | group LastWriteDate | sort Name | out-chart Now modify the script to move the out-chart to the next line: gci . -rec | select @{n='LastWriteDate';e={$_.LastWriteTime.D...
9 04.05.2007 03:17:28
Powershell bug?
This is a multi-part message in MIME format. --------------080505090308020104010103 Content-Type: text/plain; charset=EUC-KR Content-Transfer-Encoding: 7bit It seems like a bug to me. > PS> 1..50001 | Out-Null # It's just ok > PS> 1..50002 | Out-Null # hmm... > Bad range expression; 50001 is larger than the maximum size of a range > (=50000 elements). > At line:1 ch...
9 03.05.2007 21:21:49
Copy-Item
How do I prevent Copy-Item from overwriting an exsisting file...
5 03.05.2007 21:19:00
how to call win32 console app or bat file from ps script
I cannot find any examples and have not been able to figure it out myself. Can anyone help me out? I want to make the following command line call: hxreg -n <string> -c <string> -d <string> Thanks in advance....
3 03.05.2007 20:31:00
Setting media file tags from PowerShell
This is a multi-part message in MIME format. ------=_NextPart_000_01F6_01C78DCB.564E7B90 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi. I'm trying to use PowerShell to add media tags to my podcast downloads, = i.e. to set the Genre, Artist, AlbumTitle, and Title attributes on WMA = and MP3 files. I've seen Keith Hill's blog about GE...
1 03.05.2007 19:38:06
Changing the default Gateway in PS
I'd like to change the default gateway for more than a few remote workstations with powershell, is there a netsh like command for this? Any help would be great I'm kinda noobish with PS...
2 03.05.2007 18:47:02
problem using Microsoft.Exchange.Management.PowerShell.Admin from C#
I'm trying this example: http://knicksmith.blogspot.com/2007/03/managing-exchange-2007-recipients-with.html I've complied the project for x64 platform and when I attempt to execute it on an Exchange 2007 server,this line: PSSnapInInfo info = rc.AddPSSnapIn("Microsoft.Exchange.Management.PowerShell.Admin", out warning); Gives this error: Unhandled Exception: System.Management.Au...
1 03.05.2007 15:39:02
[uint64] - [uint64] not defined
This blows: 352# $v = [uint64]54 353# $v | gtn UInt64 354# $y = [uint64]454545454545 355# $y - $v The operation '[System.UInt64] - [System.UInt64]' is not defined. At line:1 char:5 + $y - <<<< $v I was trying to do some math on Win32_LogicalDisk (freespace and size). -- Keith ...
4 03.05.2007 15:00:01
variables problems
Hi, i've got a problem with some variable parameters in a function : function FindUser($parametres,$UserLastName,$UserFirstName) { "------------------" $parametres $UserFirstName $UserLastName Write-Host " -- " $UserLastName } if i call : FindUser($args[0],$args[1],$args[2]) , i will obtain the following reult : 3 arguments ----------------...
3 03.05.2007 14:14:04
WMI remote gives 'RPC Unavailable'
Hi, Here's the setup of my prpblem: I'm working an a machine that is not in the domain, running Windows XP. I'm trying to access a machine in the domain, running Windows Vista Business. When I run get-wmiobject win32_service -credential domain\user -computer vistapc the following error is returned: Get-WmiObject : The RPC server is unavailable. (Exception from HRESULT: 0x8...
4 03.05.2007 12:35:08
Invoke-Item with param.
Invoke-Item "C:\WINDOWS\pskill.exe" works great, but Invoke-Item "C:\WINDOWS\pskill.exe -t \\192.168.1.2 outlook" doesent work. error: Invoke-Item : Cannot find path 'C:\WINDOWS\pskill.exe -t \\192.168.1.2 outlook' because it does not exist. At C:\Documents and Settings\Notebook\test.ps1:1 char:12 + Invoke-Item <<<< "C:\WINDOWS\pskill.exe -t \\192.168.1.2 outlook" ...
3 03.05.2007 11:16:18
Powershell & Active Directory
Im looking for some tutorial, whitepaper or anyting that get me going on how to use powershell for AD administration Anyone have a hint for me? ...
4 03.05.2007 09:33:24
Executing Power Shell Scripts from Windows Shell
Typing powershell "D:\PowerShell Examples\TempScript.ps1" on the cmd prompt, gives an error that, The term 'D:\PowerShell' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again. I understood that, it was because of the space. So I removed the space and tried again and the script executed successfully. However, typing type "D:\PowerShel...
4 03.05.2007 03:37:06
Powershell/WMI scripting for Disk Usage
I am taking on the task of creating a powershell script maybe combined with WMI to generate a "report" to show the disk space usage on all the servers on my network. I also need it to be where i can view the history of the usage and store it in an SQL database. Then probably use Crystal reports to display a graphical report of it with graphs and such. What would be the best way to acco...
19 03.05.2007 02:33:01
turn off remote computers
Is there any wat to turn off: 1. remote computers in the same workgroup 2. local computer without any shutdown confirmation message ?...
19 02.05.2007 18:24:11
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