Monday, October 17, 2016

Determining the SID for User Account

Determining the SID for a Local User Account

Here’s a simple script that returns the SID for a local user named mozaid:











Determining the SID for an Active Directory User Account


You can use the exact same approach to determine an Active Directory SID as you do for local user SID; the only thing is to include both the domain (fabrikam) and the user name (mozaid):



Friday, September 9, 2016

ARM Template to create sample PaaS Solution

{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"serverFarmName": {
"type": "string",
"minLength": 1,
"defaultValue": "testlab"
},
"serverFarmSKU": {
"type": "string",
"allowedValues": [
"Free",
"Shared",
"Basic",
"Standard"
],
"defaultValue": "Free"
},

ARM Template to Build vNet and Storage Account

{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",

"contentVersion": "1.0.0.0",

"parameters": {

"storagetemplateType": {

"type": "string",

"defaultValue": "Standard_LRS",

"allowedValues": [

"Standard_LRS",

"Standard_ZRS",

"Standard_GRS",

"Standard_RAGRS",

"Premium_LRS"

]

Friday, April 5, 2013

The Application Virtualization Client could not complete the operation. A device attached to the system is not functioning.


Issue:-

In my environment I sequence the application on App-V 4.6 SP1 and then deploy the application msi on Citrix XenApp Servers.
I sequenced the application successfully but when I was installing the same on Citrix XenApp Servers it gave the below error message.
 “The Application Virtualization Client could not complete the operation.

A device attached to the system is not functioning. “

Then I checked the Event Viewer on the XenApp Server which gave below details:-

Monday, March 25, 2013

SMS_MP_CONTROL_MANAGER failed

Issue:-

On my SCCM server 2007 R3, component SMS_MP_CONTROL_MANAGER status changed to critical.

When I checked the status message for component SMS_MP_CONTROL_MANAGER it said:-“MP could not write settings to WMI. This component stopped“

Wednesday, March 20, 2013

Powershell execution of scripts is disabled on this system

Issue:-

First time when you launch PowerShell and try to run any PowerShell scripts file, it will not run and gives the below error. Here I am trying to run a simple ps script “directory.ps1” with Get-Chitditem cmdlet inside it.

"File C:\ZAid\Testing\Script.ps1 cannot be loaded because the execution of scripts is disabled on this system. "


When PowerShell is first installed the default execution policy is “Restricted.” This means PowerShell will not run scripts or configuration files. Here is a list of policy levels:

Thursday, December 13, 2012

Failed to run the action: Enable BitLocker. Unspecified Error: (80004005)

Issue:-
When you run a Configuration Manager 2007 OSD Task Sequence that has the "Enable BitLocker" task in it, the task fails to run and BitLocker is not enabled on the PC. Looking the SMSTS.log reveals the below error message:

SMSTS.log

Executing command line: OSDBitLocker.exe /enable  /wait:False /mode:TPM /pwd:AD
==============================[ OSDBitLocker.exe ]==============================
Command line: "OSDBitLocker.exe" /enable /wait:False /mode:TPM /pwd:AD
Initialized COM
Command line for extension .exe is "%1" %*     OSDBitLocker   
Set command line: "OSDBitLocker.exe" /enable /wait:False /mode:TPM /pwd:AD
Target volume not specified, using current OS volume

Azure Policy support for remediating tags for existing resources

Use Azure policy to remediate tags for existing resources. https://azure.microsoft.com/en-us/updates/azure-provides-at-scale-tags-managem...