How to- Deploy Office 2010 using SCCM 2012

 

1. MSP file

The first step is to create a customize MSP file:

1. Open CMD type setup.exe /admin at the command line from the root of the network installation point that contains the Office 2010 source files for example use the following: d:installationoffice2010setup.exe /admin

clip_image001[4]

Choose to create a new Setup customization (.msp) file

clip_image002[4]

Configure the file according to your company requirements

More details on Office Customization Tool in Office 2010

Now that you MSP file is ready you can create you SCCM package

Steps for creating Office 2010 deployment using SCCM 2012

1. Create collection

· under Asset and Complaisance –> Device collections –> right click –> Create device Collection

clip_image003[4]

· Under name : write the name of the collection

· Under limiting choose “All systems”

clip_image004[4]

· Under membership rules leave empty (for now) and click Next

clip_image005[4]

· click OK

clip_image006[4]

· Click Next

clip_image007[4]

· Click Close

clip_image008[4]

2. Create Package

· Under Software library – Packages  – Right click –  Create package

clip_image009[4]

· Enter the package details

o Name

o Manufacture

o Language

o Version

o Under Source folder : Office 2010 installation folder

clip_image010[4]

· Click next

· Choose the default –  standard program

clip_image011[3]

· Click Next

· Under command line enter the msp file you created in the following format :

setup.exe /adminfile office2010.MSP

clip_image012[3]

· Click Next

clip_image013[3]

· Click next

· on the completion windows Click Close

clip_image014[3]

3. Distribute The package to the distribution point

· Right click on the package you created

· Distribute content

clip_image015[3]

· In the general window click next

clip_image016[3]

· on the content destination window click Add and select – Distribution point

clip_image017[3]

· Select your distribution point .

4. Deploy your package to the collection you created

· Right click on the package – Deploy

clip_image018[3]

· Select the Office 2010 collection you created earlier

clip_image019[3]

· Choose the deployment settings according to your company requirements.

Posted in SCCM 2012 | Leave a comment

How to change the email address for getting AD Dirsync notifications

A part of the Office 365 Hybrid migration is to Synchronize AD object to the cloud ,

If there are errors regarding the synchronization you will get an email .

By default those email will sent to the email address you insert to the admin cloud  user you created when first registering to the cloud

In order to change this email address do the following :

 

Steps to be performed:

================

 

 

 

 

 

 

  • In the new pop-up windows click on Edit
  • Change the “Technical Contact” email address to the desired external email address. Cannot be the same tenants Office 365 Account.
  • Click on Save
Posted in Office365 | Leave a comment

Hybrid configuration wizard Error: Failed to find the address type object in Active Directory for address type “MS:AMD64”..

ERROR: Updating hybrid configuration failed with error ‘Subtask Configure execution failed: Configure Recipient Settings

Execution of the Set-EmailAddressPolicy cmdlet had thrown an exception. This may indicate invalid parameters in your Hybrid Configuration settings.

The following error occurred during validation in agent ‘Rus Agent’: ‘Failed to validate the proxy address template “YourMS-mailName”. Additional information: Failed to find the address type object in Active Directory for address type “MS:AMD64”..

Consider the following scenario

You have an exchange 2010 environment  that was upgraded from an older exchange version

When you try to run the Hybrid configuration wizard you get the following error :

ERROR: Failed to find the address type object in Active Directory for address type “MS:AMD64”..

In my case it was related to the some old email address policies That contained  MS-Mail address.

Removing it solve my problem .

 

You can remove MS:AMD64 from ADSI Edit  like this :

 

 

 

 

 

 

 

Posted in Office365 | Leave a comment

SCCM – Collection Queries

Name: All sccm  clients requiring a reboot

Query:  select SMS_R_SYSTEM.ResourceID, SMS_R_SYSTEM.ResourceType, SMS_R_SYSTEM.Name, SMS_R_SYSTEM.SMSUniqueIdentifier,
SMS_R_SYSTEM.ResourceDomainORWorkgroup, SMS_R_SYSTEM.Client from sms_r_system AS sms_r_system
inner join SMS_UpdateComplianceStatus as c on c.machineid=sms_r_system.resourceid
where c.LastEnforcementMessageID = 9

____________________________________________________________________________________________________________________________

Name: All SCCM client  computers in a specific site

Description : show all SCCM client computers in a specific Active directory site , in this case the site name is “India”

Query : select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where SMS_R_System.ADSiteName =’India’ and client=1

—————————————————————————————————————————–

Name: SCCM 2007 R3 client

Description : All SCCM clients with R3 version

Query : select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where SMS_R_System.ClientVersion like “4.00.6487.2187″ or  SMS_R_System.ClientVersion  like “4.00.6487.2157″

_________________________________________________________________________________________

Name: All windows servers with client install

Description : show all SCCM servers with sccm client installed  on them

Query :

select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where OperatingSystemNameAndVersion like ‘Microsoft Windows NT%Server%’ and client=1

_________________________________________________________________________________________

Name : All Windows 7 Computers

Query :

select sms_r_system.ResourceID,sms_r_system.ResourceType,sms_r_system.Name,sms_r_system.SMSUniqueIdentifier,sms_r_system.ResourceDomainORWorkgroup,sms_r_system.Client from sms_r_system where OperatingSystemNameandVersion like ‘%Workstation 6.1%’

 

_________________________________________________________________________________________

Name : Users in a specific OU

Query :

select SMS_R_USER.ResourceID,SMS_R_USER.ResourceType,SMS_R_USER.Name,SMS_R_USER.UniqueUserName,SMS_R_USER.WindowsNTDomain from SMS_R_User where SMS_R_User.UserOUName = “Idit.local/ISRAEL/USERS”

______________________________________________________________________________________________________

Name : Computers  in a specific OU

Query :

select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where SMS_R_System.SystemOUName=”Idit.local/Israel/Computers/Accounting”

_________________________________________________________________________________________________

 

Name : Lync installed

Description: Collection That determine the workstations that have Lync installed (you can write any programs from “Add remove Program”)

Query:

select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System   where SMS_R_System.ResourceId   in   (select SMS_R_System.ResourceID  from SMS_R_System   inner join SMS_G_System_ADD_REMOVE_PROGRAMS   on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceId = SMS_R_System.ResourceId  where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName  LIKE ‘%Lync%’)

______________________________________________________________________________________________________________________

Name: Computers with no SCCM client

Description: Collection that shows all computers that don’t have  SCCM client  installed

Query:

select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from sms_r_system where Client = 0 or Client is null

______________________________________________________________________________________________________________________

Name: Windows Server 2008

Description: Collection that shows all discovered Windows Server 2008

Query:

select SMS_R_System.Name, SMS_R_System.SMSAssignedSites, SMS_R_System.IPAddresses, SMS_R_System.IPSubnets, SMS_R_System.OperatingSystemNameandVersion, SMS_R_System.ResourceDomainOrWorkgroup, SMS_R_System.LastLogonUserDomain, SMS_R_System.LastLogonUserName, SMS_R_System.SMSUniqueIdentifier, SMS_R_System.ResourceId, SMS_R_System.NetbiosName from SMS_R_System where SMS_R_System.OperatingSystemNameandVersion like “%Server 6.0%”

_____________________________________________________________________________________________________________________

 

Name: Windows 7

Description: Collection that shows all discovered Windows 7

 

select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,

SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System

inner join SMS_G_System_COMPUTER_SYSTEM on SMS_G_System_COMPUTER_SYSTEM.ResourceId = SMS_R_System.ResourceId

where SMS_R_System.OperatingSystemNameandVersion like “%Workstation 6.1%” or

SMS_R_System.OperatingSystemNameandVersion like “%Windows 7%

____________________________________________________________________________________________________________________

 

Name: Find Mac

Description: Query to mac address

 

select SMS_R_System.Name from  SMS_R_System where SMS_R_System.MACAddresses like ##PRM:SMS_R_System.MACAddresses##

 

Posted in SCCM 2012, SCCM 2012 R2, SCCM2007 | Leave a comment

The action ‘Enable Mailbox’ , ‘Archive,ArchiveName’ , cant be performed on the object… because the object is being synchronized from your on premises organization….

Consider the following scenario :

You have an hybrid environment , When you try to enable archive through the office 365 portal you get the following massage :

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Mailboxes that you move to the cloud from your on-premises exchange become “mail enabled” in your on-premises environment, if you want to enable archiving (in your on-premises server) you can do that via the exchange management console or power shell .

In the exchange management console go to: Recipient configuration -> mail contact -> right click on the mailbox you want to enable fpr archiving -> Enable hosted archive

 

 

 

 

 

 

 

 

 

 

 

 

After that you need to sync  (“Start-OnlineCoexistenceSync” using the Dirysinc powershell) , only then you will be able to see that your mailbox is enabled for archiving in the office 365 portal.

 

 

 

 

 

 

If you want to  enable archive for  all users using Exchange Power shell, type the following command:

Get-remotemailbox | enable-remotemailbox -archive

 

If you cannot see the option “Enable hosted archive” its possibly because the Enable-RemoteMailbox commandonly works on mailboxes that contain Exchange 2010 mailbox property values.

To work around this problem,connect to ADSIedit under the problematic user  change the value of the msExchVersion in property to 44220983382016 .

 

 

 

 

Posted in Office365 | Leave a comment

Backup Exec System State warning VSS Snapshot warning. File is not present on the snapshot

sometime you get this error while trying to backup only the “system state” of a server.

first I’ll try yo explain why you get this error and later I’ll show the easy fix

when you try to backup your server’s system state among many other files that the BE job will backup it will also try to backup all of the services of the server along with the .exe files that those services run.

in my case the file name was c:\blablabla\aendaemon.exe and the problem with this file was that it really wasn’t in this path.

basically the problem was that one of the services in my services.msc console was corrupted and the system state backup tried to find this file.

now for the (very) easy solution:

1. you can do one of the following to find the name of the service:

a. open the services.msc console and look for services with a Startup state of “Automatic” that are currently stopped, double click them and look for the exe file name:

and then you copy the “service name” from the beginning of the form

b. you can search the registry for the whole path you see in BE error log:

after you find the right service you copy the name of the folder (actually the name of the service)

2. now you lunch CMD and run this command:  sc delete < SERVICE name>

this will delete the service from the server and will also make the warning in BE to vanish

be careful not to delete needed services, if the service you find as problematic is needed in windows you should try to fix the problem in the service and not delete it, in my case it was a service related to IBM hardware which stayed on the server after a P2V process and wasn’t needed anymore.

Posted in Backup Exec | Leave a comment

How to uninstall sms 2003 clients

If you have old SMS 2003 clients installed on computers in your organization, and  the SMS 2003 server is  no longer available, you will have trouble to install SCCM 2007 clients. In order to install SCCM 2007 clients ,you will first need to uninstall the SMS 2003 clients you will need to download and install the sms 2003 toolkit-http://www.microsoft.com/download/en/details.aspx?id=18153

 

 

Local Uninstall: 1. copy the ccmclean.exe file from the SMS 2003 toolkit folder –  “C:\Program Files (x86)\SMS 2003 Toolkit 2″ to your SMS 2003 to the SMS 2003 client computer *for examlple to the path  c:\install\uninstallsms 2. Start-Run 3. Type: c:\install\uninstallsms\ccmclean.exe /client /q ”

Remote uninstall with psexec :

1. install psexec.exe on the computer you will send the uninstall command from 2. Start – Run – cmd 3.Copy the ccmclean.exe file in to a share folder on your computer in my case its in – c:\packages 4. In cmd go to the psexec.exe file location path 5.Type:  “psexec.exe -s \\ClientComputername \\servername\packages\ccmclean.exe 2003  /client /q ”

Posted in SCCM2007 | Leave a comment

How to uninstall sccm client localy and remotly:

For x86 Operating Systems: On the client computer -Start -Run – Type: %windir%system32\ccmsetup\ccmsetup.exe /uninstall For x64 Operating Systems: On the client computer -Start -Run – Type: %windir%\ccmsetup\ccmsetup.exe /uninstall

How to uninstall sccm client remotly with psexec:

1. install psexec.exe on the computer you will send the uninstall command from
2. Start – Run – cmd
3. In cmd go to the psexec.exe file location path
4.For x86 Operating Systems:
type : psexec -s \\xxx c:\Windows\system32\ccmsetup\ccmsetup.exe /uninstall
5. For x64 Operating Systems:
type : psexec -s \\xxx c:\Windows\ccmsetup\ccmsetup.exe /uninstall
*If you don’t have permissions, you will need to add user name and password for user with permission for this action
For example:

psexec -u domain\username -p Password -s \\xxx c:\WinNT\system32\ccmsetup\ccmsetup.exe /uninstall

Posted in SCCM2007 | Leave a comment

SCCM 2007 – Import SCCM power management reports

After installing and configuring SCCM R3 , the power management reports will not appear automatically , you will need to import them  into SCCM console

Steps to Import SCCM power management reports : 1. Make sure SQL Reporting Services component is installed and configured 2. Go to Reporting Services under : Computer Management > Reporting. Right-click the Reporting Services server role and select Copy Reports to Reporting Services

3. Select Database server name and database instance name for SCCM. 4. Select database authentication method to gain access to connect to database and press Next. 5.  Select the second option to Import Reports from a cabinet file, and click Browse

6. Browse to “%ConfigMgr install folder%\Reports\Power Management” folder and select MicrosoftReportsPack.cab file.

This will list all Power Management reports which will be imported.

7. Press Next twice.

Posted in SCCM2007 | Leave a comment

Powershell error : “.ps1 cannot be loaded because the execution of scripts is disabled on this system”

When You are trying to run a PS1 script in Power shell you are getting the following error:

“File C:\scripts\.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see “get-

help about_signing” for more details.

At line:1 char:19

+ c:\scripts\.ps1 <<<<”

 

 

 

 

 

 

 

The security settings built into Windows PowerShell include something called the “execution policy;” the execution policy determines how (or if) PowerShell runs scripts. By default, PowerShell’s execution policy is set to Restricted; that means that scripts – including those you write yourself – won’t run.

You can see it by runnig to command: Get- ExecutionPolicy

As you can see , Its restricted

 

 

 

 

 

For enabling it just run :

Set-ExecutionPolicy -ExecutionPolicy Unrestricted

Now you can run your PS1 script

*Note: the unrestricted option will allow  All scripts from all sources can be run without signing

A safer option will be tp run

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned


Posted in PowerShell, Windows | Tagged , | Leave a comment