How can I color a column in PowerShell output?
Hi guys,I was wondering if it is easy to give color to specific Powershell output, in this case a column of values.Let's say I do get-service. Can I somehow conditionally color the output's status...
View ArticleUpgrade difference from 2003 server to 2008 server and how it effects PS Script
About 18 months ago I wrote a little script that creates a shared drive for a new employee as part of a program. It worked GREAT for the Windows 2003 server. Last week we upgraded our main storage...
View ArticleEnter-PSSession: WinRM cannot process the request, Kerberos authentication...
Hi!I've configured PowerShell Remoting on the server using Enable-PSRemoting commandlet.But when I'm trying to connect to the server I'm constantly getting the following error:PS C:\Users\sergeyp>...
View ArticleSelect-string -patttern
I am trying to search for lines containing the word BYTES(0). I am issuing the command select-string -pattern "BYTES(0)" -path d:\. The command executes but there is no output.
View ArticleActive Directory Query for Active XP Machines
Like many IT Pros I'm tasked with our migration plans to get all XP machines off our network before they go EOL from Microsoft. I've found a script online (and modified to fit my needs) that looks at...
View ArticleCompare lines in an excel file?
I have an excel files that is automatically generated that has 45 rows of text starting at A3 and ending at A48. I want to compare each line with the other lines in the same excel file and if they...
View ArticleWeb Interface for Powershell Scripting
I am looking to design an internal website with certain administrative functions like common exchange powershell scripts that we run and things like that. I would like to make a nice interface for...
View ArticleScript to query if an AD user has a roaming profile configured.
I need a script that will query all active users in a 2008r2 active directory environment and check whether or not a roaming profile was configured. I am a newbie when it comes to scripting so if...
View ArticleDisabling Wireless Adapter
I want to run a Powershell Startup Script to disable the Wireless adapters on some systems. I thought I'd want to get some WMI stuffGet-WmiObject -Class Win32_NetworkAdapter -Filter "Name = 'Intel(R)...
View ArticleSecure way of changing 1000 local admin accout passwords.
Hello,We have 1000 machines that we need to change the local Admin password on. The one thing is it HAS to be done securely no cleartext sent. I know GPO is insecure because the key file is kept in the...
View Articlesearch event logs for specific keywords, output to CSV
Hi, I need to do the following: Search multiple servers' event logs for multiple IP addresses and hostnames, then output any "hits" to a CSV file, where one row will contain all the properties for...
View ArticleMy first attempt at writing a usable script.
So I embarked on a task, to write my first powershell script. I am in the learning stages and could use some help.What I am seeking help with:Querying a local computer for information.Accept a...
View ArticleHow to convert String values in CSV format in Powershell
Hi Experts,Is there any way to convert String Variable storing xml data into CSV file in Poweshell?Or is there any way i can Convert this string variable value into XML?Cheers,Warm Regards Badal Ratra
View ArticleExecution Policy on Windows 7 Clients for PowerShell Startup Script
I need to deploy a Powershell script via GPO and I'm wondering if I need to change the Execution Policy on all our clients before the script will run. Seems like I should have to but I'm new at...
View ArticlePowershell variable across multiple sessions
I have WCF service which is hosted as windows service on multiple machine in a distributed environment.Now I am using Powershell to consume this WCF service as follows:$wcfConnection =...
View ArticleUsing module dll in c# 'natively'
Hi,I'm trying to figure out if what i'm thinking of doing is normal or crazy.I'm working with a module (from netapp) and I want to build a tool which invokes the cmdlets without having c# invoke...
View Articlecopy-item with write-progress
Is there anyway to add a progress bar to my copy block?$SQLVERSION = Read-Host 'What Version of SQL do you want installed? Enterprise or Standard?:' $mediaENT = "SOURCE" $mediaSTD = "SOURCE" $LocalENT...
View ArticlePassing SharePoint List values to DataSet to build email in Powershell
Hi, I'm new to powershell and SharePoint... I'm creating script to generate an email body and send it to the assignee. Currently we don't have VS2010 so the only way i can do this that i know is...
View ArticlePositionalParameterNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
Hi all, I have new to PS and trying to run a powershell command, which is giving me error. Please let me know what I am missing here. I am having trouble to run the script to create folders and...
View ArticleIs Export-PSSession saves credentials?
Hello,Is Export-PSSession to module saves session credentials? Any comment would be greatly appreciated. Thank you!
View Article