Wednesday, June 5, 2013

Reset Offline Files Cache in Windows 7

Easiest way to do this:

1. Navigate to the following location in the registry:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Csc\Parameters 

2. Create a new DWORDValue called FormatDatabase , with the value 1
3. Reboot (the new key we created will delete itself after rebooting along with the Offline cache)

You can then set the network resource to always be available offline again, and it will begin the synchronization.

Wednesday, August 8, 2012

SBS 2003 CALs are missing

This happens frequently. 

Copy the following red text into a txt file, rename it to sbscal.bat and run it. You should be all set afterwards. 

net stop LicenseService
rename %windir%\system32\licstr.cpa %windir%\System32\licstr.cpa.old
copy %windir%\system32\autolicstr.cpa %windir%\system32\licstr.cpa
net start LicenseService

Friday, July 27, 2012

Malwarebytes' Anti-Malware Seems to be Lagging Behind

For years, I've sworn by MBAM, and it's always come through for me. I'd always done a MBAM full scan followed by a virus scan with whatever they had installed, and then a ComboFix scan.

Lately however, MBAM has been coming up clean, and ComboFix has been doing the bulk of the work. 

Thursday, July 26, 2012

Office365 - Set All User Account Passwords to NOT Expire

Go here: http://onlinehelp.microsoft.com/en-us/office365-enterprises/hh124998.aspx 

Download and install these two things according to the OS architecture of the machine you’re currently using to perform this operation:
Microsoft Online Services Sign-In Assistant (IDCRL7) - (32 bit version)
Microsoft Online Services Sign-In Assistant (IDCRL7) - (64 bit version)

AND

Microsoft Online Services Module for Windows PowerShell - (32-bit version)
Microsoft Online Services Module for Windows PowerShell - (64-bit version)

NOTE: Norton 360 classified the Microsoft Online Services Module download as a threat for me, and removed it from my downloads. Be prepared to disable your A/V.

Once these are installed, Click the start button, in the search field type Microsoft Powershell, open the result "Microsoft Online Services Module for Windows PowerShell”

Enter the following command:

Connect-MsolService

You will be prompted for credentials. Use the account administrator credentials.

Type the following, and hit enter.

Set-ExecutionPolicy Unrestricted

press Y for yes, and hit enter

Copy and paste the entire next command

$LiveCred = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic –AllowRedirection
Import-PSSession $Session

You will be Prompted for credentials again. Enter them, and hit ok. You'll then see warninds about "You connection has been redirected to the folling URI". This is ok. NOTE: The last line of that command is still waiting to be run. You need to hit enter for it to execute. Once it's done, use the following command to set all user account passwords to never expire:

Get-MSOLUser | Set-MsolUser -PasswordNeverExpires $true

Use Windows PowerShell to manage Office 365 - Office 365 for enterprises

Use Windows PowerShell to manage Office 365

Topic Last Modified: 2012-03-22

As an administrator, you can use Windows PowerShell cmdlets to accomplish many Microsoft Office 365 administrative tasks such as user management and domain management. This topic includes information about Windows PowerShell and how to install the cmdlets for Office 365.

You can also manage Microsoft Exchange Online with Windows PowerShell cmdlets. For more information, see Use Windows PowerShell in Exchange Online.

What do you want to do?

Learn about Windows PowerShell

Install the Office 365 cmdlets

Connect Windows PowerShell to the service

About Windows PowerShell

Windows PowerShell is a task-based command-line shell and scripting language designed for system administration. Unlike most shells, which accept and return text, Windows PowerShell is built on top of the Microsoft .NET Framework common language runtime (CLR) and the .NET Framework, and accepts and returns .NET Framework objects. Windows PowerShell introduces the concept of a cmdlet (pronounced "command-let"), a simple, single-function command-line tool built into the shell. Cmdlets have the following naming convention: a verb and noun separated by a dash (-), such as Get-Help, Get-Process, and Start-Service. Windows PowerShell includes more than one hundred basic core cmdlets. For more information about Windows PowerShell, see the Windows PowerShell Getting Started Guide.

There are many Office 365 cmdlets you can use to perform a variety of administrative tasks. For more information about the various tasks you can perform using cmdlets, see Windows PowerShell cmdlets for Office 365.

Install the Office 365 cmdlets

To begin using the Office 365 cmdlets, you first need to install them. The requirements for installing the Office 365 cmdlets are as follows:

You can install the cmdlets on a Windows 7 or Windows Server 2008 R2 computer.

You must have Windows PowerShell and the .NET Framework 3.5.1 enabled.

You must install the Microsoft Online Services Sign-in Assistant. Download and install one of the following from the Microsoft Download Center:

Microsoft Online Services Sign-In Assistant (IDCRL7) - 32 bit version

Microsoft Online Services Sign-In Assistant (IDCRL7) - 64 bit version

To install the cmdlets, perform the following steps:

Download one of the following from the Microsoft Download Center:

Microsoft Online Services Module for Windows PowerShell (32-bit version)

Microsoft Online Services Module for Windows PowerShell (64-bit version)

To install the cmdlets, double-click the AdministrationConfig.msi file.

The installer adds the program to your Start menu and a shortcut to your desktop.

Connect Windows PowerShell to the service

Click the Microsoft Online Services Module shortcut to open a Windows PowerShell workspace that has the cmdlets. Alternatively, you can load the Office 365 cmdlets manually by typing import-module MSOnline at the Windows PowerShell command prompt.

For more information about cmdlets, you can do the following:

Get a list of cmdlets by typing the following at the command prompt: get-module MSOnline

View the Help file for a cmdlet by typing the following at the command prompt: get-help -detailed

See Also

Windows PowerShell cmdlets for Office 365

via Use Windows PowerShell to manage Office 365 - Office 365 for enterprises.

How to configure user passwords to never expire in Office 365

You need to download the Microsoft Online Services Sign-in Assistant

2)       And also you need to install the PowerShell Msonline Module.

System requirements

Supported Operating Systems: Windows Vista, Windows Vista 64-bit Editions Service Pack 1, Windows Vista Business, Windows Vista Business 64-bit edition, Windows Vista Enterprise, Windows Vista Enterprise 64-bit edition, Windows Vista Home Basic, Windows Vista Home Basic 64-bit edition, Windows Vista Home Premium, Windows Vista Home Premium 64-bit edition, Windows Vista Service Pack 1, Windows Vista Ultimate, Windows Vista Ultimate 64-bit edition, Windows XP, Windows XP Professional Edition, Windows XP Service Pack 2, Windows XP Service Pack 3, Windows XP Tablet PC Edition

Requirements provided to subscribers via the Microsoft Online Services Administration Center or My Company Portal. This product intended for use with Microsoft Online Services only.

Microsoft Online Services Sign-in Assistant Setup (now required for MSONLINE powershell)

http://office.microsoft.com/en-us/word-help/redir/XT102098586.aspx?CTT=5&origin=HA102065466

 

PowerShell Msonline Module

http://g.microsoftonline.com/0BD00en-US/85

 

After the download is completed, please copy and paste this section into the PowerShell window. And enter your credentials.

 

1)       $Cred = Get-Credential

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $Cred -Authentication Basic –AllowRedirection

Import-PSSession $Session

 

2)       Import-Module MSOnline

$Creds = Get-Credential

Connect-MsolService –Credential $Creds

3)       Set-MsolUser -UserPrincipalName contoso@microsoft.com -PasswordNeverExpires $true

Note If you want to change the setting for all the users in an organization, run the following command:

Get-MSOLUser | Set-MsolUser -PasswordNeverExpires $true

 

N.B Replace the red highlight text with your e-mail address.

 

Sam Dawsen | E-mail: v-sadaws@microsoft.com

via Microsoft Office 365 Community.

Microsoft Office 365 Community

You need to download the Microsoft Online Services Sign-in Assistant

2)       And also you need to install the PowerShell Msonline Module.

System requirements

Supported Operating Systems: Windows Vista, Windows Vista 64-bit Editions Service Pack 1, Windows Vista Business, Windows Vista Business 64-bit edition, Windows Vista Enterprise, Windows Vista Enterprise 64-bit edition, Windows Vista Home Basic, Windows Vista Home Basic 64-bit edition, Windows Vista Home Premium, Windows Vista Home Premium 64-bit edition, Windows Vista Service Pack 1, Windows Vista Ultimate, Windows Vista Ultimate 64-bit edition, Windows XP, Windows XP Professional Edition, Windows XP Service Pack 2, Windows XP Service Pack 3, Windows XP Tablet PC Edition

Requirements provided to subscribers via the Microsoft Online Services Administration Center or My Company Portal. This product intended for use with Microsoft Online Services only.

Microsoft Online Services Sign-in Assistant Setup (now required for MSONLINE powershell)

http://office.microsoft.com/en-us/word-help/redir/XT102098586.aspx?CTT=5&origin=HA102065466

 

PowerShell Msonline Module

http://g.microsoftonline.com/0BD00en-US/85

 

After the download is completed, please copy and paste this section into the PowerShell window. And enter your credentials.

 

1)       $Cred = Get-Credential

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $Cred -Authentication Basic –AllowRedirection

Import-PSSession $Session

 

2)       Import-Module MSOnline

$Creds = Get-Credential

Connect-MsolService –Credential $Creds

3)       Set-MsolUser -UserPrincipalName contoso@microsoft.com -PasswordNeverExpires $true

Note If you want to change the setting for all the users in an organization, run the following command:

Get-MSOLUser | Set-MsolUser -PasswordNeverExpires $true

 

N.B Replace the red highlight text with your e-mail address.

 

Sam Dawsen | E-mail: v-sadaws@microsoft.com

via Microsoft Office 365 Community.