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  
Write protect a file
Is there any way to toggle the read-only attribute of a file from a powershell script? ...
3 24.05.2007 12:56:37
how to run a script without a window
Hi. Is it possible to run a scheduled script without a window? My script runs twice an hour and the window, although it's there only for a couple of seconds, is disturbing. -- Antti ...
7 24.05.2007 10:26:45
Creating a Gadget in WinXP with Powershell
Does anyone have an example of this can be done in PowerShell ? Yes I know theres PowerGadgets but its overkills for my needs. All I want is the capability to have a powershell window (or any window) which can run my scripts on predetermined interval and log and/or show results as a number or a block of characters like a powershell progress bar. For Example a script that tells me CPU usa...
2 24.05.2007 03:12:00
Re: select-string exceptions
> select-string -pattern [^def] input.txt I haven't exactly picked up on regular expressions yet, but what if the data in input.txt looked this: hostname1, Autodesk AutoCAD 2005 hostname1, Microsoft Office 2003 hostname2, Autodesk AutoCAD 2006 hostname2, Adobe Acrobat Reader hostname3, Autodesk AutoCAD 2002 hostname3, Autodesk AutoCAD 2003 hostname3, Autodesk AutoCAD 2006 And ...
3 23.05.2007 23:06:44
Authorizing Powershell Operations
Is it possible to do a system-wide override of PSAuthorizationmanager and connect it to AzMan, in order to let a Systems Administrator allow or disallow certain Powershell Operations (in a domain environment)? Powershell lets you create your own shell using make-shell or by creating a custom PsHost. An then there's these interesting registry keys: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Powe...
5 23.05.2007 20:24:01
Locate Username on network
I would like to search the logged-in users for a UserName and return both the UserName, IPAddress, and ComputerName (MachineName I believe). I have been try to accomplish this in various ways from the command line in PS for about a week and haven't succeeded yet. Any suggestions? Thanks. -- J. R. Wade Manager of Information Technology Office of Criminal District Attorney Hidalgo Cou...
15 23.05.2007 20:20:57
Re: Variable arguments and argument types
[QUOTE] ..NET doesn't treat a variable as a discrete entity; it's just a pointer to a "real" object. There's no way to tell it's a variable because a variable isn't a "thing." These aren't the droids you're looking for. Move along. Even in a cmdlet, you wouldn't be able to tell the difference between a literal and a variable because the cmdlet's properties are just getting *objects*...
1 23.05.2007 20:16:44
Re: Variable arguments and argument types
[QUOTE] ..NET doesn't treat a variable as a discrete entity; it's just a pointer to a "real" object. There's no way to tell it's a variable because a variable isn't a "thing." These aren't the droids you're looking for. Move along. Even in a cmdlet, you wouldn't be able to tell the difference between a literal and a variable because the cmdlet's properties are just getting *objects*...
1 23.05.2007 20:15:43
Re: Variable arguments and argument types
On May 23, 8:37 am, Chris Warwick <n...@remove.this.bit.nuney.com> wrote: > I want to write a script which will process a variable number and > variable types of arguments - so I want to be able to call my > script/function like: > > foo "some argument" "another argument" $a 6 $b "arg string" > > ...and be able to pull off the individual arguments (easy with $arg...
1 23.05.2007 20:12:15
Suppress output from a command line tool
I'm writing a script that wraps nslookup to gather DNS information from multiple servers so I can confirm that they are in agreement. Unfortunately, when nslookup runs it always returns the following error for each lookup that I can't seem to suppress. *** Can't find server name for address 204.74.113.1: No information How can I get rid of this? Here's a sample NSLookup command tha...
7 23.05.2007 19:55:42
Re: select-string exceptions
On May 23, 2:45 pm, cmyers <cmy...@nrao.edu> wrote: > Can someone suggest how to capture the "exceptions" to the select- > string statement? I want to search through a text file and see only > the lines that do *not* have a certain string in it. > > For instance, consider: > > input.txt > ------------ > abc > def > geh > ijk > > I want...
1 23.05.2007 19:10:16
Re: select-string exceptions
Nevermind...I just found it on another post: PS> gc input.txt | ?{$_ -notmatch 'def'} -Charlie ...
1 23.05.2007 19:09:31
Re: select-string exceptions
Nevermind...I just found it on another post: PS> gc input.txt | ?{$_ -notmatch 'def'} -Charlie ...
1 23.05.2007 19:09:20
select-string exceptions
Can someone suggest how to capture the "exceptions" to the select- string statement? I want to search through a text file and see only the lines that do *not* have a certain string in it. For instance, consider: input.txt ------------ abc def geh ijk I want to view all lines that do *not* contain 'def' for instance. I would think that there would be some variation of the select-...
2 23.05.2007 19:07:17
Help a newbie
I'm trying to learn Powershell (reading Powershell in Action right now) but I am struggling with some of the basics and running out of time for a script I need. I want to find all files with a certain extension on a share and output the results in a nice format that contains the path, name, size in MB, and last access time. So far I have: get-ChildItem -recurse -include a_*.nsf | Out-Fil...
7 23.05.2007 17:12:30
Hide a Windows form
Hello, I have a powershell app that i'd like to hide/show with a systray icon menu. Unfortunately, My script quits as soon as i call the Hide() method of the form. I'm not really experienced in .NET windows classes, Perhaps the problem doesn't involve powershell at all. If so, feel free to redirect me toward the good group. Here's the main structure of my script : ----- cut here ----...
5 23.05.2007 16:38:07
split works much different than expected
Hi, I am trying to get the error codes from a file but split seems to work much different than I expect. ie, my file error_log contains: cmd.exe exited on testserver with error code 1603. when I try to do a split ie. $testerr = get-content error_log | where($_ -match "error code"} if ($testerr){ ($one,$two)=$testerr.split("error code") "one: $one, two: $two" } I get really str...
6 23.05.2007 15:28:54
Channel 9 interview of Bruce Payette
http://channel9.msdn.com/showpost.aspx?postid=309510 Enjoy! -- Jeffrey Snover [MSFT] Windows Management Partner Architect Microsoft Corporation This posting is provided "AS IS" with no warranties, no confers rights. Visit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShell Visit the Windows PowerShell ScriptCenter at: http://www.microsoft.com/technet/scriptcenter...
1 23.05.2007 14:14:09
Call Powershell script from ASP.NET page?
It is possible to call a powershell script from an ASP.NET page? Thanks, Tim ...
2 23.05.2007 12:55:20
Howto: pass all args to a sub function?
Hi all, Is there a secure way to pass $args in one function to another function as it's arguments? Like "call foo.cmd %*" in cmd.exe? Right now, the only way I can find is via Invoke-Expression, but I get the feeling I am opening up for an injection attack by using that. Passing $args as a parameter gives me (as expected) one array argument in the called function. I'd like some w...
4 23.05.2007 09:48:39
empty entries in array
Hi what would be the easiest way to get rid of empty ("") entries from the end of an array? thanks ...
6 23.05.2007 09:45:49
PowerShell Form Converter (C# to PS)
Hello every PowerScripters ! The French PowerShell-Scripting's Team is proud to announce a new script to convert C# forms from Visual C# 2005 Express to PowerShell's forms. It's now ultra easy to create complex forms with an IDE an to convert them in PowerShell. It's completly free, so rendez-vous to : http://translate.google.com/translate?u=http%3A%2F%2Fwww.powershell-scripting.com...
16 23.05.2007 08:54:01
are there tutorial on string processing with power-shell?
I am new to power-shell and find it hard to follow. Are there step-by-step tutorial showing how to use it for string processing? Thanks....
11 23.05.2007 00:30:18
command cursor "disappear"
An odd question I know but in my keyboard settings I down the "Cursor blink rate" to None and it's all good but in any command window there is no cursor (until I move the arrow keys), I am using XP and try that on several computers with the same results. anyone have any idea to workaround that? ...
2 22.05.2007 21:31:15
If this is an error how do I report it
It appears that either the Get-Member definition is incorrect or the parameters are switched on the System.String Method Substring: Substring Method System.String Substring(Int32 startIndex), System.String Substring(Int32 star... 9# $a = " abcdefg " 10# $a abcdefg ....[other tests] 17# $a.substring(3,6) abcdef 18# $a.substring(6,3) def 19# Am I cor...
6 22.05.2007 18:52:00
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