Manage a domain from another domain & add a local user to the domain
Hello everyone ,Hope you could help me, i really dispair [:'(].I explain my case :- I have my computer which is in a domain and 2 servers (srv1 & srv2) in another one and they are in the same...
View ArticleAdvanced Tools & Scripting with PowerShell 3.0
After the Getting started with PowerShell 3.0 event on Microsoft Virtual Academy, Jeffrey Snover and Jason Helmick are back with another full day PowerShell training event. This time around, they will...
View ArticleUse PowerShell to Automate Site Collection Setup in SharePoint Online
In a recent blog post, I illustrated how to use PowerShell to bulk provision security groups and users in SharePoint Online using CSV files. That blog assumed you already had one or more site...
View ArticleSSIS 2012 - Using PowerShell to Remotely Execute File System Packages
In our most recent article published on this forum, we presented a PowerShell script that allows you to execute SQL Server 2012 Integration Services packages deployed by using the traditional Package...
View ArticleSet-DistributionGroup with linked mailbox users
I was hoping to give managed by rights to users that are linked in my exchange 2010 enviroment.the PS below is unable to find user object. Set-DistributionGroup -Identity...
View ArticleChecked Boxes
I have a list of checked boxes on a website, How Can I unchecked all boxes and check specific box?Example (I just want to select Code and Created at boxes.) Id Retailer State Code Oope pin Created at...
View ArticleFind Specific Text String in Specific Files and output to Text file
I know very little about Powershell but am trying to use it to determine if specific text strings exist within specific excel files.This works, it returns the correctly named files: (I am looking for...
View ArticleThis Script shows free space of disk
Hi ,i also want to have one more coloum showing used space of disk. how much spaced is used by software etccan you help me with that foreach ($ComputerName in (Get-Content -Path C:\servers.txt)){...
View ArticleEMC PowerPath
Hi, I am trying to write a PowerShell script to update EMC power path from 5.3 to 5.7 for Windows Servers 2003 and 2008 R2 but my update only works on existing Servers with Version 5.3 but doesn't...
View Articlerun sql scripts using powershell
I am creating powershell script that will execute sql scripts stored in some folder one after other and if any sql script failes to execute then it should stop at that time and catch that error (Please...
View ArticleHow to get a parmeter name and type for any command/Script
Hi,we have a requirement to fetch all the parameters for any powershell command/script using c#. Can you please help me to find the soultion for the same. Thanks,Srikanth
View Articlechange the time.
I have a csv file in username,date,info in the following format tom,21/07/2013 18:04:30,scheduled. I want to import the csv file and then change the time in the date column and write this to a...
View ArticleConvulated PS script to do various processes - variable assignments failing
Variables:$strcomputer = "hfsat098123456"I test the computer name for three different contents:If $strcomputer -contains "hfsfs"If $strcomputer -contains "hfsca" or "hfsat"(or everything else)Based on...
View ArticleView total memory
What do I need to do to view Total Physical Memory ona) local machineB) Remote machine
View ArticleCatching particular WMI exception
Hello AllCan someone please help me with the following question.I am trying to be more specifc when catching exceptions if I do the followingGet-WmiObject -ComputerName Server1 -Class Win32_PowerPlan...
View ArticleScript Scheduling error
I have a script with I use to create a excel file, I can run the script in server without any issue it creates the result file. But when I schedule the script, it’s not working.. I get the following...
View ArticleGet Overrides Applied to a Workflow in SCOM 2012 using PowerShell
This is a continuation of a Data Center Automation series of posts that I have been working on with Anders Bengtsson. Here are the first nine posts in this series:Read More
View ArticleSimplifying Services with Managed Service Accounts
Still not sure PowerShell is useful? This will settle the matter.Read More
View ArticleChanging account expiration date for multiple active directory accounts
Ive been endlessly searching for a script to change the expiration date of multiple users in a particular organizational unit. I havent had much luck, can anyone help?
View ArticleCopy folder structure using powershell script
I am struggling really hard to get this below script worked to copy the files and folders in the proper structure (As the source server).Lets say, there are folders mentioned below:Main Folder: File...
View Article