<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://myitforum.com/cs2/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><title type="html">Ying Li at myITforum.com</title><subtitle type="html">PowerShell &amp;amp; System Center</subtitle><id>http://myitforum.com/cs2/blogs/yli628/atom.aspx</id><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/yli628/default.aspx" /><link rel="self" type="application/atom+xml" href="http://myitforum.com/cs2/blogs/yli628/atom.aspx" /><generator uri="http://communityserver.org" version="3.1.31113.47">Community Server</generator><updated>2009-02-19T23:11:01Z</updated><entry><title>MDT 2010 Deploy Windows 7 – Join the computer to the domain</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/yli628/archive/2010/06/13/mdt-2010-deploy-windows-7-join-the-computer-to-the-domain.aspx" /><id>http://myitforum.com/cs2/blogs/yli628/archive/2010/06/13/mdt-2010-deploy-windows-7-join-the-computer-to-the-domain.aspx</id><published>2010-06-13T16:18:56Z</published><updated>2010-06-13T16:18:56Z</updated><content type="html">I am using MDT 2010 to deploy Windows 7 image and I had some issues to make the computer automatically join the domain after the deployment! By default MDT has this covered and you just need to answer a few question on this page it will add the computer to the default “computer” OU, if you want to put everywhere else, just create a “DomainOUList.xml” file and save it in control folder, you will see a drop down error next to “option” for you to select the path. The DomainOUList.xml looks like below...(&lt;a href="http://myitforum.com/cs2/blogs/yli628/archive/2010/06/13/mdt-2010-deploy-windows-7-join-the-computer-to-the-domain.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=149523" width="1" height="1"&gt;</content><author><name>yli628</name><uri>http://myitforum.com/cs2/members/yli628.aspx</uri></author></entry><entry><title>PowerShell Script to Get (Set) Logon Scripts for users of a certain group</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/yli628/archive/2010/06/12/getting-setting-logon-scripts-for-users-of-a-certain-group.aspx" /><id>http://myitforum.com/cs2/blogs/yli628/archive/2010/06/12/getting-setting-logon-scripts-for-users-of-a-certain-group.aspx</id><published>2010-06-12T18:53:18Z</published><updated>2010-06-12T18:53:18Z</updated><content type="html">I am currently leading an effort to Upgrade our client OS from XP to Windows 7. We decided to move away from logon script (mostly used for drive mapping &amp;amp; printer mapping) to Group Policy Preference. So how we determine what logon script assigned to a particular user? My friend Jeffery Hicks has a blog about this, I like the word “Legacy”, I have long been advocating to get rid of logon script using every opportunity I have! PS S:\&amp;gt; get-qaduser -LogonScript * | sort LogonScript | select name...(&lt;a href="http://myitforum.com/cs2/blogs/yli628/archive/2010/06/12/getting-setting-logon-scripts-for-users-of-a-certain-group.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=149507" width="1" height="1"&gt;</content><author><name>yli628</name><uri>http://myitforum.com/cs2/members/yli628.aspx</uri></author></entry><entry><title>When you P2V a domain controller – be mindful with the “hidden” physical NIC!</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/yli628/archive/2010/05/19/when-you-p2v-a-domain-controller-be-mindful-with-the-hidden-physical-nic.aspx" /><id>http://myitforum.com/cs2/blogs/yli628/archive/2010/05/19/when-you-p2v-a-domain-controller-be-mindful-with-the-hidden-physical-nic.aspx</id><published>2010-05-20T01:54:56Z</published><updated>2010-05-20T01:54:56Z</updated><content type="html">We suddenly started to get the below OpsMgr alerts as on some servers we monitor event viewer. Alert:&amp;#160; System Event Monitoring Rule Source: whatever.xyz.com Path: Last modified by: System Last modified time: 5/18/2010 12:09:53 PM Alert description: Event Description: The browser service was unable to retrieve a list of servers from the browser master \\DC1 on the network \Device\NetBT_Tcpip_{E85097A4-D2FE-4E45-A53E-D47CD0F2DB1B}. Browser master: \\DC1 Network: \Device\NetBT_Tcpip_{E85097A4-D2FE...(&lt;a href="http://myitforum.com/cs2/blogs/yli628/archive/2010/05/19/when-you-p2v-a-domain-controller-be-mindful-with-the-hidden-physical-nic.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=146991" width="1" height="1"&gt;</content><author><name>yli628</name><uri>http://myitforum.com/cs2/members/yli628.aspx</uri></author></entry><entry><title>MDT 2010 – Create a Task Sequence using PowerShell to Rename Local Administrator Account</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/yli628/archive/2010/05/19/mdt-create-a-task-sequence-using-powershell-to-rename-local-administrator-account.aspx" /><id>http://myitforum.com/cs2/blogs/yli628/archive/2010/05/19/mdt-create-a-task-sequence-using-powershell-to-rename-local-administrator-account.aspx</id><published>2010-05-20T01:23:12Z</published><updated>2010-05-20T01:23:12Z</updated><content type="html">I am working on to create a Windows 7 image using MDT 2010, one of the request is to rename the local administrator account in the image. I did this in XP build which I have no problem, rename the local admin account then capture the image. The deployed image will keep my renamed local admin account. But in Windows 7 image, I just can’t do that! I rename the admin account, capture the image. But when I deploy the captured image, the local admin account reverse back to “administrator”. The indication...(&lt;a href="http://myitforum.com/cs2/blogs/yli628/archive/2010/05/19/mdt-create-a-task-sequence-using-powershell-to-rename-local-administrator-account.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=146990" width="1" height="1"&gt;</content><author><name>yli628</name><uri>http://myitforum.com/cs2/members/yli628.aspx</uri></author></entry><entry><title>Windows PowerShell Cmdlets - Bing</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/yli628/archive/2010/05/17/windows-powershell-cmdlets-bing.aspx" /><id>http://myitforum.com/cs2/blogs/yli628/archive/2010/05/17/windows-powershell-cmdlets-bing.aspx</id><published>2010-05-18T02:46:31Z</published><updated>2010-05-18T02:46:31Z</updated><content type="html">&amp;#160; Windows PowerShell Cmdlets – Bing &amp;#160; Just do a PowerShell search using Bing – it’s very cool!...(&lt;a href="http://myitforum.com/cs2/blogs/yli628/archive/2010/05/17/windows-powershell-cmdlets-bing.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=146934" width="1" height="1"&gt;</content><author><name>yli628</name><uri>http://myitforum.com/cs2/members/yli628.aspx</uri></author></entry><entry><title>OpsMgr – Create a group for SAN attached servers</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/yli628/archive/2009/08/17/opsmgr-create-a-group-for-san-attached-servers.aspx" /><id>http://myitforum.com/cs2/blogs/yli628/archive/2009/08/17/opsmgr-create-a-group-for-san-attached-servers.aspx</id><published>2009-08-18T03:54:34Z</published><updated>2009-08-18T03:54:34Z</updated><content type="html">I need to monitor system event 100 – EMC PowerPath generated error. In my previous blog , I detailed how to setup a monitor/rule to monitor event. The challenge here is that I want to target my monitor/rule to servers attached to EMC SAN. Here is how I did it - First, I need to create a new WMI based custom attribute in OpsMgr. In OpsMgr console – click Authoring, expand Management Pack Objects, right click Attributes, choose Create a New Attribute &amp;#160; Click Next, Next to Discovery Type, choose...(&lt;a href="http://myitforum.com/cs2/blogs/yli628/archive/2009/08/17/opsmgr-create-a-group-for-san-attached-servers.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=140772" width="1" height="1"&gt;</content><author><name>yli628</name><uri>http://myitforum.com/cs2/members/yli628.aspx</uri></author></entry><entry><title>Enable PowerShell Remoting on Windows 7 (RC) Machine is THAT EASY!</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/yli628/archive/2009/07/06/enable-powershell-remoting-on-windows-7-rc-machine-is-that-easy.aspx" /><id>http://myitforum.com/cs2/blogs/yli628/archive/2009/07/06/enable-powershell-remoting-on-windows-7-rc-machine-is-that-easy.aspx</id><published>2009-07-06T21:56:35Z</published><updated>2009-07-06T21:56:35Z</updated><content type="html">I have a Vista SP 2 box and Windows 7 (RC) box. On the Vista box, I have PowerShell V2 installed&amp;#160; and PowerShell remoting enabled a while back and I even forgot the exact cmdlet I used. This is in a AD environment and I have domain admin right on both machines. So from Windows 7 to Vista box, I could do this invoke-command –computername pluto {get-process} After a short but noticeable wait as PowerShell does need to establish a remote session(PSSession), to execute the get-process cmdlet on...(&lt;a href="http://myitforum.com/cs2/blogs/yli628/archive/2009/07/06/enable-powershell-remoting-on-windows-7-rc-machine-is-that-easy.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=139478" width="1" height="1"&gt;</content><author><name>yli628</name><uri>http://myitforum.com/cs2/members/yli628.aspx</uri></author></entry><entry><title>PowerShell Remoting and Sessions</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/yli628/archive/2009/06/21/powershell-remoting-and-sessions.aspx" /><id>http://myitforum.com/cs2/blogs/yli628/archive/2009/06/21/powershell-remoting-and-sessions.aspx</id><published>2009-06-22T03:13:45Z</published><updated>2009-06-22T03:13:45Z</updated><content type="html">As we all know that Remoting is a big thing in PowerShell V2, you may not know that the key thing to PowerShell Remoting is the “Sessions”. Session is actually not new at all to PowerShell, it exist in V1 and it doesn’t have to be remote! Let’s see the below cmdlet get-service i* It is running locally but it is a (hidden)session It is equivalent to the below cmdlet Invoke-command {get-service i*} To extend that to a remote computer “whatever”, you do this - Invoke-command –comutername whatever –command...(&lt;a href="http://myitforum.com/cs2/blogs/yli628/archive/2009/06/21/powershell-remoting-and-sessions.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=138726" width="1" height="1"&gt;</content><author><name>yli628</name><uri>http://myitforum.com/cs2/members/yli628.aspx</uri></author></entry><entry><title>PowerShell (V2) remoting</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/yli628/archive/2009/06/08/powershell-v2-remoting.aspx" /><id>http://myitforum.com/cs2/blogs/yli628/archive/2009/06/08/powershell-v2-remoting.aspx</id><published>2009-06-08T04:41:36Z</published><updated>2009-06-08T04:41:36Z</updated><content type="html">As we already know that Windows 7 will become generally available on Oct. 22, 2009, and Windows Server 2008 R2 will be broadly available at the same time . For PowerShell funs, PowerShell V2 will be integrated with Windows 7 and Windows 2008 R2! That is, you don’t have to install (XP/Windows 2003) or enable the feature (Vista/Windows Server 2008). It’s installed and enabled for you! I have been using PowerShell CTP2/3 and running Windows 7 RC recently, therefore effective using PowerShell V2. PowerShell...(&lt;a href="http://myitforum.com/cs2/blogs/yli628/archive/2009/06/08/powershell-v2-remoting.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=137901" width="1" height="1"&gt;</content><author><name>yli628</name><uri>http://myitforum.com/cs2/members/yli628.aspx</uri></author></entry><entry><title>How to setup a Configmgr hierarchies between two AD Forests without trust</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/yli628/archive/2009/05/28/how-to-setup-a-configmgr-hierarchies-between-two-ad-forests-without-trust.aspx" /><id>http://myitforum.com/cs2/blogs/yli628/archive/2009/05/28/how-to-setup-a-configmgr-hierarchies-between-two-ad-forests-without-trust.aspx</id><published>2009-05-29T02:47:03Z</published><updated>2009-05-29T02:47:03Z</updated><content type="html">Here is a document for setting up Configuration Manager in multiple Active Directory Forest with or without trust. It kind touch on everything but lacking the detailed instruction as to how to set it up! Let’s say you have a production AD forest which have Configmgr hierarchies in place, you have another AD forest setup for commercial facing websites or whatever reason. The security requirement is NO TRUST between the two forests. How are you going to setup the site to site communication between...(&lt;a href="http://myitforum.com/cs2/blogs/yli628/archive/2009/05/28/how-to-setup-a-configmgr-hierarchies-between-two-ad-forests-without-trust.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=137395" width="1" height="1"&gt;</content><author><name>yli628</name><uri>http://myitforum.com/cs2/members/yli628.aspx</uri></author></entry><entry><title>The wait is over – OpsMgr 2007 R2 hits RTM</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/yli628/archive/2009/05/27/the-wait-is-over-opsmgr-2007-r2-hits-rtm.aspx" /><id>http://myitforum.com/cs2/blogs/yli628/archive/2009/05/27/the-wait-is-over-opsmgr-2007-r2-hits-rtm.aspx</id><published>2009-05-28T00:53:23Z</published><updated>2009-05-28T00:53:23Z</updated><content type="html">Yesterday, the OpsMgr 2007 R2 finally hits RTM, you can download the evaluation copy here . The production version will be available until July 1st. But you can install the evaluation copy now and upgrade later....(&lt;a href="http://myitforum.com/cs2/blogs/yli628/archive/2009/05/27/the-wait-is-over-opsmgr-2007-r2-hits-rtm.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=137286" width="1" height="1"&gt;</content><author><name>yli628</name><uri>http://myitforum.com/cs2/members/yli628.aspx</uri></author></entry><entry><title>OpsMgr 2007 SP1 – Creating a rule to monitor logon event</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/yli628/archive/2009/05/18/opsmgr-2007-sp1-creating-a-rule-to-monitor-logon-event.aspx" /><id>http://myitforum.com/cs2/blogs/yli628/archive/2009/05/18/opsmgr-2007-sp1-creating-a-rule-to-monitor-logon-event.aspx</id><published>2009-05-18T04:55:00Z</published><updated>2009-05-18T04:55:00Z</updated><content type="html">At times some people use service account to logon to machines and it has the potential to lockout the service account and therefore bring down the service which is not acceptable to the business and we would need to create a monitor or rule to monitor this behavior. We can create a monitor or rule, the process is pretty much the same except the monitor will affect the availability of the business application and the rules do not. Another thing need to pay attention is how you reset the monitor once...(&lt;a href="http://myitforum.com/cs2/blogs/yli628/archive/2009/05/18/opsmgr-2007-sp1-creating-a-rule-to-monitor-logon-event.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=136709" width="1" height="1"&gt;</content><author><name>yli628</name><uri>http://myitforum.com/cs2/members/yli628.aspx</uri></author><category term="OpsMgr 2007" scheme="http://myitforum.com/cs2/blogs/yli628/archive/tags/OpsMgr+2007/default.aspx" /></entry><entry><title>Antivirus Software Hijacked my Virtual Machines!</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/yli628/archive/2009/05/10/antivirus-software-hijacked-my-virtual-machines.aspx" /><id>http://myitforum.com/cs2/blogs/yli628/archive/2009/05/10/antivirus-software-hijacked-my-virtual-machines.aspx</id><published>2009-05-10T16:35:38Z</published><updated>2009-05-10T16:35:38Z</updated><content type="html">It cost me a few hours the other day to do a mini – DR for one of my Hyper-V host! Hopefully this post will save you some trouble in the future. The trouble starts when I try to build a new VM through VMM 2008, I got the error like below - The requested operation cannot be performed on a file with a user-mapped section open. ( 0x800704C8 ) Then I thought what about try to create the new VM using Hyper-V manager, I got this error - VMName’ Microsoft Synthetic Ethernet Port (Instance ID {7E0DA81A-A7B4...(&lt;a href="http://myitforum.com/cs2/blogs/yli628/archive/2009/05/10/antivirus-software-hijacked-my-virtual-machines.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=136223" width="1" height="1"&gt;</content><author><name>yli628</name><uri>http://myitforum.com/cs2/members/yli628.aspx</uri></author></entry><entry><title>PowerShell 1.0 is now available as an optional update</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/yli628/archive/2009/03/25/powershell-1-0-is-now-available-as-an-optional-update.aspx" /><id>http://myitforum.com/cs2/blogs/yli628/archive/2009/03/25/powershell-1-0-is-now-available-as-an-optional-update.aspx</id><published>2009-03-26T01:01:12Z</published><updated>2009-03-26T01:01:12Z</updated><content type="html">Great News! On Tuesday (3/24/09),Microsoft published PowerShell 1.0 on Windows Update! PowerShell 1.0 through MU is only offered: · As an optional update · If you don’t have any other version of PowerShell installed (including V2 CTPs) on your machine · .NET 2.0 is installed on the machine · OS is one of: XP-SP3, W2K3-SP2, Vista-RTM, Vista-SP1 With PowerShell 1.0 on Windows update, it will now reach a&amp;#160; broader audience, (3.5 million downloads so far). This will help the user community to get...(&lt;a href="http://myitforum.com/cs2/blogs/yli628/archive/2009/03/25/powershell-1-0-is-now-available-as-an-optional-update.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=133458" width="1" height="1"&gt;</content><author><name>yli628</name><uri>http://myitforum.com/cs2/members/yli628.aspx</uri></author></entry><entry><title>PowerShell Script to Create Multiple Exchange Mailbox and Set Primary SMTP Addresses</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/yli628/archive/2009/02/19/powershell-script-to-create-multiple-exchange-mailbox-and-set-primary-smtp-addresses.aspx" /><id>http://myitforum.com/cs2/blogs/yli628/archive/2009/02/19/powershell-script-to-create-multiple-exchange-mailbox-and-set-primary-smtp-addresses.aspx</id><published>2009-02-20T04:11:01Z</published><updated>2009-02-20T04:11:01Z</updated><content type="html">I am working on a request to create ~800 user&amp;#39;s Exchange 2007 SP1 mailboxes from an excel file. The file with the following headers filled with user&amp;#39;s information. Name, FirstName, MI, LastName, Email, OU The Alias will be in firstname.mi.lastname if there is a MI or otherwise in firstname.lastname format. I come up the following script: $Password=Read-Host &amp;quot;Enter Password&amp;quot; -AsSecureString Import-CSV c:\users.csv | foreach {new-ma ilbox -firstname $_.firstname -initials $_.MI -Lastname...(&lt;a href="http://myitforum.com/cs2/blogs/yli628/archive/2009/02/19/powershell-script-to-create-multiple-exchange-mailbox-and-set-primary-smtp-addresses.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=131024" width="1" height="1"&gt;</content><author><name>yli628</name><uri>http://myitforum.com/cs2/members/yli628.aspx</uri></author></entry></feed>