Please update
Can some please update/correct the below. I am new to this. Please help(dhingraamit@hotmail.com)Thanks $ErrorActionPreference="SilentlyContinue"Stop-Transcript | out-null$ErrorActionPreference =...
View ArticlePlease help
Please help and correct/update the below as I am very new to this(dhingraamit@hotmail.com)Thanks <Exec Condition = $Configuration)==testcurrent Command="PowerShell -command...
View Articlemerge 2 variables as csv
hi powershell.com i trying to Consolidation of two separate line as parallel lines.... my English is no so grate Background story:I use psgetsid on all computer i got from this software Ad tidy (with...
View ArticleSend Multiple Outputs to same HTML in Powershell
Friends,Can you please help me with PowerShell script to Send Multiple Outputs to same HTML (in a single table stretch) in PowerShell . I have a made a script , but it gets the details in Different...
View ArticleNeed Assistance Using the Printing All PDF FIles Script
So i am building my first powershell script and ran into a hurdle. In short, when i print the pdf files in the script below, it is printing out two files that i opened in the past instead of the files...
View ArticleIs the below syntax correct
I am trying to call a PowerShell script from within MS Build. Also maybe use the execution policy unrestrict.Can you go line by line with the full correct syntax <...
View ArticleIs this a bug with function definitions?
Can anyone explain why the below code works when saved as a script?function Get-Test { Write-Host "In function"}TestThe call to the function should be Get-Test. The above code should generate an error...
View ArticleHow To Ping the Serves From List and Parse the Output to Store Selected...
Hi there!Would you be so kind to compose a PowerShell script which does the following? I am trying to do it by myself, but having really hard time with it :(1.There is a file which contains a list of...
View ArticleDifference between workflow and module
Hi,Can anyone please explain what is the diff between workflow in posh 3.0 and module? As far as I know, the series of commands can be grouped together as workflow. when ever needed, we just call the...
View ArticleNeed to delete the unwanted columns from excel
HI There,I am trying to delete unwanted excel columns from the excel file and to display that in HTML file, i am trying to test it the powershell window closes with out any error. and my script is #...
View ArticleIssue with ForEach cmdlet
Working on a script with the code pasted below. I am getting a message"cmdlet ForEach-Object at command pipeline position 2 Supply values for the following parameters: Process[0]" If I enter a value...
View Articlemerge 2 files with powershell?
I have 2 filesA.txtthis is a test line 1 A fileThis is 2nd line A fileThis is end lines A file B.txtThis is 1st line B file This is 3rd lines B fileThis is 4rd lines.....This is 1000 lines+ in B...
View Articlemodify content of an xml
Hello,I'm new to Powershell and this forum and I'm hoping somebody can help me.I have an XML file that I need to remove the time from two lines. The date and time vary throughout the file so I cannot...
View ArticleRemote Run CMD file to install applications
I have added the following lines to a powershell script. When I run it I get the following error. Any help would be greatly appreciated. Thanks.Code:psexec.exe -s \\Computername...
View ArticlePowershell Installing
I have a powershell script that runs an installation of an application. I deploy this application with SCCM. SCCM executes the scripts as "SYSTEM" My problem is that the setup.exe won't install...
View Articleneed help on -replace with double quote
Hello, the following code is not working due to the dot (.) : $configFiles=get-childitem . *.xml -recforeach ($file in $configFiles){(Get-Content $file.PSPath) | Foreach-Object {$_ -replace...
View ArticleSearch registry DATA and get output KEY NAME?
Can we write powershell script to enter DEVID DATA and we will get an output of Key Name location?Like searchpath.ps1 06FDWhere VALUE "MatchingDeviceId" = DATA "ven_10de&dev_06fd"and get output:...
View ArticleNavigate through IE
Hello,I am very new to powershell and have little clue on exactly what I am doing. I am trying to navigate through a webpage but I am having some difficulties. The html code calls a lot of javascript....
View ArticleSuch an easy task - Why can't I figure it out? Launching an EXE on a remote...
Hi All,First post, new member and very much a beginner at PowerShell.I want my PowerShell script (v3) to launch an EXE on a remote machine under specific user credentials. This application launches a...
View ArticleIf file exists, copy specific text from source file to file that already exists
I want to start by saying sorry if this question has already been asked, and if it has been asked in a better way! I've been searching all day but just can't find the answer. I'm also new to...
View Article