PowerShell in Hyper-V 2008 R2
Hyper-V Server 2012 may be the focus on all the blogs out there now, but 2008 R2 still has a large installed base and is likely to have it for some time. In addition to the expansion of PowerShell to...
View ArticleHow to Export and Import PowerShell Scheduled Jobs
In previous articles I’ve written about how to export scheduled tasks and import scheduled tasks in PowerShell. In those articles, I made mention about the potential downside to exporting and importing...
View ArticleDelete Rows in Excel based on a value in a particular column
Hi all,I'm trying to delete rows in an Excel SpreadSheet based on values such as begins with 'A*' in a particular column. the problem is that I can't figure out what the property is to delete rows and...
View ArticleVHDResizer, PowerShell commands and other methods to resize VHDs
During a physical-to-virtual conversion, you often need to resize hard drives and virtual hard disks. Avoiding storage bottlenecks is paramount to the success of the migration, but the Hyper-V disk...
View ArticleCannot load type from command line or script or ISE but can from PowerGUI...
Hello,Can someone please help me with the following question.I have .NET 4.5 installed From PowerGUI if I do...
View ArticleModifying the web.config
I am wanting to write a powershell script to change our web.config.specifically change to the appsettings but I don't seem to be able to select the correct key <appSettings> <add...
View ArticleMap drives based on AD Membership from a non-trusted AD domain
Hi guys,I'm fairly new to scripting and hope you can help. I am performing data migration between 2 domains (Domain A & Domain B) that aren't trusted. I need to map drives to the new domain B...
View ArticlePowerShell Plus 4.7 SP1 is now available
Idera just released PowerShell Plus 4.7 SP1. You will see that the update is available next time you start PowerShell Plus.Not a PowerShell Plus user? What are you waiting for? The price couldn't be...
View ArticleComparing folders & determining what is different
I have a couple different powershell scripts that neither of which suits exactly what I need to know about two folders I am comparing. I want to compare the two in order to determine which one is the...
View ArticleHow can I make this command shorter?
Get-WMIObject -Class Win32_ComputerSystem -Computer "COMPUTERNAME" | Get-Member | ? {$_.MemberType -eq "Property"} | % {"$($_.name) = $((Get-WmiObject -Class win32_computersystem -computer...
View ArticleNewbie Scripter College Question need help please
If someone could just point me in the right direction as to how to write this script, I would greatly appreciate it.Q: Write a script using the switch statement to prompt the user for a favorite fruit....
View ArticleIs it possible to add and element to a foreach loop while looping the elements
Hello All,I wounder if the following is possible as I have a situation where this would be useful.let says I have a variable called $ListOfFiles that reads in a text file containing the names of 8...
View ArticleCopy directory structure with access permissions
This seems like a fun one. I have a user share that has a folder for each one of my users that only they have access to. When I run Get-Childitem -Path \\Server1\users -directory, I get a list of all...
View ArticleCopy File with alternate credentials
HiIm looking for a way to copy a file to a destination with alternate credentials.so far I couldent find a better way then mapping network drive. Plz help Naihan
View ArticleProcess only unique xml files found, which don't match ConfigurationID
Hi All,I do a search for xml files in a dir which contain the following inside each of them, and place them into a variable $xmlpath:<?xml version="1.0" encoding="utf-8"?><Configuration...
View ArticleAudit Script
Hi,I'm having problem with a script that is a simple WMI Inventory script that searches Active Directory for computer accounts and tests the connection and should go through checking wmi queries the...
View ArticleEureka Moments in PowerShell
By Jeffrey HicksOne of PowerShell's strength's over other scripting tools like VBScript, is that is easier to discover what you can do. I love discovering a command or part of a command that I didn't...
View ArticleWindows Azure PowerShell – Getting Started
As per command line tools, almost all operations that are performed on the Platform can be done using Rest API and PowerShell. Windows Azure PowerShell releases are very frequent.Read More
View ArticleUsername Creation
Team, I am trying to develop a function for my account creation script that creates the username.as of now this it what i have. ### Creating Username And Validation Test Function ###...
View ArticleComplete Newby - TSM & dsmadmc.exe
I'm trying to write a script to generate reports from TSM using the built in SELECT statements.Below is what I have that works, when running manually. # First set working directory so it can...
View Article