Thursday, October 31, 2013

Link


https://www.kamtm.com/url/u.aspx?2A4CD1C5A49449808

$w = Get-SPWebApplication -identity http://sp2013wfe1

$rmset = $w | Get-SPRequestManagementSettings

New-SPSite -Url http://sp2013wfe1 -owneralias sp2013\Administrator -ownerEmail administrator@sp2013.loc

New-SPSite -url http://www.contoso.loc -HostHeaderWebApplication $w -owneralias sp2013\Administrator -owneremail administrator@sp2013.loc -template sts#0

New-SPSite -url http://www.fabrikam.loc -HostHeaderWebApplication $w -owneralias sp2013\Administrator -owneremail administrator@sp2013.loc -template sts#0

$mp1 = Add-SPRoutingMachinePool -RequestManagementSettings $rmset -Name MachinePool1 -MachineTargets @("SP2013WFE1")

Get-SPRoutingMachinePool -RequestManagementSettings $rmset

$rmset | Get-SPRoutingMachineInfo -Name "sp2013wfe1"

$rmmi = $rmset | Get-SPRoutingMachineInfo -Name "sp2013wfe1"
Set-SPRoutingMachineInfo -Identity $rmmi -StaticWeight 9

$criteria = New-SPRequestManagementRuleCriteria -Property UserAgent -MatchType Regex -Value ".*Microsoft Office OneNote 2013*"
$rmset | Add-SPThrottlingRule -Name "Refuse OneNote Requests" -Criteria $criteria -Threshold 8

$criteria = New-SPRequestManagementRuleCriteria -Property Url -MatchType Regex -Value ".*\.pdf"
$rule = Add-SPRoutingRule -RequestManagementSettings $rmset -Name SendAllPdf2mp1 -ExecutionGroup 0 -MachinePool $mp1 -Criteria $criteria

$criteria = New-SPRequestManagementRuleCriteria -Property Host -MatchType Equals -Value "www.fabrikam.loc"
$rule = Add-SPRoutingRule -RequestManagementSettings $rmset -Name fabrikam2mp1 -ExecutionGroup 1 -MachinePool $mp1 -Criteria $criteria

%systemroot%\System32\runas.exe /user:user@dc07.loc "%ProgramFiles(x86)%\Internet Explorer\iexplore.exe

Tuesday, May 28, 2013

Commerce Server User Group

Just had the first User Group meeting for Commerce Server 10. It was interesting to hear about some of the projects that are out there. There is one public site already live. Thanks to all that attended.

Commerce Server Inventory System Part 7

Common Inventory Scenarios

There are a couple of scenarios that are common enough to justify a discussion on how to set them up in the Inventory System. Among these scenarios are:

• Configuring SKUs to be back-orderable
• Configuring SKUs to be pre-orderable

Configuring your Web site to allow your customers to purchase back-ordered SKUs and pre-order unavailable SKUs increases your ability to maximize sales. Rather than having to wait for inventory levels to be replenished, you can continue to market and sell out-of-stock or unreleased inventory. Customers expect and demand this functionality, and if you are unable to satisfy these demands you risk losing your customers.

Configuring SKUs to be Back-Orderable

Giving your customers the ability to back-order inventory adds rich functionality and flexibility to your Web site. Fortunately, setting up this process is both straightforward and simple. For the golf pro shop, you want to make sure that the product variants can continue to be purchased even if they have run out-of-stock.Consequently, you must configure the site to allow back-ordered inventory.
In order to define the product variants as back-orderable, you must use the Commerce Server Manager and the Catalog Manager.

1. Click Start > All Programs > Microsoft Commerce Server > Commerce Server Manager.
2. Under Commerce Sites expand the ProShop site, then expand Site Resources. Under Site Resources select Inventory. The Inventory resources will display in the Commerce Server Resource window.
3. Right-click the Stock Handling resource and click Properties. This will open the Stock Handling Properties screen.
4. Change the Selected Property Value from 0 to 1 (Figure 4-12). This indicates that the Commerce Site uses special handling for SKUs, and will otherwise prevent back-orderable products from being reported as out-of-stock.


Figure 4-12

5. Now that you have specified that the site uses special handling for SKUs you must also tell the site to display back-ordered SKUs (this is set to True by default). Click the Display Backordered Items property and change the value from 0 (False) to -1 (True). Click the OK button when finished. Close the Commerce Server Manager.

6. You must now set the appropriate inventory SKU properties to allow your product or product variants to be back-orderable. Click Start > All Programs > Microsoft Commerce Server > Commerce Server Manager.
7. In the Catalogs tree view pane, expand the ProShopCatalog catalog, the Golf Clubs category, and select the Drivers category.
8. Double-click the “Calloway FT-5 Driver” from the Category and Product Details list (or any available
product). This will open the product properties screen.
9. Click the Variant Inventory Properties tab (the Inventory Properties tab if the catalog does not have product variants). In order to make the product variants associated with this driver back-orderable, you must specify two properties: Backorderable and Backorder Limit. Click the Backorderable check box for each variant, and define a positive value for the Backorder Limit. Unless these two properties are defined, the product or product variant will not function as a back-orderable SKU on the Web site. To provide more information for customers, you may also want to specify the Backorder Availability date.
10. Once you have specified the Backorderable and Backorder Limit for the product variants click Save And Close to finish.

Configuring SKUs to be Pre-Orderable

The process for defining a SKU as pre-orderable is very similar to defining a SKU as back-orderable. In order to define the product variants as pre-orderable, you must use the Commerce Server Manager and the Catalog Manager.
1. Click Start > All Programs > Microsoft Commerce Server > Commerce Server Manager.
2. Under Commerce Sites expand the ProShop site, and then expand Site Resources. Under Site Resources select Inventory. The Inventory resources will display in the Commerce Server Resource window.
3. Right-click the Stock Handling resource and click Properties. This will open the Stock Handling Properties screen.
4. Change the Selected Property Value from 0 to 1. This indicates that the Commerce Site uses special handling for SKUs, and will otherwise prevent pre-orderable products from being reported as out-of-stock.
5. Now that you have specified that the site uses special handling for SKUs you must also tell the site to display pre-ordered SKUs (this is set to True by default). Click the Display Preordered Items property and change the value from 0 (False) to -1 (True). Click the OK button when finished. Close the Commerce Server Manager.
6. You must now set the appropriate inventory SKU properties to allow your product or product variants to be pre-orderable. Click Start > All Programs > Microsoft Commerce Server > Commerce Server Manager.
7. In the Catalogs tree view pane, expand the ProShopCatalog catalog, the Golf Clubs category, and select the Drivers category.
8. Double-click the “Calloway FT-5 Driver” from the Category and Product Details list (or any available product). This will open the product properties screen.
9. Click the Variant Inventory Properties tab (the Inventory Properties tab if the catalog does not have product variants). In order to make the product variants associated with this driver pre-orderable, you must specify two properties: Preorderable, Preorder Limit, and Preorder Availability date. Click the Preorderable check box for each variant, define a positive value for the Preorder Limit, and set a Preorder Availability date for the future.
10. Once you have specified the Preorderable, Preorder Limit, and Preorder Availability Date for the product variants click Save And Close to finish.
Remember that Commerce Server will first exhaust the pre-order limit before moving onto the back-order limit.For efficiencies sake, it would probably be best to define the back-orderable and pre-orderable settings when you first configure your products or product variants. Consequently, make sure to add your product catalog to your inventory catalog immediately after creating the product catalog. This way the inventory SKU properties are available from the very beginning.


External Inventory Sources

In most large-scale Commerce Server solutions the Inventory System will likely work in parallel with an
external LOB application. If the solution requires real-time inventory management, then the BizTalk Server 2006 adapters for Commerce Server can be used to keep both systems up-to-date and working synchronously. If the solution doesn’t require real-time inventory, then export and import process can be utilized to keep both systems synchronized. Through either the BizTalk inventory adapter or import processes, it is possible to aggregate multiple external inventory sources into a consolidated inventory catalog. This can be a very efficient way to combine inventory data together that would otherwise be disparate and unrelated, so that the Website has a coherent depiction of inventory levels.

The BizTalk Server Inventory Adapter

Utilizing the BizTalk adapters for Commerce Server, you can provide relatively easy integration between
Commerce Server, BizTalk Server, and a warehousing LOB application. The inventory adapter defines a specific XML format that is exchanged between Commerce Server and BizTalk Server, so that inventory data can then be transferred between BizTalk Server and the warehousing LOB inventory system.

Exporting and Importing Inventory Catalogs

As with most tasks in the Inventory System, exporting and importing inventory catalog is very similar to
exporting or importing product catalogs. Exporting and importing inventory catalogs is used to keep inventory synchronized either with a trading partner or a LOB system. Unlike inventory data exchange via the BizTalk 2006 adapters, exporting and importing inventory catalog data is not a real-time solution, and should only be used if it is not critical to transfer real-time information concerning the condition of the inventory.
Inventory catalog exports and imports is most often accomplished by using the Catalog Manager, although the Inventory APIs can also be used directly to export and import data. The inventory catalog can be exported in full, incrementally, or based on an expression. If advanced options are specified, you can select whether or not to include inventory catalog schema data, as well as choose whether or not to export deleted or blank values. Furthermore, specific inventory catalog and SKU metadata can be chosen to be excluded or included in the export.
Inventory catalogs can be imported either incrementally, which will update an existing inventory catalog, or in full, which replaces the entire inventory catalog. Additionally, you can choose to import, validate, or validate and import inventory catalog data. If advanced options are specified, you can select the inventory catalog(s) you want to import, import schema changes, transact the import process, and choose specific inventory catalog and SKU metadata to be excluded or included in the import.

Summary

The inclusion of the Inventory System into the Commerce Server product provides a comprehensive inventory management system that is capable of providing real-time inventory conditions to customers and partners. Inventory catalogs are created to represent inventory levels for products and product variants contained within product catalogs. Product catalogs that are added to an inventory catalog are mapped to the inventory catalog, and can only be mapped to one inventory catalog at a time. Multiple product catalogs, including both base and virtual product catalogs, can be mapped to a single inventory catalog. Within the context of the Inventory System, products and product variants are referred to as stock-keeping units (SKUs), as they represent physical items that exist in inventory.

Inventory catalogs are tightly coupled to product catalogs, and are similarly extendable and modifiable. The inventory catalog and inventory SKU metadata can be extended to contain custom information about the inventory catalog and SKUs. The Inventory System can provide real-time reporting of inventory conditions, indicating the inventory is in stock, out-of-stock, back-ordered, or pre-ordered. Additionally, the Inventory System provides thresholds to warn administrators if stock levels are running low and need to be replenished. The Inventory System can integrate with external LOB applications, such as warehousing applications, either through the BizTalk Server adapters or the export and import processes. The export and import processes can run either through the Catalog Manager or directly by the Inventory APIs.

Based on my book on Commerce Server. Part 1.

Sunday, July 29, 2012

Corrections to 10232 Designing and Developing Microsoft SharePoint Server 2010 Applications


In Lab7 Exercise 1, you need to change the SharePoint path in the solution to point to the correct site.
After completing Lab 9 exercise 1, the first web part still has an error message.Problem is a damaged GUID in the web.config BindingRedirect. Explantion is here:
Lab 11 gives an error importing the solution file.
Solution is to make sure the Visual Studio Solution has a short path name by bringing it closer to the root.
Lab 12 Exercise to is missing the OK step to create the web app and the site collection.
Module 12 Optional Exercise 3 needs to change the SharePoint site path in the properties of the solution.
Lab 14 Exercise 1, the error message at the end of step 4 can be ignored.
Step 5 is missing a step to add the Unit Test to List of Tests, this can be done with drag and drop.
Step 7 should be changed to find text “Libraries” rather than “Contoso Performance List Test”.



Saturday, June 30, 2012

Corrections to MOC 50469 SharePoint 2010 End User Level II


Page 8 Step 9 should be Intranet site not My Portal site
Page 108 Remove heading for Task 19, is duplicated
Page 108 Second Task 19, before step 2 need to save the workflow
Page 168 Task 2 wrong path for lab file should be 01_Lab01
Page 171 Step 7 don’t get error so can jump to step 10.
Page 172 Step 3, make sure correct user shown, caching can cause a problem here.
Page 199 Step 3, the site collection feature is called SharePoint Server Publishing Infrastructure
Page 235 Step 11 Need to add a site column called classification to a content type called MyDocument based on Document. Need to add this content type to Shared Documents also.

Sunday, June 3, 2012

Ascentium Branded Commerce Server 2009 R2

Just tested the latest version of Commerce Server 2009 R2 with Ascentium branding. Worked just like the previous Microsoft branded version. The only non branding difference I could spot, is that it did not check for the Cross Scripting Engine before installing. Although there are other minor changes listed in the documents here. We hope to use this version in the classroom in parallel in our next class and then switch over to this version for future classes.

Monday, May 21, 2012

Commerce Server Inventory System Part 6


Creating an Inventory Catalog

The process of creating an inventory catalog is straightforward and relatively simple. Inventory catalogs are created through the Catalog Manager, and then product catalogs are mapped to them.  A product catalog can only be mapped to one inventory catalog, but an inventory catalog can have many product catalogs.
The pro golf shop requires only one inventory catalog, but both the base and virtual product catalogs must be mapped to the inventory catalog.  The reason both catalogs are mapped is that inventory quantity must be allocated for both the online retail customers and the trading partners.
A default inventory catalog already exists, called Default.  This catalog cannot be deleted, and will be used for the golf pro shop inventory catalog.
To create the inventory catalog, you can use the Catalog Manager.
           1.       Click Start > All Programs > Microsoft Commerce Server > Catalog Manager.
           2.       Under the View pane, click Inventory Catalogs.  After you have selected the inventory catalogs view, the Task pane will update to show tasks specific to inventory catalogs.
           3.       Double-click the Default inventory catalog.  This will open the inventory catalog properties window.
           4.       The Base Properties tab is selected by default (Figure 4-7).  Since we added the Inventory Catalog Id property definition to the Inventory Catalog Metadata, and it is a required property, you must specify a value.  Note that this property is on the base properties tab, rather than the custom properties tab.  This is because the Display as Base Property value was set to True on the property definition.  If it had been set to False, this property would be on the custom properties tab.


Figure 4-7

           5.       Click the Product Catalogs tab (Figure 4-8).  By default, no product catalogs have been added to the default inventory catalog.  To add our catalogs, click the Add Catalog button.

Figure 4-8

           6.       The Product Catalogs screen will list all the available product catalogs that can be added to this inventory catalog (Figure 4-9).  Since a product catalog can only be mapped to one inventory catalog only unmapped product catalogs are displayed.  Either select both the ProShopCatalog and TradingPartnerCatalog, or click the Select All button.  Click the OK button to continue.

Figure 4-9

           7.       Click the Save And Close button to finish.
Once a product catalog has been mapped to an inventory catalog, inventory data can now be associated to your products or product variants.

Adding Inventory to SKUs

Now that the product catalogs have been mapped to an inventory catalog, inventory data must be added to the SKUs.  The SKU can either be a product or product variant, depending on how the catalog was defined.  If a Variant Id was specified when the product catalog was created then inventory information resides at the product variant level.  If a Variant Id was not specified when the product catalog was created then the inventory information resides at the product level.
The golf pro shop has product variants, and consequently inventory information must be entered for each of the product variants.  To add inventory information to the pro shop product variants, you must use the Catalog Manager.
           1.       Click Start > All Programs > Microsoft Commerce Server > Catalog Manager.
           2.       Under the View pane, click Catalogs.  After you have selected the catalogs view, the Catalogs tree view pane will display all the product catalogs.
           3.       In the Catalogs tree view pane, expand the ProShopCatalog catalog, the Golf Clubs category, and select the Drivers category.
           4.       Double-click the “Calloway FT-5 Driver” from the Category and Product Details list.  This will open the product properties screen.
           5.       Now that the product catalog has been mapped to an inventory catalog, a new tab called Variant Inventory Properties is.  Select the Variant Inventory Properties tab.
           6.       On the Variant Inventory Property tab (Figure 4-10) you will see a grid that contains all the variants in rows and all the inventory SKU metadata as columns (Figure 4-10).  For a non-product variant catalog this tab is called Inventory Properties (Figure 4-11).  By default four inventory SKU properties are required: Status, Onhand Quanitity, Stockout Threshold, and Warehouse Location (the property definition you added to the inventory SKU metadata).  Enter values for each of the variants.  Make sure to set the status to Enabled, the onhand quantity greater than 0, and the stockout threshold to 1 (indicating that there must be at least one SKU available to be considered in stock).


Figure 4-10


Figure 4-11

           7.       Once all the inventory information has been added to the product variants, click Save And Close to finish.
Now that inventory exists for the product variants on the golf pro shop, you could actually begin to sell your products online (assuming you have already developed the Web site).  Since inventory exists for products, such as golf club drivers, they are considered in stock and can be purchased.  For most online Web sites, however, you will probably want to turn on some special inventory handling, such as inventory back-ordering and pre-ordering.

Based on my book on Commerce Server. Part 7 is herePart 1.