[Quick Links] |
Search Site

Site Details

rendered in 0.0715 secs

Captain's Log | Tuesday 31st of May 2016

Office 2010 on Windows 10 keeps asking for password when setting up office 365 outlook profile | email e-mail mail


Making sure all Windows Updates are installed and the option to look for all Microsoft products is selected so Outlook gets all the updates it requires.

You can also try this

sendmail queue management


Get subject, and to field.
egrep -h \(^M\|^N\|^R\|Subject:\|^\\.\) /var/spool/mqueue/qf* | uniq | sed 's/^\(.\)/\1 /'
View live reports of unbalanced addresses in queue. Shows 5 following lines, as that usually shows who the sender was for this problem email.
tail -f /var/log/maillog | grep Unbalanced -A5

download file via ssh without using scp | terrible title as this doesn't download the file at all, it sends it via mail command

cat textfile | mail -v -s "Some subject" somewhere@somewhere.net [enter]

Windows file folder server auditing software | delete access move


Get it PA File Sight here

windows 7 change default network adapter priority | wireless wire wired weight weighting route src


Im my case it helped to change wireless card metrics to 2500 while keeping wired one as automatic. Changing wired one to 10 had no effect. It looks like there are problems with enforcing low metrics values.

Captain's Log | Tuesday 31st of May 2016

Get-MsolUser | office 365 powershell msol user msol-user


     -All [<SwitchParameter>]
        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false
        

    -City <string>
        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false
        

    -Country <string>
        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false
        

    -Department <string>
        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false
        

    -DomainName <string>
        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false
        

    -EnabledFilter <string>
        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false
        

    -HasErrorsOnly [<SwitchParameter>]
        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false
        

    -LicenseReconciliationNeededOnly [<SwitchParameter>]
        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false
        

    -LiveId <string>
        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false
        

    -MaxResults <int>
        Required?                    false
        Position?                    named
        Default value                500
        Accept pipeline input?       false
        Accept wildcard characters?  false
        

    -ObjectId <Guid>
        Required?                    true
        Position?                    named
        Default value                
        Accept pipeline input?       true (ByPropertyName)
        Accept wildcard characters?  false
        

    -ReturnDeletedUsers [<SwitchParameter>]
        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false
        

    -SearchString <string>
        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false
        

    -State <string>
        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false
        

    -Synchronized [<SwitchParameter>]
        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false
        

    -TenantId <Guid>
        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       true (ByPropertyName)
        Accept wildcard characters?  false
        

    -Title <string>
        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false
        

    -UnlicensedUsersOnly [<SwitchParameter>]
        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false
        

    -UsageLocation <string>
        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false
        

    -UserPrincipalName <string>
        Required?                    true
        Position?                    named
        Default value                
        Accept pipeline input?       true (ByPropertyName)
        Accept wildcard characters?  false
        

    <CommonParameters>
        This cmdlet supports the common parameters: Verbose, Debug,
        ErrorAction, ErrorVariable, WarningAction, WarningVariable,
        OutBuffer and OutVariable. For more information, type,
        "get-help about_commonparameters".

Examples:


Get-MsolUser -EnabledFilter EnabledOnly -MaxResults 2000
Get-MsolUser -UserPrincipalName johns@contoso.com
Get-MsolUser -ObjectId <guid>
Get-MsolUser -SearchString "Tim"

Captain's Log | Tuesday 17th of May 2016

Office 365 Powershell Licensing Scripts | scripting office365


==========================================
Determine the available Office 365 plans
==========================================

Get-MsolAccountSku
Get-MsolAccountSku | Format-Table AccountSkuId, SkuPartNumber

Plans:
SchoolName:STANDARDWOFFPACK_IW_FACULTY
SchoolName:STANDARDWOFFPACK_IW_STUDENT
-----------------------
SWAY
YAMMER_EDU
OFFICESUBSCRIPTION
SHAREPOINTWAC_EDU
SHAREPOINTSTANDARD_EDU
EXCHANGE_S_STANDARD
MCOSTANDARD

SchoolName:STANDARDWOFFPACK_FACULTY
SchoolName:STANDARDWOFFPACK_STUDENT
-------------------
SWAY
INTUNE_O365
YAMMER_EDU
SHAREPOINTWAC_EDU
MCOSTANDARD
SHAREPOINTSTANDARD_EDU
EXCHANGE_S_STANDARD

-------------------
SchoolName:RIGHTSMANAGEMENT_STANDARD_FACULTY

========================================
Determine the Office 365 plan elements
========================================

Get-MsolUser -userprincipalname tenantadmin@school.domain.com | Select-Object DisplayName, @{Name="Sway";Expression={$_.Licenses[0].ServiceStatus[0].ProvisioningStatus}}, @{Name="MDM";Expression={$_.Licenses[0].ServiceStatus[1].ProvisioningStatus}}, @{Name="Yammer";Expression={$_.Licenses[0].ServiceStatus[2].ProvisioningStatus}}, @{Name="Onedrive";Expression={$_.Licenses[0].ServiceStatus[3].ProvisioningStatus}}, @{Name="Skype";Expression={$_.Licenses[0].ServiceStatus[4].ProvisioningStatus}}, @{Name="Sharepoint";Expression={$_.Licenses[0].ServiceStatus[5].ProvisioningStatus}}, @{Name="Exchange";Expression={$_.Licenses[0].ServiceStatus[6].ProvisioningStatus}}, @{Name="Other-1";Expression={$_.Licenses[0].ServiceStatus[7].ProvisioningStatus}}, @{Name="Other-2";Expression={$_.Licenses[0].ServiceStatus[8].ProvisioningStatus}} | ConvertTo-Html > "C:\111\Service-Info.html"

Get-MsolUser -UserPrincipalName tenantadmin@school.domain.com | Format-List DisplayName,Licenses

Get-MsolUser -UserPrincipalName tenantadmin@school.domain.com | Select-Object -ExpandProperty Licenses | Select-Object -ExpandProperty ServiceStatus

(Get-MsolUser -UserPrincipalName tenantadmin@school.domain.com).Licenses.ServiceStatus

======================
Set Usage and Region
======================

Get-MsolUser -All | where {$_.UsageLocation -eq $null}

Set-MsolUser -UserPrincipalName tenantadmin@school.domain.com -UsageLocation 'GB'
Get-MsolUser -All | Set-MsolUser -UsageLocation "GB"

=================================
Set elements of Office 365 plan
=================================

===============
Exchange only
===============
$myO365Sku = New-MsolLicenseOptions -AccountSkuId "SchoolName:STANDARDWOFFPACK_IW_STUDENT" -DisabledPlans SWAY, YAMMER_EDU, MCOSTANDARD

$myO365Sku = New-MsolLicenseOptions -AccountSkuId "SchoolName:STANDARDWOFFPACK_FACULTY" -DisabledPlans SWAY, INTUNE_O365, YAMMER_EDU, SHAREPOINTWAC_EDU, MCOSTANDARD, SHAREPOINTSTANDARD_EDU

$myO365Sku

================
Complete Suite
================
$myO365Sku = New-MsolLicenseOptions -AccountSkuId "SchoolName:STANDARDWOFFPACK_IW_FACULTY"

$myO365Sku

===============================
Exchange + ProPlus + OneDrive
===============================
$myO365Sku = New-MsolLicenseOptions -AccountSkuId "SchoolName:STANDARDWOFFPACK_IW_FACULTY" -DisabledPlans SWAY, YAMMER_EDU, MCOSTANDARD

$myO365Sku

====================
Exchange & ProPlus
====================
$myO365Sku = New-MsolLicenseOptions -AccountSkuId "SchoolName:STANDARDWOFFPACK_IW_FACULTY" -DisabledPlans SWAY, YAMMER_EDU, SHAREPOINTWAC_EDU, SHAREPOINTSTANDARD_EDU, MCOSTANDARD

$myO365Sku

=========================
Used for existing users
=========================

Get-MsolUser -All -UnlicensedUsersOnly | more
Set-MsolUserLicense -UserPrincipalName tenantadmin@school.domain.com -LicenseOptions $myO365sku
Get-MsolUser -All -Department "Student" | Set-MsolUserLicense -LicenseOptions $myO365sku

====================
Used for new users
====================

Get-MsolUser -All -UnlicensedUsersOnly

Set-MsolUserLicense -UserPrincipalName tenantadmin@school.domain.com -AddLicenses "SchoolName:STANDARDWOFFPACK_IW_FACULTY" -LicenseOptions $myO365sku
Set-MsolUserLicense -UserPrincipalName tenantadmin@school.domain.com -AddLicenses "SchoolName:STANDARDWOFFPACK_FACULTY" -LicenseOptions $myO365sku
Get-MsolUser -All -Department "Staff" | Set-MsolUserLicense -AddLicenses "SchoolName:STANDARDWOFFPACK_IW_FACULTY" -LicenseOptions $myO365sku
Get-MsolUser -All -Title "Staff" | Set-MsolUserLicense -AddLicenses "SchoolName:STANDARDWOFFPACK_FACULTY" -LicenseOptions $myO365sku
Get-MsolUser -All -Department "Student" | Set-MsolUserLicense -AddLicenses "SchoolName:STANDARDWOFFPACK_IW_STUDENT" -LicenseOptions $myO365sku
Get-MsolUser -All -Title "Student" | Set-MsolUserLicense -AddLicenses "SchoolName:STANDARDWOFFPACK_STUDENT" -LicenseOptions $myO365sku