powershell regex alot of similar words, how to short result
Hi,So i was thinking of pulling powershell forums and selecting only topics thats have 0 replies, the problem is the words are repeating and its grabbing a bigger range of different posts then whats...
View ArticlePowerShell 3 update-help (proxy issues?)
I am running the PowerShell 3.0, as an admin, but update-help is not working. I suspect it does not know that we have an outbound proxy that requires: port, host, username, password. However WinHTTP...
View ArticleInserting data to mysql database?
I'm pulling a string from a text file and splitting that string into 3 strings $filename, $date, $time. Then I'm trying to insert those strings into a database.$query = 'INSERT INTO page...
View ArticleHow to Loop Through Central Management Server in SQL Server 2012 Using...
I am trying to learn PowerShell. I want to use it to gather information from a Central Management Server and input the information into a table in a database. In Windows PowerShell ISE I am trying to...
View ArticleTracking if file renames work or not
Brand new to Powershell... :)I'm working on automating some steps that we do that involve renaming a whole bunch of files. I want to code it in so that it can just go through and rename them all, but...
View ArticlePowershell script erroring with PSSecurityException only 5% of the time
We have a ps1 script that simply checks for log files over a certain size and emails us. It runs every five minutes 24/7. It usually works but about 5% of the time we get an error ( + CategoryInfo...
View ArticleExchange Message Count
Hi There,I am using the cmdlet below to extract the number of messages received by a users in Exchange 2010. it works fine and give me the message count however I cannot find a way to output the...
View ArticleSql Server connectivity and script execution using Powershell
Iam designing a powershell script that can execute some sql scripts that is placed inside a folder. Actually this must be done remotely. I am able to connect to the particular server remotely using...
View ArticleScript Pane on Left PowerShell 3.0 ISE
Hi,Is there a way to have script pane on the left in Powershell 3.0 ISE ?I can either have it maximized, on the right or on top
View ArticleAzure Powershell module not connecting to any service
I created a free trial subscription in Windows Azure, and installed Azure Powershell module in a Windows server 2008 machine.I download and import my publish settings file executing the following...
View ArticleImport Users via PowerShell to AD using CSV
Hi Guys,I am trying to import users from a CSV into active directory. I have the following script but it doesn't do anything.Import-CSV "C:\PowerShell\User\import\Intake2013.csv" | ForEach-Object...
View ArticleInbox mail count
I need to identify the number of mails in each inbox folder of every mailbox on exchange 2007.This command outputs the number of items. However, this is different to the actual number of mails in each...
View ArticleAutorun a script from Powershell Web Access
Hi Guys,I am looking at building a powershell app within the Powershell web access tool. I have got the Powershell web app working and am managing to populate the fields required (except for the user...
View ArticleFile in use question from script
When I run my script there is a piece after the email ... I used a comment to show line that always gets a file in USE or in use by another process. I want to after each file I process move it to an...
View ArticleArray to write into files by splits
Hi, I have an array that contains around five-hundred-thousands values (sorted by numbers). I want to get the value from the array and writing values by splitting into multiple files. My conditions...
View Articlepowershell Test-ComputerSecureChannel -Credential
Hello, I'm runningpowershellon windows7 andhavev2installed, but Icannot run the Test-ComputerSecureChannel-credential cmdlet. -credentialdoes not exist? Servethisonlyin powershell v3?
View ArticleWildcards in "-replace" operation
Hi there,maybe someone here can help me. I've following code and my problem is that the "*" in the 3rd row isn't identified as a wildcard.$name =...
View ArticleSome Storage CMDLets do not work under WinPE
I have built a custom WinPE based on W2012 and included Powershell and a number of the Powershell CMDLets such as SMB, DISM, and Storage. Everything works fine. When you boot the WinPE disk and do a...
View ArticleAD-search-ADAccount -accountinactive -timespan 90 capturing active accounts?
Hi,I run the above command to get the accounts that have been inactive for over 90 days in our domain, but its sometimes returning accounts that have logged in only a few weeks ago.Does anyone know why...
View ArticleExchange 2003
Hello,I have prepared a script which brings the result of mailbox size for all the user in exchange 2003, but I am unable to do that by using the input file for the specific users. Please help.$Names =...
View Article