Using -SearchBase to search AD using powershell
I am using powershell to search active directory but I can seem to read the child OU's. Under "US" in active directory there are cities. For some reason the line below only returns the first city...
View ArticlePowerShell.Streams.Warning is not being capture in c#.
Hi All,PowerShell.Streams.Warning is not being capture.I'm using powershell version 3.0.I used the below code to capture warning & errors, error works well , but not warning. It seems I'm missing...
View ArticleConvert HTML file/table to XML/Excel
Hi,I am using a script to export mailbox audit log, but it is by default generating the report in HTML, Our requirement is to generate the report in CSV or in Excel file and also wanted to put a date...
View Articlepowershell query OU and check folder existence
I want to run a process that will create server folders for all of my users. I know i can user get-adusers to pull the samaccoutnname to pull the name i want to create for each folder but i want to...
View ArticleNeed help with Read-Host
I have a script that installs java. In the script I have a line of code that works properly:$sb={ Start-Process 'C:\Temp\jre-7u25-windows-x64.exe' -ArgumentList '/s' -verb runas -Wait}It starts a...
View Articlehow to replace two or more consecutive whitespace characters with a single...
How to replace two or more consecutive whitespace characters with a single space character using PowerShell?
View Articleimport-csv multiple files form one folder
Hello,There is a way to import multiple csv file into one and parse them? Or how to import multiple different csv file?I have a task to accomplish. In one folder have multiple file in csv format with...
View Articlewmi filter only works when negated twice
Has anyone ever saw this before and/or do they know whats causing it? When i try to run the query with the filter of 10.1.% it doesn't return anything. But when I negate the filter twice, I am...
View ArticleCreate HTML output from results
AfternoonI am hoping someone could point me in the right directionDuring the day i run a basic script which checks specific folders on the network and outputs results to a text file, its a fairly...
View ArticleReset Multiple users' passwords with unique passwords
We are migrating several domains into one new domain. Each domain will be in its own OU in the new domain. We would like to reset passwords for all users in the OU to a unique password for each user....
View ArticleModifying results from New-QADUser, Add-QADMemberOf, and Set-QADUser
Hello all,I have created a Powershell script to create new users and it is working without issue. I now have it logging the script and am wondering if there is a way to not show or alter the results...
View ArticleChange default opening program on multiple servers
Hi all,I've a .opt file, which happens to be configuration file for backup. this files opens with notepad but we always have to choose the default program to notepad.I want to set the default program...
View ArticleGet-Help : A parameter cannot be found that matches parameter name 'showwindow'.
I've updated to PowerShell version 3 on my Windows 7 SP 1 system. When I tried to run PS M:\> get-help get-service -showwindow Get-Help : A parameter cannot be found that matches parameter name...
View ArticleHow to check the availability of a site using powershell
Can anyone suggest how to check the site availability, I mean sites are loading fine using powershell
View Articleregenerate SQL logins
I'm trying to use PS to enumerate all databases on a sql 2008R2 server and, for each database, generate the corresponding logins and permissions on new domain after migration my server via ADMT. I got...
View ArticlePowerShell for creating TFS build definitions
I am working on a powershell script that will create TFS build definitions. I have used below example as my starting...
View ArticlePowershell rename computer error missing ')' method call.
I have this powershell command to rename a computer name based on the 2 variables I set. But when I try to execute, it throws an error, missing ')' in method call.(Get-WmiObject...
View ArticlePowershell Trendline Line
I have a Bar graph I created from Powershell, and i want to create a "Trendline" ~I think it may be called. As shown below, I want a straight line based on a calculated AVG . I have 100 computers...
View ArticleWindows 7 and Office 2010 Activation
Hi,Is there a way to activate Windows 7 and Office 2010 without a KMS in place. I have the licenses and would like to create a script to automate what is currently a manual process with the Office...
View ArticleCan I use powershell to do this?
I am looking for a way to automate the following scenario. I have a server running Visual Basic and a couple of clients running Visual Studio (C++) that talk to the server. I want to use powershell to...
View Article