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 ArticleResults 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 ArticleGet 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 Articledelete 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 ArticleCreating 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 ArticleConnect 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 ArticleReplace 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 ArticleRun 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 ArticleScript 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 ArticleCompare 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 ArticleTurning 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 ArticleGet 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 ArticleReclaiming 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 ArticleSSIS 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 ArticleSSIS 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 ArticleUnexpected 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 ArticleError "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 Articlereplacing 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 ArticleHelp 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 ArticleParam 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