Quantcast
Channel: TechNet Blogs
Viewing all 34890 articles
Browse latest View live

The SharePoint Online Site Collection Upgrade Experience–Part 2

$
0
0

In Part 1 of this post, we walked you through resolving the “Upgrade is currently disabled for your site collection. Please check back later to see if it has been unlocked for you” error that users may see when trying to upgrade their SharePoint Online site collection. 

Now, join Partner Solution Consultant Jon Horner as he walks through everything you need to know before, during, and after the upgrade process, including how to update MySites to SkyDrive Pro.

Session PowerPoint Deck: Office 365 - Upgrading to the new SharePoint Online

*Note: The video mentions that SkyDrive Pro comes with 7GB of storage.  As of last week when the video was recorded… that was true.  Today, the SharePoint Online team announced that:

  • Each user now gets 25 GB of SkyDrive Pro storage space (up from 7 GB).
  • You can now increase users' SkyDrive Pro storage beyond the default 25 GB-up to 50 GB and 100 GB.
  • With the new Shared with Me view,you can easily find documents others have shared with you.

Read more at the following post: SkyDrive Pro increases storage and ease of sharing


Microsoft Master - Antonio Vargas, Exchange Extraordinaire.

$
0
0

Last month it was brought to my attention the achievements of Antonio Vargas, a Microsoft Exchange senior solutions architect at Intercall Unified Communications UK, who in July 2013 had been awarded a Microsoft Certified Solutions Master’s certification in Exchange Server 2013.

A Quick Insight…

20130821205844__SAM0079Antonio has held 12 years’ experience in Unified Communications, mostly working for a large IT Firm in Portugal. His willingness to progress led to a job invitation from Unified Communication experts Intercall based in the UK, where he’s been working for the last year.

He gained his first Microsoft certification 12 years ago on Active Directory. Since then he’s completed 24 additional Microsoft certifications all based around unified communications.

With 25 certificates under his belt, Antonio was ready for his next  challenge – to become a Microsoft Certified Solutions Master (MCSM) in Exchange Server 2013.

 

If I’m being entirely honest, I hadn’t a great deal of knowledge on what an MCSM entailed, but I knew it was a great achievement. I decided to track Antonio down to find out more about his mammoth undertaking to get a better understanding of the process, how it works and why you’d go through it. It was a fascinating conversation so I thought others might find it interesting too... so here’s what he said.

What was the driving force behind your decision to take the Master’s accreditation?

Having successfully passed numerous certifications I was getting to the point in my career where I‘d exhausted all the potential courses at my current level. I’d wanted to specialise in a particular area for a while, so in order to do that and progress a Masters certification was next on my list.

Why Exchange?

Unified Communications is the area I am most interested in, but it goes beyond interest. A Master Certification in any technology is incredibly hard, and you truly need to love that technology as you’re going to be devoting lots of your time on self-learning, it’s not going to be easy to do a masters in a technology you’re not entirely sure of. Exchange was my favourite, hence why I choose it.

What’s the process for completing a Masters?

I always had plans of progressing to a Masters, it’s been something on my to do list for a couple of years now. So when I finally decided to go for it around June 2012, I had to prepare well in advance.

I began to build a study plan, during the 6-9 months period I began out of hour’s preparation, light reading around the varied TechNet articles and blog content and some good books about Microsoft Exchange, the last 6 months leading up to the course I started heavier reading around more focused content, some specialised books and TechNet articles around Office 365 especially. The last few months I was getting hands on learning, taking advantage of the Microsoft Masters advanced training labs which took place in the US, presented by instructors from Microsoft and Microsoft partner organizations. This was a great opportunity to study but also to network with a varied group of like-minded field experts also going for their Masters. My study plan was incredibly helpful but the real experience I was able to gather from my work at Intercall was on par if not as important to the progression route.

Challenges you faced, and how you overcame them?

Time constraints was the main issue - any free time I had, I was reading. Microsoft provide a pre-recommended reading list to anyone planning on taking their Masters, and this helps greatly with finding relative material. My employer was also incredibly helpful, I was provided solely with projects focused on Exchange on the last few months leading up the rotation, this helped further my focus on the product, rather than having to work on other technologies.

Have you reaped any benefits from your experience and certification yet?

Firstly, it’s been beneficial to the company having an employee who masters in a technology which is a large focus of their business, this will hopefully be a real selling point for our customers.

Personally, I’ll also be able to get involved in bigger projects as a result, which will give me greater experience and responsibility. Another huge benefit is the contacts and friendships I’ve formed along the way, I’m now a member of the Microsoft Masters community, a group where we share ideas, resolve queries and network with experts from various IT backgrounds. These are invaluable connections which will undoubtedly be hugely beneficial to my future career.”

Have you got any tips for others seeking a Microsoft Certified Masters or alternative certifications?

  • Love the technology, this will make your certification easier to achieve.
  • Build a solid study plan (Masters - one year in advance), and read as much as possible – aim to go outside of your comfort zone.
  • If possible, seek out hands-on product experience with real customers.
  • Masters Advanced Training (highly recommended) - Invaluable networking opportunity

(Note: If you choose to take the advanced training course, basic questions need to be pre-determined, don’t waste this valuable experience asking questions which could be found in advance).

Antonio Vargas 2

 

Antonio has shown great skill and determination leading up to and throughout his Masters certification and we applaud his achievement as a Microsoft certified Exchange Master. Antonio also told me he not only has future plans to renew this certification in a few years, but also further ambitions of completing a Microsoft Certified Architect (MCA) certificate. There’s no stopping him! We wish him the very best in his future career.

If you, like Antonio, are ambitious and eager to improve your skillset and qualifications, we have Microsoft Virtual Academy courses where you can learn at your own pace (?) and gain accreditation. You might not have the stamina or will to go all the way to a Masters, but that’s OK, you can learn through your lunch hour. Check out Andrew Fryer's ‘A Month of Lunchtimes’ article and tell us how you get on!

Компания Softkey выступила партнером онлайн-мероприятия Jump Start «Все о Windows 2012 R2» / Начало 10 сентября в 10:00

$
0
0

Компания Softkey выступила партнером онлайн-мероприятия Jump Start «Все о Windows 2012 R2», которое состоится 10 сентября в 10:00.

Специально для участников онлайн-мероприятия компания проведет розыгрыш приза – планшета Surface. Обязательно подключайтесь к онлайн-конференции!

На конференции лучшие эксперты в течении целого дня расскажут об огромном количестве новых функций и изменений в Windows Server 2012 R2. Речь пойдет о дальнейшем развитии Hyper-V, об изменениях в сетевом стеке, об усовершенствованиях в подсистеме управления хранилищами и др. Кроме того, мы обсудим применение Windows Server 2012 R2, System Center 2012 R2 и Windows 8.1 для реализации сценариев консьюмеризации ИТ.

Посмотреть программу конференции

Зарегистрироваться на конференцию

Mana College launches Microsoft IT Academy

$
0
0

This week was a very exciting one for Mana College, as they launched the Microsoft IT Academy programme. Microsoft NZ's Education Sector Lead, Evan Blackman, travelled to the school to mark the occasion.

What is Microsoft IT Academy? It's a program which provides industry-leading technology skills to help bridge the skills gap. With it, institutions get digital curriculum and certifications on fundamental technology skills -- as well as courses critical for students to be successful in today’s technologically evolving world - all at significantly reduced pricing for academic institutions and their educators, students and staff.

  • For Educators and staff: Professional development, a full curriculum for teaching technology courses, and learning tools.
  • For Students: Technology skills and certifications to be college and career ready for today’s technology-centered job market.

Interested about finding out more for your school? Click here!

New author on WikiNinjas

$
0
0

Hello community! I call Hezequias Vasconcelos and am starting my activities as a blog author on the WikiNinjas blog. Reflecting on this work, it's difficult to assess the importance an author has a group of people. I can say that motivation comes from the need to write, good imagination, and a great deal of narrative. It's important to read and increase our intellectual capital; that is the main reference for acquiring and sharing knowledge. Thanks for the opportunity, Ed.

[Script of Aug. 29] Check database backups appended to existing backup devices problems (VBS)

$
0
0

Script Download: CheckBackupToSingleFile.zip
http://gallery.technet.microsoft.com/scriptcenter/Check-database-backups-4d65f7c2

The backup history for SQL Server database indicates that backups are getting appended to existing backup devices. This increases the risk of losing all the backups when the backup device gets damaged. Also the performance of backups and restoring operations might be degraded when several backups are appended to one another on the same backup device that resides on a remote server and accessed over the network. Review the backup history information stored in msdb database and configure your backup scripts or solution to store backups in individual backup devices.

This script can be used to detect the database backups appended to existing backup devices problems.

imageimage
image

You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery

PowerShell Get-WinEvent XML Madness: Getting details from event logs

$
0
0

Announcements

Before we jump into today’s script here are some current events:

  • This blog post celebrates three years of PowerShell blogging on TechNet as GoateePFE.  It has been a great ride, and I am far from done.  See the most popular posts here.  Thank you for making this blog successful.
  • The PowerShell Deep Dives book is out now.  I contributed a chapter on Active Directory token bloat taken from my SID history blog series.  This book has a ton of great chapters by a ton of great people. All the proceeds go to Save The Children.  Buy your copy today.
  • If you haven’t had a chance to watch the Microsoft Virtual Academy recordings Getting Started with PowerShell 3.0 Jump Start and Advanced Tools & Scripting with PowerShell 3.0 Jump Start then you need to put them on your list.  Jeffrey Snover and Jason Helmick do a fantastic job of covering everything you need to know to get started with PowerShell.  Make time for this over several lunches or knock it out in a couple training days.  These videos will seriously boost your career.  You could even gather the family around with a bowl of popcorn.
  • PowerShell Saturday 005 is coming up October 26th in Atlanta, Georgia.  My session is titled It’s Time To Part With Blankie: Moving from command line tools to PowerShell for Active Directory.  If you’re in the area stop by for a good time with several PowerShell celebrities.  I’m looking forward to Ed Wilson’s session PowerShell Workflows for Mere Mortals.

Now for today’s topic…

XML vs. IT Pro

Maybe I haven’t looked hard enough, but I’ve just not found any clear documentation aimed at IT Pros for what I am posting today.  As an IT Pro type guy (not a .NET type guy) I have avoided XML for years.  CSV and HTML are so much easier.  XML seems to be a labyrinth of complexity in my mind, and it still is, at least from a PowerShell perspective.  The object model is convenient, but trying to navigate it loses me.  Yeah, I know XML makes the world a happy place, but I’m just not there yet.

Despite this disparaging disclaimer I believe I have drafted a script that will help many of us IT Pros as we weed through event logs (or ETL trace files or EVTX files).

The Backstory

A couple years ago a distinguished peer of mine, Matthew Reynolds, invited me to contribute to a project parsing ETL trace data with PowerShell.  You can hear him talk about the fruits of this labor in his recent TechEd talk, How Many Coffees (New 2013 Edition) Can You Drink While Your PC Starts?  Through this project I became very familiar with parsing XML event log data.  Most of this learning happened for me while I was parsing GPO processing events.

Recently I had a request from a customer who wanted to parse logon audit events and filter deep into the event message body.  I had to dust off my code from the former project and dive a little deeper.  I figured if I’ve had this much trouble with the topic, then I should blog it so that I have something to refer back to when I forget all this again in a few months.

Events:  The good, the bad, and the ugly

The good:  PowerShell works with event logs out of the box.  You have two cmdlets:  Get-EventLog and Get-WinEvent.  Get-WinEvent is the one we’re all supposed to use now.

The bad:  All of a sudden reading event logs gets complicated.  The filtering in particular requires some crazy syntax.  We are far removed from the simplicity of DUMPEL.  PowerShell team blog posts from 2009 here and here attempt to make this look routine.  Um… yeah.

The ugly:  All of the juicy nuggets of event data in the message body are stored in XML.  And nearly every combination of event ID and provider has a unique event schema for storing the data we want.  Neo’s MSDN blog post gets us most of the way there.  AskDS and Hey Scripting Guy show how we can use the GUI to help write the XML filter syntax.  Now my head is spinning.  This is the farthest point from intuitive.  Don’t even get me started on XPATH.

Note:  In all fairness to the product this data structure is necessary.  All events have a few common properties like provider, ID number, date/time, source, etc.  But in order to capture the unique details of each event we needed a way to store a variable number of properties.  So the design is good, just a bit complicated to script.

In the life of every scripter you will come to challenges like this.  You just have to cowboy up and dive in.  I recommend that you cruise through these other articles linked above for some good details on filtering XML event log data.

The thing I’ve not seen in these blog posts is how to dump out the event message data in a CSV file where I can easily report and manipulate the data I need.  For example, if I’m collecting logon failure event 4625, then I want the guts of the message body in separate columns where I can easily summarize and report on the user and computer accounts involved.  While I can harvest event logs from multiple servers in the GUI, it is just not friendly for mass reporting, sorting and visualization like Excel.  This is the problem I am trying to solve. 

image

The individual nuggets of interest are represented as XML in the EventData portion of the message:

image

 

Finding Event Message Schemas

Use the lines below to discover the XML schemas behind the events you want to parse.  Run each line and substitute the event IDs and providers you want to investigate.  These lines serve as a bit of an event log deep dive when you run them on your own machine.  Note that some of these lines may need to run in an elevated shell (Run As Administrator).

# List all event providersGet-WinEvent-ListProvider*|Format-Table# List all policy-related event providers.Get-WinEvent-ListProvider*policy*|Format-Table# List the logs on the machine where the name is like 'policy'Get-WinEvent-ListLog*policy*# List all possible event IDs and descriptions for the provider(Get-WinEvent-ListProviderMicrosoft-Windows-GroupPolicy).Events|Format-Tableid,description-AutoSize# List all of the event log entries for the providerGet-WinEvent-LogNameMicrosoft-Windows-GroupPolicy/Operational# Each event in each provider has its own message data schema.# Use this line to find the schema of each event ID.# For a specific event(Get-WinEvent-ListProviderMicrosoft-Windows-GroupPolicy).Events|Where-Object{$_.Id-eq5314}# For a keyword in the event data(Get-WinEvent-ListProviderMicrosoft-Windows-GroupPolicy).Events|Where-Object{$_.Template-like"*reason*"}# Find an event ID across all ETW providers:Get-WinEvent-ListProvider*|ForEach-Object{$_.Events|Where-Object{$_.ID-eq4168}}

Notice that the Template property holds the XML definition of the event message body.  This is where our event log goodness hides.  The trick is parsing these individual XML values for our reporting.  I’ve highlighted the data entries and their corresponding placeholders in the GPO event schema example below. 

PS C:\> (Get-WinEvent -ListProvider Microsoft-Windows-GroupPolicy).Events |
 Where-Object {$_.Id -eq 5314}


Id          : 5314
Version     : 0
LogLink     : System.Diagnostics.Eventing.Reader.EventLogLink
Level       : System.Diagnostics.Eventing.Reader.EventLevel
Opcode      : System.Diagnostics.Eventing.Reader.EventOpcode
Task        : System.Diagnostics.Eventing.Reader.EventTask
Keywords    : {}
Template    : <template
              xmlns="http://schemas.microsoft.com/win/2004/08/events"><data name="BandwidthInkbps" inType="win:UInt32"
                  outType="xs:unsignedInt"/><data name="IsSlowLink" inType="win:Boolean"
                  outType="xs:boolean"/><data name="ThresholdInkbps" inType="win:UInt32"
                  outType="xs:unsignedInt"/><data name="PolicyApplicationMode" inType="win:UInt32"
                  outType="xs:unsignedInt"/><data name="ErrorCode" inType="win:UInt32"
                  outType="win:HexInt32"/><data name="LinkDescription" inType="win:UnicodeString"
                  outType="xs:string"/></template>

Description : A %6 link was detected. The Estimated bandwidth is %1 kbps. The
              slow link threshold is %3 kbps.

 

Cracking the XML Nut

So how do I pull those values out of the event message?  This time we’re going to look at a log from one of our domain controllers (DCs).  Notice the filter syntax.  DO NOT pipe the entire event log to a Where-Object if you want results returned in this century.  Let’s grab one event entry to examine:

# Prompts for creds$cred=Get-CredentialContoso\Administrator# Grab the events from a DC# Target DC needs firewall rule enabled:# Remote Event Log Management (RPC)$Event=Get-WinEvent-ComputerName2012DC-Credential$cred` -FilterHashtable@{Logname='Security';Id=4625}` -MaxEvents1# View the event properties.$Event|Format-List*# View the array of message body values.# But the property names are missing.$Event.Properties# Convert the event to XML$eventXML=[xml]$Event.ToXml()# Drill down through the XML to the message goodness# Ah ha! This is what we want.$eventXML.Event.EventData.Data# You have to index each data element to access it.$eventXML.Event.EventData.Data[0].name$eventXML.Event.EventData.Data[0].'#text'

 

PS C:\> $eventXML.Event.EventData.Data

Name                      #text                          
----                      -----                          
SubjectUserSid            S-1-5-18                       
SubjectUserName           2012DC$                        
SubjectDomainName         CONTOSO                        
SubjectLogonId            0x3e7                          
TargetUserSid             S-1-0-0                        
TargetUserName            DanPark                        
TargetDomainName          CONTOSO                        
Status                    0xc000015b                     
FailureReason             %%2308                         
SubStatus                 0x0                            
LogonType                 4                              
LogonProcessName          Advapi                         
AuthenticationPackageName Negotiate                      
WorkstationName           2012DC                         
TransmittedServices       -                              
LmPackageName             -                              
KeyLength                 0                              
ProcessId                 0x390                          
ProcessName               C:\Windows\System32\svchost.exe
IpAddress                 -                              
IpPort                    -

  

My Inefficient Magic XML to CSV Event Reporting Machine

The code in this example pulls event 4625 from the Security log on a domain controller, and then it copies each of the XML message body properties into their own event object property for easier reporting.  Note that the DC must have the firewall rule enabled to allow Remote Event Log Management (RPC).

# Prompt for creds$cred=Get-CredentialContoso\Administrator# Grab the events from a DC$Events=Get-WinEvent-ComputerName2012DC-Credential$cred` -FilterHashtable@{Logname='Security';Id=4625}# Parse out the event message dataForEach($Eventin$Events){# Convert the event to XML$eventXML=[xml]$Event.ToXml()# Iterate through each one of the XML message propertiesFor($i=0;$i-lt$eventXML.Event.EventData.Data.Count;$i++){# Append these as object propertiesAdd-Member-InputObject$Event-MemberTypeNoteProperty-Force` -Name$eventXML.Event.EventData.Data[$i].name` -Value$eventXML.Event.EventData.Data[$i].'#text'}}# View the results with your favorite output method$Events|Export-Csv.\events.csv$Events|Select-Object*|Out-GridView

I call this inefficient, because it must go back through the event log data a second time to process the XML message body properties.  This is OK for smaller data sets, but your performance will be slower with larger data sets.

Note that this approach is only appropriate for events that share the same schema.  Some events within a provider will have the same schema, even though the event IDs are different.  In those cases it would be OK to include multiple event IDs in your query.

image

This is my solution to the problem called out at the beginning of the article.  Now that I have all of the XML data in native event object properties I can easily group, filter, sort, and report.  Yes, there is fancy XML syntax that will filter deep into the message body, but that does not give me visibility to all of the values.  Now I have the data exposed in a CSV spreadsheet where I can quickly visualize patterns and trends.  Add some pivot tables and charts to make your reporting management-friendly.

The Big Finish

You could really amp this up by running it as a workflow in parallel against all of your target computers.  Or you could use Invoke-Command -AsJob for multi-threading.  Unfortunately remote sessions and workflows return their results as deserialized objects that lack the .ToXML() method.  I’m still working on a way to get this working over these remoting technologies.  In the meantime you can scale this out across multiple servers by using the cmdlet Start-Job to spin up a thread for each server you query.

Am I Wrong?

One of the things I like about working in IT is constantly learning new things.  I’ve been doing PowerShell for three years, but I still have much to learn.  If I’m missing something here please let me know in the comments below.  Have you found an easier way to work with XML event message bodies from Get-WinEvent?  I’d love to hear about it.

System Center 2012 Operations Manager 加入監控 Windows Server

$
0
0

 

本篇文章提供了 System Center 2012 Operations Manager 加入納管伺服器的使用方法,更多元件的使用手冊,也將在此部落格中提供給您。 
 

本文作者曾雄鉅,現職鼎新電腦資深系統工程師。


 
 

System Center 2012 Operations Manager,主要功能就是針對系統進行監控和管理,所以前面安裝完 System Center 2012 Operations Manager 之後,當然就是來把要監控的伺服器納管。
如未安裝 Operations Manager 的朋友,可以參考之前發表的 台灣微軟 System Center 部落格的 SCOM 安裝手冊來安裝。


首先開啟 Operations Manager 主控台,微軟很貼心在主控台上就會告訴我們可以依照畫面上的必要設定工作來做。當然也可以自己選取系統管理頁籤>代理程式管理,兩個動作都一樣。






右鍵跳出選單選取探索精靈




出現精靈後,選取探索 Windows 電腦,下一步




有兩種探索方法,本文選取進階探索,下一步




選擇或輸入要納管的伺服器,下一步




輸入管理帳號密碼,下一步




列出要納管的清單>選擇納管電腦,下一步




列出安裝摘要,可以看到代理程式會安裝在目的端電腦的路徑,點選安裝








安裝完成




此時可以看到代理程式管理上看到已安裝代理程式的電腦,建議安裝過後最好重開機。






重開機後,可以看到狀態已經變更




接下來點選系統管理>安裝管理組件,可以看到一堆組件列表,點選右側選單的匯入管理組件




跳出匯入管理組件精靈




選取加入>從類別目錄加入




點選搜尋,可以依照您的需求作搜尋,例如監控 SQL Server 的組件就可以打 SQL 做搜尋




搜尋結果,依照需求選取需要的組件>確定





列出所有選取要匯入的組件>安裝




開始匯入及安裝






完成匯入安裝後,選取系統管理>代理程式管理>可以看到納管的機器>右鍵>開啟,可以看到一些系統監控的選項




效能檢視






事件檢視




所以可以依照您的需求,將要納管的機器載入不同的管理組件,做監控管理的動作,大大節省了以往的逐一確認狀態是否正常的時間。




 

    作者:曾雄鉅 (雄、大熊) / 鼎新電腦資深系統工程師
    專長:IBM 大型主機相關技術、虛擬化相關技術 (VMware、Hyper-V、KVM、XEN)、
               Windows Server相關技術。
    特殊經歷第二屆虛擬化戰士銀翼級認證

 


Creating A Hyper-V VM from an ISO using PowerShell

$
0
0

Pierre Roman and I have been hard at work preparing for the upcoming round of CANITPRO Camps being made available in a couple months time to the general public.  For those of you who have attended a CANITPRO Camp in the past, you may be aware of the 20 or so computers provided for utilization to complete labs during the camp.  Pierre and I meticulously setup each machine before hand to ensure the labs run as they are supposed to.  One of the preparation steps involves the creation of the VMs to be utilized I the labs.  While there are many methods to complete this, I recently came across a great PowerShell script written by a PowerShell MVP by the name of Jeffrey Hicks who has written a script to automate the process in creating a VM from an ISO.

The script requires a existing PowerShell script which can be downloaded for free and is entitled Convert-WindowsImage.ps1. The script creates a bootable VHD or VHDX file from an ISO installation image and requires PowerShell 3.0 to operate. The additional script that Jeffery provides extracts the server version from the ISO file, creates a VHD or VHDX file based on the installation media and inserts it into an unattend.xml file.  In this example, Jeffery has downloaded the Windows Server 2012 ISO.

Said script is as follows:
 

#requires -version 3.0

<#
  Create a Hyper-V virtual machine from an
  ISO file and template
  This script requires the Convert-WindowsImage.ps1 script which you can
  download from Microsoft:
  http://gallery.technet.microsoft.com/scriptcenter/Convert-WindowsImageps1-0fe23a8f#content
#>

[cmdletbinding(SupportsShouldProcess)]
Param(
[Parameter (Position = 0,Mandatory,
HelpMessage = "Enter the name of the new virtual machine")]
[ValidateNotNullorEmpty()]
[string]$Name,

[ValidateScript({Test-Path $_ })]
[string]$ISOPath = 'F:\9200.16384.WIN8_RTM.120725-1247_X64FRE_SERVER_EVAL_EN-US-HRM_SSS_X64FREE_EN-US_DV5.ISO',
[ValidateNotNullorEmpty()]
[string]$Edition = "ServerDatacenterEvalCore",

[ValidateScript({$_ -ge 10GB})]
[int64]$Size = 20GB,

[ValidateScript({Test-Path $_ })]
[string]$Unattend = "F:\VHD\unattend.xml",

[ValidateNotNullorEmpty()]
[string]$VHDPath = "F:\VHD\Win2012DatacenterEvalCore.vhdx",

[ValidateScript({$_ -ge 256MB})]
[int64]$Memory = 1GB,

[ValidateNotNullorEmpty()]
[string]$Switch = "Work Network",

[ValidateScript({$_ -ge 1})]
[int]$ProcessorCount = 2
)

#region Convert ISO to VHD
Write-Verbose "Converting ISO to VHD(X)"

#parse the format from the VHDPath parameter value
[regex]$rx = "\.VHD$|\.VHDX$"
#regex pattern is case-sensitive
if ($vhdpath.ToUpper() -match $rx) {
    #get the match and strip off the period
    $Format = $rx.Match($vhdpath.toUpper()).Value.Replace(".","")
}
else {
    Throw "The extension for VHDPath is invalid. It must be .VHD or .VHDX"
    Return
}

#define a hashtable of parameters and values for the Convert-WindowsImage

$convertParams = @{
SourcePath = $ISOPath
SizeBytes = $size
UnattendPath = $Unattend
Edition = $Edition
VHDFormat = $Format
VHDPath = $VHDPath
ErrorAction = 'Stop'
}

Write-Verbose ($convertParams | Out-String)

#define a variable with information to be displayed in WhatIf messages
$Should = "VM $Name from $ISOPath to $VHDPath"

#region -Whatif processing
If ($pscmdlet.ShouldProcess($Should)) {
    Try {
        #call the convert script splatting the parameter hashtable
        c:\scripts\Convert-WindowsImage.ps1 @convertParams
    }
    Catch {
        Write-Warning "Failed to convert $ISOPath to $VHDPath"
        Write-Warning $_.Exception.Message
    }
} #should process
#endregion

#endregion

#region Creating the virtual machine
Write-Verbose "Creating virtual machine $Name"
Write-Verbose "VHDPath = $VHDPath"
Write-Verbose "MemoryStartup = $Memory"
Write-Verbose "Switch = $Switch"
Write-Verbose "ProcessorCount = $ProcessorCount"

New-VM -Name $Name -VHDPath $VHDPath -MemoryStartupBytes $Memory -SwitchName $Switch |
Set-VM -DynamicMemory -ProcessorCount $ProcessorCount -Passthru

Write-Verbose "New VM from ISO complete"
#endregion

The preceding script takes values for the virtual machine name and the path to the ISO file. Currently the default value is based on an ISO file normally used by Jeffery. Please remember to specify which edition you wish to convert as Windows Server installation files can contain multiple images. Also required is the specification of the name and path for the VHD or VHDX file, including the extension as the script requires the extension to know what kind of disk file to create.  Also be sure to specify the path to the unattend.xml file which will be inserted into the new VHD. The script provided by Microsoft will then automatically mount the new VHD, copy the unattend.xml file and automatically dismount. Finally basic settings for the new virtual machine, such as the number of processors utilized and the amount of memory required, will need to be specified.

The following script calls the Convert-WindowsImage.ps1 script to create the VHD or VHDX file:
 

Try {
  #call the convert script splatting the parameter hashtable
  c:\scripts\Convert-WindowsImage.ps1 @convertParams
}

 
This can take up to 10 minutes to process depending on the disk size to be created and where the creation is to occur. The disk files are automatically configured to be dynamically expanding and the script also supports –WhatIf and  –Verbose so you can test out and verify your values.
 
 
Once the disk file is obtained, creating the virtual machine is simple using New-VM with parameters gathered from the following script:



New-VM -Name $Name -VHDPath $VHDPath -MemoryStartupBytes $Memory -SwitchName $Switch | Set-VM -DynamicMemory -ProcessorCount $ProcessorCount -Passthru
 

Additional configuration changes can be added with the end result being a working virtual machine with much of the OS configured via utilizing the unattend.xml file.
 
To add, with the recent release of Windows Server 2012 R2 Preview Jeffery has been kind enough to create a script to quickly build a new virtual machine utilizing the preview. Be sure to download the ISO copy of the Windows Server 2012 Preview followed by running the following script:
 

PS C:\scripts> .\New-VMfromISO.ps1 -ISOPath  G:\iso\Windows2012R2-Datacenter-Preview.iso -Edition ServerDataCenterCore  -VHDPath g:\vhds\Win2012R2Core.vhdx  -Name Win2012R2-Core-Baseline
 


 

How to take advantage of the Surface RT Offer for education institutions

$
0
0

We've had an excellent response on our Surface RT offer for schools and tertiary education institutions!

Haven't heard about it?

Until September 30, 2013, Microsoft is pleased to offer the following special pricing on Surface RT to New Zealand schools and higher education institutions, through Authorised Surface Retailers:

  • Surface RT (32GB) - RRP1 for the Offer NZ$294 (Standard RRP1 is $499)
  • Surface RT (32GB) with Touch Keyboard Cover - RRP1 for the Offer NZ$371 (Standard RRP1 is $649)
  • Surface RT (32GB) with Type Keyboard Cover - RRP1 for the Offer NZ$432 (Standard RRP1 is $698.99)

All the prices above include GST

If you are interested in finding out more about this offer for your school, please contact any of the following:

Take a look at the brochure below to see how taking advantage of this deal will benefit your school or tertiary institution! 

1 This price is the recommended retail price for the offer. Your actual price will be determined by your Surface retailer. There is no obligation on any retailer to comply with any recommended retail prices.

Retest ppe

$
0
0
This is My title 中文 !!·#¥ %% ~!·#¥ %……& *()() ——+〉:《“*
1|3
_pre

苟富贵风格风格

 

  • Chris Capossela, Corporate Vice President, Information Worker Product Management Group                                                                                          右侧文字
  1. 反对法
  2. 反对法  
  3. 大幅度反对 法大师傅反对发发

 

fdffd
fdffd
fdffd
fdffd
fdf 

 

fdffd
fdffd
fdffd

 

 

 

 

fd

ffd
fdf 

 

 

  • It must be located in a "historically underutilized business zone" (HUBZone).
  • It must be owned and controlled by one or more U.S. citizens.
  • At least 35 percent of its employees must reside in a HUB Zone.

 

 

反对法史蒂芬 森大幅度司法 反反复复

反反复复反反复复反反复 复夫妇fdfdfdf fd

fsd fdfds fdsg dfd

  • It must be located in a "historically underutilized business zone" (HUBZone).
  • It must be owned and controlled by one or more U.S. citizens.
  • At least 35 percent of its employees must reside in a HUB Zone.
 
 
 
 
 
 
 
sspass_images_exec_bio_capossela
January 01, 0001
Chris Capossela, Corporate Vice President, Information Worker Product Management Group

 

by Biotest

by Biotest

 

  • It must be located in a "historically underutilized business zone" (HUBZone).
  • It must be owned and controlled by one or more U.S. citizens.
  • At least 35 percent of its employees must reside in a HUB Zone.                                                                                                      右侧文字

 

fdffd
fdffd
fdffd
fdffd
fdf

 

       图片右侧文字

teste @f fdfdf  This is My title 中文 !!·#¥ %% ~!·#¥ %……& *()() ——+〉:《

Amazing possibilities for the future of personal computing were on display this week at TechForum, an event hosted by Microsoft Chief Research and Strategy Officer Craig Mundie.

Mundie was joined by Interactive Entertainment Business President Don Mattrick, Online Services Division President Qi Lu, Business Platform Division Corporate Vice President Ted Kummert and Chief Research Officer Rick Rashid and others in discussing and demonstrating how the company is investing in research and exploration of a number of important technologies.

  • dv
    “*

Retest ppe 2

$
0
0

Test bullet

Test image

 

                          test words

Test table

fdffd
fdffd
fdffd
fdffd
fdf 

 

 

Amazing possibilities for the future of personal computing were on display this week at TechForum, an event hosted by Microsoft Chief Research and Strategy Officer Craig Mundie.

Mundie was joined by Interactive Entertainment Business President Don Mattrick, Online Services Division President Qi Lu, Business Platform Division Corporate Vice President Ted Kummert and Chief Research Officer Rick Rashid and others in discussing and demonstrating how the company is investing in research and exploration of a number of important technologies.

 

 

This is My title  This title 中文 ·#¥¥¥@ This is My title This is My title This is My title
1|3
Chris Capossela, Corporate Vice President, Information Worker Product Management Group
_presspass_images_exec_bio_capossela
January 01, 0001
Chris Capossela, Corporate Vice President, Information Worker Product Management Group

 

by Biotest

 

by Biotest

Test bullet

Test image

 

                        test words

Test table

fdffd
fdffd
fdffd
fdffd
fdf 

 

 

Amazing possibilities for the future of personal computing were on display this week at TechForum, an event hosted by Microsoft Chief Research and Strategy Officer Craig Mundie.

Mundie was joined by Interactive Entertainment Business President Don Mattrick, Online Services Division President Qi Lu, Business Platform Division Corporate Vice President Ted Kummert and Chief Research Officer Rick Rashid and others in discussing and demonstrating how the company is investing in research and exploration of a number of important technologies.

 

 

Týden se System Center 2012 R2 – Hyper-v Recovery Manager

$
0
0
Služby Windows Azure jsou již poměrně známou záležitostí v oblasti veřejného cloudu, ať se už jedná o služby Infrasctructure as a Service nebo Platform as a Service. Nástroje System Center jsou zase čím dál častěji vyhledávány pro správu privátního cloudu. Stále více se mluví o cloudu hybridním, tedy kombinace vlastní infrastruktury s plnou automatizací a veřejného...(read more)

Windows Azure通过管理服务(Management Service)提高可管理性

$
0
0

 

可管理性(Manageability)对于成功部署和运营云计算应用非常关键(可参考http://en.wikipedia.org/wiki/Cloud_computing中对管理要求的相关论述),Windows Azure提供了Windows Azure Portal,方便大家对Windows Azure资源进行管理和监控。可参考:

· 使用Windows Azure Portal管理和监控Windows Azure资源

http://blogs.technet.com/b/nevin_dongs_blog/archive/2012/11/28/windows-azure-portal-windows-azure.aspx

最近,Windows Azure在门户上进一步推出了管理服务(Management Service),进一步提高了可管理性,满足大家进行自服务的管理。目前重点提供的是操作日志(Operation Logs)和警报 (Alert)。

在操作日志中,可以针对指定的账户,对一定时间段的云服务、存储等的操作历史进行查询。如下图所示:

clip_image001

还可以进一步对特别关注的日志条目,点击门户下端的详细信息按钮,可以看到该日志的详细信息的XML文件。

clip_image002

用户还可以定义警报的触发条件,从而对一些关心的度量值、状态等收到相应的预警信息提示。如下图:

clip_image003

如再下图中,可以针对CPU负载、磁盘读/写、网络负载,及自定义的一些对可用性进行侦测的度量值,定义相应的预警触发条件。

clip_image004

此外,还可以定义预警信息的通知方式,例如发送邮件到管理员等。如下图:

clip_image005

显然,Windows Azure管理服务为IT人员对Windows Azure进行管理提供了除System Center之外的又一利器,而且将随着Windows Azure的不断发展而日益丰富。

Er du ny til Windows 8 eller til Surface tablets

$
0
0

Hvis du er ny til Windows 8, og til tablets fra vores mange samarbejdspartnere eller til Surface RT/Surface Pro - da kig med her:

Guide og Videoer:
Miniguide til Windows, Microsoft ID etc -  klik på ikonet PDF nederst.

Her kan se udvalgte bruger videoer på dansk - Kom godt i gang med Windows 8: http://blogs.technet.com/b/dk_uddannelse/archive/2013/04/24/danske-bruger-videoer-kom-godt-i-gang-med-windows-8.aspx

 

Ny Distributionskanal og Tidsbegrænset tilbud til skoler:
Frem til 30.sepember 2013 kan uddannelsesinstitutioner indkøbe Surface RT tablets direkte via Microsoft til attraktive priser.

Vi har netop 12/8-13 opdateret vores distributionskanal således at vi kan levere enheder inden for en uge via retailere i Danmark. Du bestemmer selv hvilken af de deltagende retailere du ønsker levering fra når du udfylder den online ordre formular.

Læs den opdaterede blog post omkring levering og bestilling her:http://blogs.technet.com/b/dk_uddannelse/archive/2013/06/24/surface-rt-tilbud-til-skoler-og-institutioner-i-begr-230-nset-periode.aspx

Alle spørgsmål vedr. Surface RT tilbud til skoler kan rettes på dansk til: DKsurf@microsoft.com


#TechNetTidy Competition

$
0
0

How tidy is your physical environment? Have you any cabling left lying around or temporarily put in place which has now become 'live'?

Being the curious cat's we are, we thought it would be fun to see a few photo's of your server rooms. Chaos or Clean? To find out we have decided to run a monthly competition, kicking off this month we want to see just how chaotic or well maintained our readers keep their server cabinets.  

Prize ‘bundles’ (bundles I hear you say… yes bundles) awarded to both – ‘Tidy’ and ‘Untidy’ server cabinets each month. 

 Type 2 - Super Server Sammy 

  So are you a ‘Super Server Sammy’?

 

 

Type 1 - Chaotic Cabled Colin

 

 

  Or are you a ‘Chaotic Cabled Colin’?

 

 

INSTRUCTIONS

Enter via:

Facebook

1. Like the TechNetUK Facebook page.

2. Upload your server cabinet housekeeping image to the TechNetUK Facebook page wall, using the hashtag -  #TechNetTidy

Twitter

1. Follow the TechNetUK Twitter page.

2. Tweet your server cabinet housekeeping image to @TechNetUk, using the hashtag - #TechNetTidy

Find full competition terms and conditions here.

 

PRIZES

  

  - The tidiest entry of the month will win a branded ‘TechNet UK’ cup as well as a winning competition t-shirt (as seen sported here).

  - The untidiest entry of the month will win a ‘booby’ prize (which will help you clean up your technical act), as well as a competition t-shirt.

 

 HOW TO WIN

Winning entries will be determined by the TechNet team and at least one independent judge on the 23rd September 2013. Judging will be based on:

- Originality and Compliance with theme - think outside the box!

Keep an eye out on our Facebook and Twitter pages for entries, good luck to all!

 


 

Automating DiskPart with Windows PowerShell: Part 4

$
0
0

Summary: Use Windows PowerShell to build scripts to automate DiskPart.

Hey, Scripting Guy! Question Hey, Scripting Guy! Can we use Windows PowerShell to return information from DiskPart as an object?

—SH

Hey, Scripting Guy! Answer Hello SH,

Honorary Scripting Guy, Sean Kearney, here. I’m filling in for our good friend, Ed Wilson. He’s got tie’s everywhere! Ties all over his property! The problem is they’re running amok! You see, he’s turned into a “tie” fighter (and may the farce be with you).

Today we’re going to pull all of this together into a function that we’re going to call Get-DiskPartInfo. We will pull all of these scripts together to automatically parse through the disks in DiskPart, pull their data, and return it as a [pscustomobject].

Note   This is Part 4 in a series. If you are behind, please read:

So shall we get started? First we define our function, but we’ll attach the appropriate parameters and make this a true advanced function:

Function GET-DISKPARTINFO() {

[cmdletbinding()]

Param()

Now let’s add our first DiskPart script to get the number of drives:

NEW-ITEM –name listdisk.txt –itemtype file –force | OUT-NULL
ADD-CONTENT –path listdisk.txt “LIST DISK”
$LISTDISK=(DISKPART /S LISTTDISK.TXT)
$TOTALDISK=($LISTDISK.Count)-9          

Then we can loop through each disk, grabbing the DiskID and its physical size:

for ($d=0;$d -le $TOTALDISK;$d++)

{

$SIZE=$LISTDISK[-1-$d].substring(25,9).replace(" ","")
$DISKID=$LISTDISK[-1-$d].substring(7,5).trim()

Now that we have the DiskID, we can write a simple script for DiskPart to call up that disk and grab it’s Detail:

NEW-ITEM -Name detail.txt -ItemType file -force | OUT-NULL
ADD-CONTENT -Path detail.txt "SELECT DISK $DISKID"
ADD-CONTENT -Path detail.txt "DETAIL DISK"
$DETAIL=(DISKPART /S DETAIL.TXT)

And now with the Detail for that disk in hand, we run through our Detail parsing to pull the information we need from there:

$MODEL=$DETAIL[8]
$TYPE=$DETAIL[10].substring(9)
$DRIVELETTER=$DETAIL[-1].substring(15,1)

Now we take a few minutes to convert that drive size to a real integer that we can use to compare the size of the removable disk:

$LENGTH=$SIZE.length
$MULTIPLIER=$SIZE.substring($length-2,2)
$INTSIZE=$SIZE.substring(0,$length-2)

SWITCH($MULTIPLIER)
 {
  KB { $MULT = 1KB }
  MB { $MULT = 1MB }
  GB { $MULT = 1GB }
 }

$DISKTOTAL=([convert]::ToInt16($INTSIZE,10))*$MULT

Then all we need do now is wrap it up neatly as a custom object in Windows PowerShell:

[pscustomobject]@{DiskNum=$DISKID;Model=$MODEL;Type=$TYPE;DiskSize=$DISKTOTAL;DriveLetter=$DRIVELETTER}
}
}

Pull this advanced function together and you can turn the following information…

Image of command output

…into useful output like the following in Windows PowerShell:

Image of command output

Now we can even do something like this:

GET-DISKPARTINFO | WHERE { $_.Type –eq ‘USB’ –and $_.DiskSize -lt16GB }

Here’s where things are going to be interesting tomorrow. With all this information as an object, I’ll bet you’re wondering if I can go the next level, and automatically format those USB keys. Check in tomorrow for our final segment where we’ll tie all of this into that and automatically build a key from Microsoft Deployment Tootkit (MDT) 2012!

I invite you to follow us on Twitter and Facebook. If you have any questions, send email to Ed at scripter@microsoft.com, or post your questions on the Official Scripting Guys Forum. See you tomorrow. Until then, peace.

Sean Kearney (filling in for our good friend Ed Wilson),
      Honorary Scripting Guy, Windows PowerShell MVP
           …and good personal friend of the BATCHman

KB2705760: System Center 2012 Operations Manager のインストールに失敗することがある

$
0
0

こんにちは。日本マイクロソフトの新木です。 今回は System Center 2012 Operations Manager インストール時の注意点についてお知らせします。

 

Operations Manager インストール時に、Operations Managerのデータベースを新規インストールするディレクトリを選択しますが、このディレクトリに、既に OperationsManager.mdf や OperationsManager.ldf のデータベースファイルが存在する場合に、「セットアップが完了しない」という内容のエラーが発生することがあります。この問題を解決するためには、既に存在しているOperationsManager.mdf や OperationsManager.ldf のデータベースファイルを削除するか、別のディレクトリに移動する必要があります。

 

 

なお、OpsMgrSetupWizard.logを確認すると、既にOperationsManager.mdf や OperationsManager.ldf のデータベースファイルが存在することが原因でインストールに失敗しているかどうかを判断することができます。OpsMgrSetupWizard.log は以下のパスにあります。

 

  • C:\Users\<インストールを実施したユーザー名>\AppData\Local\SCOM\Logs

 

 

下記太字で示した内容が OpsMgrSetupWizard.log に出力されているかどうかを確認してみてください。

 

-------------------

[05:44:19]: Error: :Exception running sql string CREATE DATABASE [OperationsManager] ON PRIMARY(NAME=MOM_DATA,FILENAME='C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\OperationsManager.mdf',SIZE=1000MB,MAXSIZE=1000MB,FILEGROWTH=0MB) LOG ON(NAME=MOM_LOG, FILENAME='C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\OperationsManager.ldf',SIZE=500MB,MAXSIZE=500MB,FILEGROWTH=0MB) COLLATE SQL_Latin1_General_CP1_CI_AS: Threw Exception.Type: System.Data.SqlClient.SqlException, Exception Error Code: 0x80131904, Exception.Message: Cannot create file 'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\OperationsManager.mdf' because it already exists. Change the file path or the file name, and retry the operation. 
CREATE DATABASE failed. Some file names listed could not be created. Check related errors. 
[05:44:19]: Error: :StackTrace: at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) 
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning() 
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) 
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) 
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) 
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() 
at Microsoft.EnterpriseManagement.OperationsManager.Setup.DBConfigurationHelper.DBConfiguration.RunSqlStrings(String[] sqlCommands) 
[05:44:19]: Always: :Failed to create and configure the DB with exception.: Threw Exception.Type: System.Data.SqlClient.SqlException, Exception Error Code: 0x80131904, Exception.Message: Cannot create file 'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\OperationsManager.mdf' because it already exists. Change the file path or the file name, and retry the operation. 
CREATE DATABASE failed. Some file names listed could not be created. Check related errors.

-------------------

 

 

※  この注意点に関する情報は以下 URL で公開しています。

“You may receive the error "Setup Cannot be Completed" when installing System Center 2012 Operations Manager”

http://support.microsoft.com/kb/2705760

 

 

コミュニティにおけるマイクロソフト社員による発言やコメントは、マイクロソフトの正式な見解またはコメントではありません。

 

Пакет корпоративного лицензирования Microsoft Office 2013

$
0
0

Если вы хотите активировать выпуски с корпоративной лицензией Office 2013, Visio 2013 или Project 2013 с активацией узла KMS или активацией на базе Active Directory, вам нужно сначала установить пакет корпоративного лицензирования Office 2013. Когда вы установите клиент корпоративного выпуска Office 2013, он автоматически попытаетс�� выполнить активацию через Active Directory с использованием существующего связывания доменов или активировать узел KMS, обнаруживаемый в DNS сети вашей организации. Настроить активацию на базе Active Directory можно только при использовании Windows Server 2012, Windows 8 или более новой версии.

Все корпоративные выпуски клиентских продуктов Office 2013 предварительно установлены с помощью универсального ключа многократной установки (GVLK), который поддерживает автоматическую активацию как на базе KMS, так и на базе Active Directory, поэтому вам не потребуется устанавливать ключ продукта.

В загружаемом пакете содержится исполняемый файл, который извлекает и устанавливает лицензионные файлы узла KMS. Эти лицензионные файлы требуются службе узла KMS для распознавания ключей узла KMS Office 2013. В Windows Server 2012 и корпоративных выпусках Windows 8 вы можете использовать этот же ключ узла KMS для настройки активации на базе Active Directory.

Загрузить.

MPN brief- høstens sesjoner er i gang.

$
0
0

Da er vi i gang igjen med MPN brief, og høstens første online møte er 11 september kl. 09.00-10.00. Denne gangen er det Olav Raaen som skal gi oss en oppdatering på Office 365. Office 365 er i sterk fremgang og vokser mer enn noe annet produkt i Microsoft sin historie. De aller fleste partnere er allerede kjent med dette produktet, så i denne sesjonen skal Olav fortelle om hvordan vi ser at de mest suksessfulle partnere bruker Office 365 til å tjene penger. Det blir også en oppdatering på hva Microsoft lanserte i sommer av nye modeller for lisensiering av Office 365 og fakturering via forhandler.

Denise Weishapl skal fortelle om Microsoft University og den muligheten dette er for partnere, og Christina Wahlberg skal snakke om vårt partner bransjetreff som er i oktober. Tilslutt blir det en oppdatering fra meg på hva som skjer i Microsoft Partner Network programmet.

Her finner dere kalender invitasjonen til lync møtet. Da håper jeg vi sees 11. september.

Viewing all 34890 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>