вторник, 30 августа 2016 г.

Remove unneeded apps from Windows 10

Run Powershell As Administrator and enter commands:

Remove 3D from Windows 10
Get-AppxPackage *3d* | Remove-AppxPackage

Remove Camera from Windows 10
Get-AppxPackage *camera* | Remove-AppxPackage

Remove Mail and Calendar from Windows 10
Get-AppxPackage *communi* | Remove-AppxPackage

Remove Money, Sports, News and Weather from Windows 10
Get-AppxPackage *bing* | Remove-AppxPackage

Remove Groove Music and Film & TV from Windows 10
Get-AppxPackage *zune* | Remove-AppxPackage

Remove People from Windows 10
Get-AppxPackage *people* | Remove-AppxPackage

Remove Phone Companion from Windows 10
Get-AppxPackage *phone* | Remove-AppxPackage

Remove Solitaire Collection from Windows 10
Get-AppxPackage *solit* | Remove-AppxPackage

Remove Voice Recorder from Windows 10
Get-AppxPackage *soundrec* | Remove-AppxPackage

Remove Xbox from Windows 10
Get-AppxPackage *xbox* | Remove-AppxPackage

понедельник, 29 августа 2016 г.

Change Windows 2012 R2 Server Edition

Step-by-step guide

  1. To determine which versions the server can be upgraded to run:

  • DISM /online /Get-TargetEditions

      2.  As can be seen from the above screenshot this version of Windows Server can be upgraded to Target Edition : ServerDatacenter
           To complete the conversion between editions we use the DISM command with the following format:
  • DISM /online /Set-Edition:<Version> /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /AcceptEULA
In the above example the target edition is ServerDatacenter


Set Calendar permissions in Office365

You can add permissions on a specific mailbox, or you can add it onto a security group.


Step-by-step guide

  1. Run Windows Powershell as Administrator
  2. Login to Office365 with your admin account with command:  
    $LiveCred = Get-Credential


    1. Import session for Office365 manage:
      $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection

    2. Provide permissions:
      Add-MailboxFolderPermission -Identity user1@domain.com:\calendar -user user2@domain.com -AccessRights Editor

      1

      The AccessRights parameter also specifies the permissions for the user with the following roles, which are a combination of the rights listed previously:

      • None – FolderVisible
      • Owner – CreateItems, ReadItems, CreateSubfolders, FolderOwner, FolderContact, FolderVisible, EditOwnedItems, EditAllItems, DeleteOwnedItems, DeleteAllItems
      • PublishingEditor – CreateItems, ReadItems, CreateSubfolders, FolderVisible, EditOwnedItems, EditAllItems, DeleteOwnedItems, DeleteAllItems
      • Editor – CreateItems, ReadItems, FolderVisible, EditOwnedItems, EditAllItems, DeleteOwnedItems, DeleteAllItems
      • PublishingAuthor – CreateItems, ReadItems, CreateSubfolders, FolderVisible, EditOwnedItems, DeleteOwnedItems
      • Author – CreateItems, ReadItems, FolderVisible, EditOwnedItems, DeleteOwnedItems
      • NonEditingAuthor – CreateItems, ReadItems, FolderVisible
      • Reviewer – ReadItems, FolderVisible
      • Contributor – CreateItems, FolderVisible


How to register a C# or VB.Net DLL using regasm.exe

Step-by-step guide

  1. Register: 
    "C:\Windows\Microsoft.NET\Framework\v4.0.30319 \RegAsm.exe" "C:\xpst\XPST.dll" /tlb:XPST.tlb /codebase
  2. Unregister:
    "C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe""C:\xpst\XPST.dll" /tlb:XPST.tlb /codebase /u