Quantcast
Channel: Windows Server Blogs
Viewing all 2283 articles
Browse latest View live

Group Policy in Windows Server 2012: Using Remote GPUpdate

$
0
0

Group Policy in Windows Server 2012: Using Remote GPUpdate

If someone calls to say their computer doesn’t work quite right, the first thing you might have them do is run gpupdate /force to ensure they have the latest policy applied to their system. Now, you have the power to reach out and force a gpupdate without needing to be at the computer, remote in, or ask the user do it themselves.

The way remote gpupdate works is this: It creates a task through task scheduler. The task will execute within the next 10 minutes, which runs the GPUpdate locally on the machine. This will work on Vista and beyond.

Because this feature uses a remote connection, in order to use it you will need the following firewall rules enabled on clients.

· Remote Scheduled Tasks Management (RPC)

· Remote Scheduled Tasks Management (RPC-EPMAP)

· Windows Management Instrumentation (WMI-In)

Once you have these firewall rules applied to your clients, there are two ways you can invoke a remote Group Policy update.

Remote GP Update Wizard

From the GPMC, right click on an OU that contains computer objects.

clip_image001[6]

Click the “Group Policy Update” option.

clip_image002[7]

This will run a gpupdate /force on all computers in the OU, and any subOUs. Computer policy will be refreshed for each computer, and user policy will be refreshed for any and all users currently logged into those computers.

clip_image003[6]

The “success” and “failure” headers indicate how many computers were contacted and had the event planted on the computer. It does not indicate that those computers have already run gpupdate – just that they have successfully scheduled the update for some time in the next 10 minutes. In this case, I intentionally sabotaged one of my clients to demonstrate what failure looks like – you see an error code and a description, and you can “Save” your results to a .csv file to review what computers succeeded and did not succeed in receiving the task.

Powershell

The other option is to use Group Policy’s new PowerShell cmdlets. The Invoke-gpupdate cmdlet is part of the Group Policy Powershell Module that is installed when you install the Group Policy Management Feature on a machine.

This cmdlet gives you more flexibility with how Group Policy is updated. You can use all of the gpupdate parameters you may be familiar with, plus you can use the new remote GP update functionality to target one computer – or write a script that targets many computers.

An example of the most basic use of invoke-gpupdate:

Import-module groupPolicy

Invoke-gpupdate computername

The completion of this cmdlet will put a task on the computer that will execute a gpupdate /force


Top Bing Searches of 2012

System Center Blogs: Now on iPhone, Android and Windows Phone

$
0
0
If you liked the original System Center Blogs app that was published last year for Windows Phone and Android , you’ll be happy to know that both apps have now been updated, plus there is a new version now available for iOS . The updates include bug fixes...(read more)

Storage Spaces and Windows Server 2012 Essentials

$
0
0

Hi this is Yang Cao again, program manager on the Windows Server 2012 Essentials team. Today’s topic is about one of my favorite features in Windows Server 2012, Storage Spaces. If you Bing “Storage Spaces + Windows Server 2012” you’ll get over 400 million results (you’ll get even more results if you Bing “Storage Spaces + Windows 8” because this feature is available in both server and client). So in today’s post, I’ll try not to duplicate the other 400 million pages. I won’t repeat the definition of Storage Spaces, storage pools, thin provisioning, or resiliency. I won’t even insert the many screen shots of how to create a storage space. You can find all this information in this fabulous blog post in the Building Windows 8 blog: Virtualizing storage for scale, resiliency, and efficiency.

Instead, I will talk about why small business users would love Storage Spaces, and how Windows Server 2012 Essentials makes Storage Spaces creation and management simpler.

Why would small business users love Storage Spaces?

When you are starting or running a small business, one question you might ask yourself is, how do I store data in a flexible, reliable, and affordable way? Maybe you just went through the pain of replacing a smaller disk with a larger one (not flexible enough). Maybe you are a little concerned with the critical data stored on an old disk (not reliable enough). Maybe you are looking at different solutions that might offer similar benefits, but would eat up your next year’s IT budget (not affordable enough)…

Why small business users would love Storage Spaces:

  1. It is flexible. You can add disks of any kind or size into a storage pool, and then create one large virtual disk. Later on when your business and data grows, you can add more disks to seamlessly expand the storage capacity.

  2. It is reliable. You can select the desired level of resiliency when creating your virtual disk, such as mirroring. For example, with at least two copies of the data being available on at least two different physical disks, you gain business continuity even if one of the physical disks fails.

  3. It is affordable. No need to pay for another storage solution, no need to purchase special hardware controllers, enclosures, or drives, and no need to retire and abandon old drives.

Working with Storage Spaces in Windows Server 2012 Essentials

Storage Spaces meets small business users’ requirements for storage, so then the next question is, how can small business users make Storage Spaces “just work”? The Windows Server 2012 Essentials Dashboard is a portal designed for small business administrators to perform daily management tasks. We integrated some common Storage Spaces tasks into the Dashboard so that administrators can continue using the same portal to configure, use, and manage Storage Spaces.

Configure

To make Storage Spaces easier to configure, Windows Server 2012 Essentials integrates the Storage Spaces control panel UI into the system, and provides an entry point from within the Dashboard (Storage -> Hard Drives -> Advanced: Manage Storage Spaces). Compared to Server Manager, the control panel UI simplifies the settings while still providing the most important configuration options, such as Name, Resiliency Type, and Size.

clip_image002[13]

Use

After a storage space is created, working with it in the Dashboard is very similar to other hard drives. You can create a server folder on a storage space, move a server folder to a storage space, or view the properties of a storage space. When you select a storage space, you can see more information about the resiliency type and the underlying storage pool in the Details Pane.

clip_image004[7]

Manage

You can use a storage space as if it were a normal hard drive, and any warnings or errors will be displayed in the Alert Viewer in the Dashboard. Most commonly, you’ll see a low storage pool capacity alert. This alert appears when the underlying physical disk’s free capacity is running low. To solve this, you could either delete files to free up more space on the disk, or you could add a new disk to expand the storage pool. The UI from the Alert Viewer guides you through the task of adding a disk to the storage pool.

clip_image006[6]

clip_image008[7]

That’s it!

This is a short introduction because this feature is easy to configure, use, and manage. I hope you like this feature and the integration work we did in Windows Server 2012 Essentials. Your feedback is important to us. Please report any issues or suggestions on the forum.

PowerTip: Use PowerShell to Easily View Contents of VBScript

$
0
0

Summary:  Learn how to use Windows PowerShell to view contents of a VBScript file.

Hey, Scripting Guy! Question How can I use Windows PowerShell to easily view the contents of a VBScript file, such as SLMGR.VBS? I do not know the path to the file.

Hey, Scripting Guy! Answer You do not need to know the path to the file. Use the Windows PowerShell Get-Command cmdlet to find the script (listed, incidentally, as an application) and pipe the results to Get-Content, as shown here.

Get-Command -Name slmgr.vbs | Get-Content | more

You can find the path to all of these types of VBScripts by using a wild card for the name, as shown here.

Get-Command -Name *.vbs -CommandType application | select path

 

The Great Big Hyper-V Survey of 2012

$
0
0

Some of the Hyper-V MVPs are currently running “The Great Big Hyper-V Survey of 2012”.  You can read about it here:

This is not a survey that is run by Microsoft – but I would encourage you to go and participate.  The MVPs who run these surveys have done a great job of analyzing and publishing the results at the end of the day – and it is really interesting to see what everyone is doing with Hyper-V.

Cheers,
Ben

Updated Links on Windows Server 2012 File Server and SMB 3.0

$
0
0

In this post, I'm providing a reference to the most relevant content related to Windows Server 2012 that is related to the File Server, the SMB 3.0 features and its associated scenarios like Hyper-V over SMB and SQL Server over SMB. It's obviously not a complete reference (there are new blog posts every day), but hopefully this is a useful collection of links for Windows Server 2012 users.

Summaries of SMB 3.0 features in Windows Server 2012

Articles on File Storage for Application Servers (Hyper-V over SMB, SQL Server over SMB)

Articles on SMB Transparent Failover and SMB Scale-Out

Articles on SMB Direct (SMB over RDMA) and SMB Multichannel

Articles on Failover Clustering related to File Server Clusters

Articles on other SMB 3.0 features and capabilities

Windows Server File Server Tips

Private Cloud Solution Architecture

TechNet Radio (includes Video) with Bob Hunt and Jose Barreto

Knowledge Base articles (Support KBs) about Windows Server 2012 SMB 3.0

Protocol Documentation

Older posts and videos

-------

Change tracking:

  • 04/24/2012: Original post
  • 05/01/2012: Update: Added links to two SNW Spring 2012 presentation
  • 05/03/2012: Update: Added links to protocol documentation, blog post on SMB Encryption and private could blog post 
  • 05/18/2012: Update: Added links to SDC presentations, plus blogs on basics of SMB PowerShell and SMB PowerShell
  • 06/13/2012: Update: Added 3 new blog post, one new KB article, one new video link
  • 08/02/2012: Update: Additional blog posts and links to TechEd recordings
  • 08/26/2012: Update: Two additional blog posts
  • 11/27/2012: Update: Added 10 file server tips, SNW Fall 2012 presentations, TechNet Radio links. Moved older posts down.

Use PowerShell to Detect Power State and to Set Power Plan

$
0
0

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to detect the power state on his laptop and to set the appropriate power plan.

Microsoft Scripting Guy, Ed Wilson, is here. This evening in Oslo, Norway, the Scripting Wife and I are attending the Microsoft Technology User Group meeting. The meeting runs from 18:00 until 20:00 (CET). Interestingly enough, the lows in Oslo and in Charlotte, North Carolina, are about the same. The big difference is the 30-degree temperature between high and low in Charlotte. Oh well, and the other big difference is a bit of snow! WOO HOO!!!

Detect power state by using PowerShell

To detect whether or not my laptop is running on battery, I can query the Win32_Battery WMI class. This WMI class is in the Root\CimV2 WMI namespace and has been around since forever. There is nothing special about this class. The only thing is to ensure that my laptop actually populates information in the class—and that the information is reliable.

In the past, I have had laptops in which the Win32_Battery WMI class did not populate at all when the laptop was plugged into electricity; it only became available when the laptop ran on battery. There is another WMI class—Win32_Portablebattery. This WMI class also derives from Cim_Battery, but it provides a bit more information than Win32_Battery. On the other hand, Win32_Battery provides information about recharge status. The differences are shown here.

PS C:\> $b = Get-CimClass win32_battery

PS C:\> $p = Get-CimClass win32_portablebattery

PS C:\> Compare-Object $b.CimClassProperties.name $p.CimClassProperties.name

InputObject                                SideIndicator

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

CapacityMultiplier                         =>

Location                                   =>

ManufactureDate                            =>

Manufacturer                               =>

MaxBatteryError                            =>

BatteryRechargeTime                        <=

ExpectedBatteryLife                        <=

The battery is discharging

If the laptop runs on the battery, the BatteryStatusreports 1, which means that “The battery is discharging.” The other conditions are a bit more complicated. The following chart details the meaning of the status of the battery.

Value

Meaning

 1

The battery is discharging.

 2

The system has access to AC so no battery is being discharged. However, the battery is not necessarily charging.

 3

Fully Charged

 4

Low

 5

Critical

 6

Charging

 7

Charging and High

 8

Charging and Low

 9

Charging and Critical

 10

Undefined

 11

Partially Charged

 

For my purpose, I use the value like a Boolean—1 means ”on battery,” everything else means “plugged in” (at least for my script). Here is how I obtain the battery status.

(Get-CimInstance win32_battery).batterystatus

Set the appropriate power plan

To set the power plan on my laptop, I use the Win32_PowerPlan WMI class (see yesterday’s article) and I call the Activate method. All I really need to do is to add a bit of logic, then retrieve the appropriate power plan, and activate it. I decided, right now, that I will use Power Saverif the battery is discharging (1), High Performanceif the battery is fully charged (3) and Balanced, if the battery is any other status. The script is a simple If / ElseIF / Else type of construction. Here is the code.

SetPowerSaverPlan.ps1

 

If ((Get-CimInstance win32_battery).batterystatus -eq 1)

  {

   $p = Get-CimInstance -Name root\cimv2\power -Class win32_PowerPlan `

    -Filter "ElementName = 'Power Saver'"      

    Invoke-CimMethod -InputObject $p -MethodName Activate }

Elseif ((Get-CimInstance win32_battery).batterystatus -eq 3)

  {

   $p = Get-CimInstance -Name root\cimv2\power -Class win32_PowerPlan `

    -Filter "ElementName = 'High performance'" 

    Invoke-CimMethod -InputObject $p -MethodName Activate }

Else

 {

   $p = Get-CimInstance -Name root\cimv2\power -Class win32_PowerPlan `

    -Filter "ElementName = 'Balanced'"  

    Invoke-CimMethod -InputObject $p -MethodName Activate }

What I do not know, yet, is how often the script will select High Performance. This is because, with the Windows Battery Conditioning technology, the battery does not always fully charge. At times, for example, on my laptop, the battery stops charging at 98 percent or so—and I do not know if THAT condition reports as fully charged (3).Therefore, after a bit of testing, I may eliminate the ElseIf condition, and do a simple If / Else and use the Else condition to set the full power plan.

If I want to check to see what power plan gets applied as a result of the above script, I can do a simple query to check for the active power plan, as shown here.

Get-CimInstance -Name root\cimv2\power -Class win32_PowerPlan  -Filter "isactive = true" |

  Select-Object elementname

Well, that is about it for now. We have a lot of stuff to do and to see here in Oslo before the user group meeting this evening.

Join me tomorrow when I will talk about changing the power plan on servers running Windows Server 2008 R2 and Windows Server 2012.

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

Ed Wilson, Microsoft Scripting Guy


Dortmund, Geneva, Zurich

$
0
0
SUMMARY: Our trip now takes us from the Netherlands to Dortmund, to Geneva and on to Zurich Well the Scripting Wife and I had a wonderful time at the first ever Dutch PowerShell user group. I delivered two presentations and made dozens of new contacts...(read more)

Windows Azure Active Directory Processes 200 Billion Authentications

$
0
0

WinAzure_rgb_Blk_DAt Microsoft, we have been on a transformative journey to cloud computing and we have been working with customers every step of the way. Millions of customers have embraced the cloud and we are excited to share the news that we’ve reached a major milestone in cloud scale computing.  Since the inception of the authentication service on the Windows Azure platform in 2010, we have now processed 200 BILLION authentications for 50 MILLION active user accounts. In an average week we receive 4.7 BILLION authentication requests for users in over 420 THOUSAND different domains. This is a massive workload when you consider others in the industry are attempting to process 7B logins per year, Azure processes close to that amount in a week.

See the full story at http://blogs.msdn.com/b/windowsazure/archive/2012/11/27/windows-azure-active-directory-processes-200-billion-authentications-connecting-people-data-and-devices-around-the-globe.aspx.

Group Policy in Windows Server 2012: Results Report Improvements

$
0
0

 

Another change we made in Windows Server 2012 is in the Resultant Set of Policy reports. In previous versions of Server, you had to look at the results report, and the event log, and the tracing logs to find all the information you needed about why policy did or did not apply. Now, we’ve consolidated most of that information right into the results report to make troubleshooting Group Policy easier.

The biggest change we made is to the Summary section.

Here’s what the summary section used to look like:

clip_image001

And here’s what it looks like now:

clip_image003

As you can see, we summarized important information that was previously difficult to find, like loopback mode, slow link detection, and GPOs with enforce (or have block inheritance enabled)

We also added information to the computer/user details. Now we show how long client side extensions take to process, the last time an extension processed and detailed event log information from the latest pass of policy.

We also added more detail to the report, including sorting information by GPO, showing where the GPOs were linked, and reporting on modifiers like “enforced” or “disabled”.
clip_image005

How you run the GP results report hasn’t changed. If you choose to run it from the GPMC against a remote client, the client needs the following firewall ports opened:

· Remote Event Log Management (NP-In)

· Remote Event Log Management (RPC)

· Remote Event Log Management (RPC_EPMAP)

· Windows Management Instrumentation (WMI-In)

Running it this way against a downlevel client still gets you the new format and most of the new information.

The command line GP results functionality still works. You can run gpresult.exe /h out.html on a client machine to have the report created as out.html. However, this will only get you the new format and information when it’s run on a Windows “8” machine.

Add-On Software Now Available for Windows Server 2012 Essentials

$
0
0

[Today’s post comes to us courtesy of Duncan Chalmers, release manager for Windows Server Essentials]

Hello everyone. I’d like to update you on three additional add-on software that are now available for Windows Server 2012 Essentials. We have added the Health Report add-in, made available the System Center Management Packs, and updated the My Server for Windows Phone app:

Please read the other postings on this Blog for more details about each of these cool new add-on software for Essentials.

PowerTip: Use PowerShell to Determine if a Laptop Is Running on Battery

$
0
0

Summary: Learn how to use Windows PowerShell to determine if a laptop is running on battery.

Hey, Scripting Guy! Question How can I use Windows PowerShell to determine if my laptop is running on battery?

Hey, Scripting Guy! AnswerUse the Win32_Battery WMI class and look for a BatteryStatus of 1—this means the battery is discharging (in use). Here is an example using either the Get-WmiObject or the Get-CimInstance cmdlets.

Get-WmiObject Win32_Battery

Get-CimInstance Win32_Battery

 

Ask the Core Team Blog

$
0
0
The blog brought to you by the Microsoft Enterprise Platforms Support: Windows Server Core Team.

Ask Premier Field Engineering (PFE) Platforms Blog

$
0
0
Ask Premier Field Engineering (PFE) Platforms Blog

Ask the Performance Team Blog

$
0
0
Thoughts from the EPS Windows Server Performance Team.

Failover Clustering and Network Load Balancing Team Blog

$
0
0
Failover Clustering and Network Load Balancing Team Blog

Private Cloud Blog

$
0
0
Private Cloud is the implementation of cloud services on resources that are dedicated to your organization, whether they exist on-premises or off-premises.

http://blogs.technet.com/b/windowsserver/

$
0
0
Your guide to the latest Windows Server product information.

Group Policy in Windows Server 2012: Infrastructure Status

$
0
0

 

You may be asking yourself, “What does infrastructure status have to do with Group Policy”. Well, group policy depends on other technologies to ensure that policy settings are replicated throughout your environment so that end users / computers will get the settings that you configure.

And when you’ve run into problems you start wondering: did replication finish? Are there errors? And if there are, how am I supposed to see what errors have happened?

Since you are a GP admin and not necessarily an AD/DFSR admin, you only want to know that all of the replication that is supposed to be happening for Group Policy Objects is happening. In Windows Server 2012 we have added a feature that will tell you just this.

The feature is called Infrastructure Status and you can find it in the GPMC results pane for each domain object. Simply click the domain that you are interested in and in the result pane you will see a new tab labeled “Status”. This “status” tab will show the status of GPO replication (for both SYSVOL and AD) of all GPOs across your entire domain.

IH1

If you suspect you have a replication problem with a single GPO, to speed up your troubleshooting, you can check the infrastructure health status for that GPO. To see the status, open the Group Policy Objects node and select the GPO listed under that node.

Note: The infrastructure health status is not available when you click on GPO links displayed under the domain and OU nodes.

ih2

Initially, the Status tab will not have any information about replication status. Once you hit “detect now”, the GPMC contacts all domain controllers in your domain and collects information about Group Policy Object(s) from AD and SYSVOL. It uses a “baseline” domain controller to compare GPO information against GPO information from all other domain controllers. The baseline domain controller defaults to the DC that the GPMC is connected to but can be changed by clicking Change.

The first level of information will show the number of domain controllers that have GPO information “In Synch” with the baseline domain controller and the number of domain controllers that have GPO information that is “In Progress”. Domain controllers that are “In Synch” have all of the same GPO information as the baseline DC. Domain controllers that are “In Progress” do not have all of the same GPO information as the baseline DC. This may mean that there is a problem with GPO replication but it also may mean that replication just has not converged yet. For those DCs that are “In Progress” additional details are provided which explain exactly what is not in sync. The following is the list of reasons a DC can be “In Progress”:

Active Directory

 

Accessibility

If the Active Directory service cannot be contacted on a domain controller, this message will be displayed.

 

GPO Version

If the GPO version information in AD is different than the baseline domain controller, this message will be displayed and details about the GPOs that are different can be seen by clicking the message.

 

Number of GPOs

If the total number of GPOs in AD is different than the baseline domain controller, this message will be displayed and details about the number of GPOs that are different can be seen by clicking the message.

 

Created Date

If the created date stored in AD for any GPO is different than the baseline domain controller, this message will be displayed and details about the GPOs with different dates from the baseline DC can be seen by clicking the message.

 

Modified Date

If the modified date stored in AD for any GPO is different than the baseline domain controller, this message will be displayed and details about the GPOs with different dates can be seen by clicking the message.

 

ACLs

If the Active Directory permissions on any GPO are different than the baseline domain controller, this message will be displayed and details about the GPOs with different permissions can be seen by clicking the message.

File System (SYSVOL)

 

Accessibility

If the SYSVOL folder cannot be contacted on a domain controller, this message will be displayed.

 

GPO Version

If the GPO version information in the GPT.ini file is different than the baseline domain controller, this message will be displayed and details about the GPOs that are different can be seen by clicking the message.

 

Number of GPOs

If the total number of GPOs in SYSVOL is different than the baseline domain controller, this message will be displayed and details about the number of GPOs that are different can be seen by clicking the message.

 

GPO Contents

If the content of SYSVOL for any GPO is different than the baseline domain controller, this message will be displayed and details about the GPOs with inconsistent contents can be seen by clicking the message. The content comparison is performed by creating a file hash for all files within each GPO folder on SYSVOL. The hash from the baseline DC is compared to the hash from each DC.

 

ACLs

If the SYSVOL permissions on any GPO are different than the baseline domain controller, this message will be displayed and details about the GPOs with different permissions can be seen by clicking the message.

Within the details of each of the errors a link is provided to help you further investigate why the DC is not In Sync.

Group Policy can be very difficult to troubleshoot and we hope that this feature allows you to find and resolve GP related replication issues more quickly.

Viewing all 2283 articles
Browse latest View live


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