Passing parameters to Invoke-VMScript (variables) PowerCli
I am trying to use Invoke-VMScript to set new IP's on a list of servers. The only access that I have to these servers is through vCenter console, so I thought this would be easier, faster, and less...
View ArticlePowershell Script to Search For a String in Multiple Log Files
This article provides a Powershell Script to search for a specific string in multiple log files using a PowerShell script.Read More
View ArticleSelect-Object, I am selecting Two properties, one is a Multi-valued property.
I was hoping that someone could help me format the output so that it is something similar to this Group Name MemberofGroupA GroupCGroupA GroupD...
View ArticleOpen All Web Apps in Internet Explorer Using PowerShell
Hi Admins, I am working on a Script where I should be able to launch all the web applications in the browser to open in tabs. I have worked out with the following script and was able to come upto an...
View ArticlePOWERSHELL: More Vs –Paging in PowerShell
More is an alias of cmdlet Out-Host –paging whereas –paging is a parameter of Out-Host cmdlet which restrict the output to display per page. You can press space key to go to next page and “Q” key to...
View ArticleAzure PowerShell – List all VMs that are using a specific VNet subnet
I recently had a query from someone on how-to list all the VMs in a subscription that are part of a subnet. The following script will do this for you:Read More
View ArticleSetting Available Page Layout to Existing Sites using PowerShell
In our project we had a requirement to available new page layout along with the existing available page layouts. Basically we need to update the available page layouts. Since we need to make page...
View ArticleHow to Enable ItemScheduling for Pages Library in SharePoint 2013 using...
In this article, let us see, how to enable the “Item Scheduling” in SharePoint 2013 Using PowerShell.Read More
View ArticleHow to use Powershell script to unmanage the multiple nodes
I am trying to use PowerShell script to unmanage the testweb5 and the testweb6 nodes in Solarwinds using for loop. I got something below but I am not sure of the syntax. Please help ...For ($i=5;...
View ArticleStart-DscConfiguration Error: The object contains an unrecognized argument:...
I'm trying to push a configuration to multiple nodes: Start-DscConfiguration -ComputerName $servers -Path '.\SomeDir' -Wait -Verbose I get the following error:The WinRM client cannot process the...
View ArticleAzure OpInsights: Collecting Text Log Files with a custom PowerShell Script
This post demonstrates a way to collect text log files to Microsoft Azure Operational Insights (OpInsights) using a PowerShell-based collection rule or workflow in OpsMgr. This post was inspired by...
View ArticleBitlocker status
hello all,I am trying to write script that will check bitlocker statues on a system, then report if its Encryted or not. this is what I came up with so far, it compiles fine but the statue it reports...
View Articlehow to copy folders in a drive to cd
Thanks for taking the time to read my question. I'm new to Powershell (started today). I've watched many video presentations and read as much as I can.Q: Is powershell meant to be used to backup...
View ArticleParsing String with REGex
Hello,I am capturing the output of Get-WMI and applying REGex $OS=Get-WmiObject -ComputerName $Computer.DNSHostname -Class Win32_OperatingSystem -ErrorAction Stop | Select...
View Articleadd text to the end of a string
I have a .txt file that has hundreds of machine names. one per line. I need to add our domain name to the end of each machine.from: PC01234to: PC01234.Acme.comI've tried the Add-Content but it...
View ArticlePopulating a form field with values
Hi,I have a script to try and complete the objectives below:1. Enter a username into a form field2. Have "Find" button search a SQL database for the user and its information3. Store the user...
View ArticleMySQL ODBC Connection Failure
$connection = New-Object System.Data.Odbc.OdbcConnection$connectionString = "Driver={MySQL ODBC 5.2 ANSI Driver};Server=$server;Uid=$uid;Pwd=$pwd;Database=$db;"$connection.ConnectionString =...
View Articleoutput for P/S
Hello,I am trying to figure out a way to output text lines into a window for a status display from a form.I have tried Output-* command and they dont really do what I want.I have tried Message-Box, but...
View ArticlePowershell script to show whether a user is part of a group that I specify
I am trying to write a script that will show if a user is part of a set of groups that I specify. What I have been able to do is write a script that will show if a user is part of a single group. When...
View ArticleWindows 2008 Server Roles
Is there a powershell script that I can pull the server roles from my Windows 2008 Servers? I am able to use the Get- WindowsFeature for my 2008R2 and 2012
View Article