Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

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

HTVi
TV Discussion Newsgroups

Threads Replies Last Post
44 Pages: <<  7  8  9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25  26  27  28  29  30  31  32  33  34  35  36  >>  
Geting the real text from a SharePoint wiki.
We want to be able to generate and post our company policies and procedures in a SharePoint wiki. The only problem with storing this information this way is, we also want to be able to deliver this documentation off site in a format that can be used off of the SharePoint site (like Word or HTML). Now I have been able to connect to the Web Service (using get-webservice2.ps1) that feeds the w...
1 10/9/2008 7:09:51 PM
Pipe compare-object results into something useable
I'm sure this can be done but I don't know where to start... This will eventually make it's way into Exchange Management Shell. What I need to do is compare two text files that contain email addresses, one per line. If file A contains an email address that file B doesn't have, add it as a contact in AD. If file B has an email address that isn't in file A, remove its contact from AD. Then over...
8 10/9/2008 1:15:55 PM
How to output a powershell into a sql server 2008 table
Hy all, my english is veru bad so i try to explain I get this script in the net and works percetly [reflection.assembly]::LoadWithPartialName("Microsoft.SqlServer.Smo") | out-null foreach ($svr in get-content "C:\AllServers.txt") { write-host $svr $srv=New-Object "Microsoft.SqlServer.Management.Smo.Server" "$svr" $srv.jobserver.jobs | where-object {$_.lastrunoutcome -eq "Fail...
1 10/9/2008 12:29:01 PM
Remote process
How can I create a process on a remote computer using Powershell v1? ...
3 10/9/2008 11:49:04 AM
Does Vista home Premium Edition Support PowerShell 2.0 CTP2 Remoti
I am trying to set up PowerShell 2.0 remoting so that I can run background jobs. But I run into errors when I execute Configure-Wsman.ps1. I am running Windows Vista Premium Home Edition with SP1. WinRM is running. My PowerShell session was started using Run as administrator. I have PS 2.0 installed and .NET 2.0 is installed. When I execute: & $pshome\Configure-Wsman.ps1 I get... ...
5 10/9/2008 11:47:38 AM
Need info on how to escape double quotes
Hi, We are developing PowerShell cmdlets and stumbled upon a problem with double quotes escaping. We are using CreateProcess method to start powershell process and run a nested powershell process in it. The arguments that we pass to powershell.exe are the following: ------------------------------- -NonInteractive -Command & {powershell.exe -NonInteractive -Command '& {"aaa" -eq "bbb"}...
3 10/9/2008 10:07:55 AM
Powershell with exchange 2007 - Add-PsSnapin
I know Exchange 2003 do not support powershell, while exchange 2007 does. I m using Exchange 2003. Can i at my XP workstation, install the exchange 2007 client tools and then do the typical add-pssnapin command (after open powershell on xp machine), and then manage Exchange 2003 ? ...
2 10/9/2008 8:56:01 AM
powershell newbie help
Hi all, I am relatively new to powershell, so please bear with me here. I would like to write a simple PS script that searches within a given folder, finds a text file (.txt) that was most recently modified and then copies it to another network folder location. Is this possible? Can someone point me in the right direction? TIA! ...
4 10/9/2008 12:48:51 AM
How to write a script to process it as a task?
I wish to use a PowerShell script to automate an application in my network-neighborhood. All the equipments must be closed at end of the backup. By example, if I use a Perl-script or Python-script, only put the .pl or .py file into the folder that contains the tasks, and point the task manager to it. Works! My problem is that I don't know how to do it with PowerShell script. The .ps ...
2 10/8/2008 5:49:57 PM
Using System.Net.WebClient and no cache
I've written a script to grab a web page but I need to ensure the page is not cached and test.html is the latest version: $url = "http://www.example.com/test.html" $webClient = new-object System.Net.WebClient $output = $webClient.DownloadString($url) I see that System.Net.WebClient has a CachePolicy property, but I don't really know how to implement it in this example. Any ideas?...
4 10/8/2008 5:23:01 PM
return data from function
I am trying to return a dataset from a function buy i seem to be having trouble. function BkupHist ($computername){ .. .. $SqlAdapter.SelectCommand = $SqlCmd $DataSet = New-Object System.Data.DataSet $SqlAdapter.Fill($DataSet) $SqlConnection.Close() Clear return $DataSet } $test = BkupHist if i type $dataset.Tables[0] within the function I have data but I get the following err...
4 10/8/2008 2:34:07 PM
msh script to receive keyboard inputs?
Dear Newsgroup, how would a script look like to receive keyboard inputs and pipe these to another process? Further, the script should receive the inputs even if another window has the focus, or equivalently, have this shell always retain focus, even when minimised. >Any suggestions are very much appreciated! Thanks Elke...
4 10/8/2008 2:25:22 PM
Saving keyboard input into variables
I searched all over for this, and so far I have only figured out how to save a keystroke into a variable. I am writing a script where I will need to save a server name in a variable to reuse this variable later int he script. How can I prompt to type a word and then have it save in a variable ?...
6 10/8/2008 1:23:03 PM
generel question about console in Windows Vista - very slow output
Hi, compared with Windows XP the Windows Vista console output is very slow. Is there any way to speedup (without changeing the application that writes to console)? greetings Carsten -- ID = 0x2BFBF5D8 FP = 53CA 1609 B00A D2DB A066 314C 6493 69AB 2BFB F5D8 http://www.realname-diskussion.info - Realnames sind keine Pflicht http://www.spamgourmet.com/ + http://www.temporaryinbox.com/ -...
14 10/8/2008 1:17:49 PM
Multithread scripts in Powershell
Hi, Is there anyway to create and execute Multithreaded scripts from powershell. Thanks, Aditya...
3 10/8/2008 1:01:01 PM
How can I browse a file?
Hi, I can use this script to browse a folder and save it in a variable. $Shell = new-object -com Shell.Application $ssfWINDOWS = 17 $objFolder = $Shell.BrowseForFolder(0, "Sample", 0, $ssfWINDOWS) $objFolder How can I browse a file use Shell.Application and save it in a bariable? Thanks! MG ...
2 10/8/2008 12:04:54 PM
Need info on how to escape double quotes
Hi, We are developing PowerShell cmdlets and stumbled upon a problem with double quotes escaping. ::We are using CreateProcess method to start powershell process and run a nested powershell process in it. The arguments that we pass to powershell.exe are the following::: -::-NonInteractive -Command & {powershell.exe -NonInteractive -Command '& {\"aaa\" -eq \"bbb\"}' > \"C:\output.txt\"}::- ::T...
1 10/8/2008 7:28:29 AM
How to run a Command
Hello! I'm new to PowerShell, though I have years of experience in both VBScript and .NET development. I'm trying to get information out of my SourceSafe database, specifically, what all projects I have checked out. There's no easy way to do this inside the GUI, but running "ss Dir $/ -E > c:\ss_report.txt" at the command line dumps what I want to a file. No problems so far. I ...
4 10/7/2008 5:09:03 PM
Script Protection
Hey floks - Powershell (scripting newbie) - I have done some work with scripting, but I have never really learned how to script, just had some tasks that I needed automated and read a lot of posts to peice together some scripts. VB script, they work but one thing we could never work out is the question of script security. With Powershell, is there any way to protect the script from be...
3 10/7/2008 4:52:44 PM
PowerShell profile under domain account
I have set up a host-specific global PowerShell profile on my workstation. I've just noticed that this profile loads for my login account and when I RunAs into a local account, but not when I RunAs into a domain account. Is there any way to RunAs a PowerShell console into a domain account and still load the profile? -- David Stardate 8765.8...
3 10/7/2008 1:26:24 PM
How do I get the text?
24 $ie = New-Object -com InternetExplorer.Application 25 $ie.Navigate("www.myspace.com") 26 $ie.Visible = $true 27 $TextRange = @($ie.Document.body.createTextRange()) PS:>$TextRange htmlText text -------- ---- <DIV id=wrap class=wrap>... MySpacea place for friendsStatus: Mi... How do I get the text ins...
3 10/7/2008 2:23:33 AM
Remote command V1
Does anyone know the syntax to run remote commands in V1? invoke-expression seems to not have the -computername parameter in V1. Thanks....
5 10/6/2008 6:09:39 PM
Smal script for adding mailcalendarsettings in Exchange 2007
This script adds mailcalendarsettings for existing rooms in an ou. Thsi script can be modified to handle other things as well. # FILE: Addcalendar.ps1 # Author: Dag Klaestad # Version: 1.0 # Comments: This script adds calendarsettings for resources in an OU (input argument 0): # eg. ".\Addcalendar.ps1 'ad.local/OU/subOU'" $OU = $Args[0] $Users = Get-Mailbox -Organizational...
2 10/6/2008 4:28:00 PM
Retrieving VersionInfo for a list of file
I am trying to retrieve the file version information for a list of files (unsuccessfully). The objective is to find the version information on a list of file in a single user-defined path. In this sample, I'm attempting to retrieve the version of these files in the c:\windows\system32 directory, where installpath is the directory where the files are found. Should I be using foreach ...
2 10/6/2008 3:58:09 PM
find inactive computers
Can you tell me how to find a list of inactive computer accounts in AD with powershell? I know there is a lastlogontimestamp, but I am unable to find that using powershell. Ideally, I would like to find a list of inactive computers and disable the accounts. I have the quest software to search for AD computers. Thanks for any info!...
1 10/6/2008 1:55:01 PM
44 Pages: <<  7  8  9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25  26  27  28  29  30  31  32  33  34  35  36  >>  

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen