Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources: Active Threads
Browsing all 8411 articles
Browse latest View live

Make `n to create a new line for redirected output

HelloI have a string as below:$String = "Test1`nTest2"While printing to screen, I have 2 lines. But on redirection I get one line.Code: $String >> Log.logOutput for Log.log: Test1Test2How can I...

View Article


Results into array

Hello,I'm the below works fine but I'm trying to get the results into an array.Basically Write-Host $row.Item("Username") $row.Item("SizeMB"); gives me what I want on the screen but I need to get that...

View Article


Get process

hi by using this script i am getting process detail i.e as below  Get-Process | Out-File -Append c:\test.txtissue is i hve to run separtly in all severs one by one and which take lot of time. i tired...

View Article

delete only pst Files from Exchange Users

Hello, i'm trying to create a backup script for my exchange server. I want to export all mailboxes with these script. I have two folders with read/write permissions for the Exchange Trusted...

View Article

Creating MultiUsers with PS

HELLO ALL! I'm new with all this staff and i know some basic functions.i want to know how can i write script for creating users. i mean that when i run the script the PC just ask me for the FirstName...

View Article


Connect PowerShell to Oracle 7.3

I need to connect from PowerShell V2 or V3 to an old Oracle DB V7.3.Can I do this and what do I need?Thank You!!--Goo

View Article

Replace output csv from commas to zero

I have a script that outputs csv with number of user per app122,22,3,4,6Then it imported into sql table which works If the output csv contains commas instead of a number if fails because the sql table...

View Article

Run a PowerShell Command as a different user not the script

I am building a GUI to get-GPResulantSetOfPolicyI want to open the GUI as myself but run the following command as a User Account that is in the Domain Admins group. Here is my cmd for getting the...

View Article


Script WIll not Run as Scheduled Task

Hello,I have  script that runs fine in ISE but when I try to run it as a scheduled task nothing happens. I am trying to output the results of test-connection to Excel. The point of the script is to...

View Article


Compare Properties of an MP3

HelloI'm new to powershell, and I'm looking for an way to automate the following.I have 2 folders with mp3s (Folder1: "C:\MP3WithComments") and (Folder2:"C:\MP3WithoutComments"). As you can probably...

View Article

Turning on FTP Server

Now for my big task.  Some of you know that I'm writing a Powershell script to automate the Build of Windows 7 PCs.  I am pretty far along, done with most.  But the big one I need to tackle is the FTP...

View Article

Get IE Settings?

On a Windows 7 workstation if you go into Control Panel there is of course the Internet Options Icon.  If you double click on this icon you see all sorts of Internet Explorer information.  Using...

View Article

Reclaiming your inner-geek through PowerShell

But something happened recently that made me reconnect with that 25-year-old feeling. I was working on my latest course Configuring Exchange Server 2013 with SharePoint 2013, and I had quite a bit of...

View Article


SSIS 2012 - Using PowerShell to Remotely Execute File System Packages in...

In our recent articles published on this forum, we have been discussing different methods of executing SQL Server 2012 Integration Services packages deployed by employing the traditional Package...

View Article

SSIS 2012 - Using PowerShell to Remotely Execute File System Packages in...

In our recent articles published on this forum, we have been discussing different methods of executing SQL Server 2012 Integration Services packages deployed by employing the traditional Package...

View Article


Unexpected Results using WMI to query Offline Files

I'm try to list offline files on a remote computer running Windows 7 x64.If I execute the following command locally, I get expected results -- namely, a list of all the items in the local files...

View Article

Image may be NSFW.
Clik here to view.

Error "Split-Path : Cannot bind argument to parameter 'Path' because it is...

Hello,In C:\Users\Powershell folder, I a a script as ZZZ_Test. This script writes script's directory as below:$MyDirectory = (Split-Path $script:MyInvocation.MyCommand.Path) + "\""---> " +...

View Article


replacing file path

Hi, I am new to PowerShell.I have a .confi (XML) file in UTF-16 unicode with over 100 lines. I need to find replace the some tags where file path is incorrect.  I am able to find the file path store it...

View Article

Help Creating Backup script

Hi. I'm very new to powershell scripting but for a project I'm working on i think powershell would be the best solution to automate our backups. I'm trying to create a script that will back up folders...

View Article

Param cmdletbinding() full parameters list

Hi,Can anyone please give me the list of parameters in param, After we specify cmdletbinding(). As of now, I know only 4 parameters. please have a look at the below example.[CmdletBinding()]Param(...

View Article
Browsing all 8411 articles
Browse latest View live


Latest Images