16 August 2019

User Powershell Script as Startup or Login Script and Bypass Execution Policy

Use the following settings in the Login/Startup Script section of your GPO

Script Name: %windir%\System32\WindowsPowerShell\v1.0\powershell.exe
Script Parameters: -Noninteractive -ExecutionPolicy Bypass –Noprofile -file MyPSScript.ps1 -psscriptparameter1 value -pssscriptparameter2


-Noninteractive Prevents an interactive window from trying to open at any time during the script execution
-ExecutionPolicy Bypass Enables this single script to run if more restrictive Powershell Execution policies are normally applied on the target computer
-Noprofile Ensures PowerShell does not execute profile scripts and instead launches the desired script immediately in an unaltered environment

16 January 2019

Manage the Local Administrators Group on Azure AD Joined Devices


  • If your tenant users are synchronized from on-premises Active Directory, use net localgroup administrators /add "Contoso\username".
  • If your tenant users are created in Azure AD, use net localgroup administrators /add "AzureAD\UserUpn"

Reference:
https://docs.microsoft.com/en-us/azure/active-directory/devices/assign-local-admin

04 September 2017

Local Administrator Password Solution - LAPS

Microsoft provide a free local administrator password management tool, to enable centralised management of randomised local administrator passwords, mitigating
the risk of lateral escalation that results when customers have the same administrative local account and password combination on many computers.

The tool is available here:
https://technet.microsoft.com/en-us/mt227395.aspx

14 April 2016

How to Calculate TCP Throughput for WAN Links

Ask this guy:
http://bradhedlund.com/2008/12/19/how-to-calculate-tcp-throughput-for-long-distance-links/

His formula is
TCP-Window-Size-in-bits / Latency-in-seconds = Bits-per-second-throughput

This is for a single communication stream. You can max out a WAN link by generating multiple TCP streams.

30 March 2016

Add Multiple Templates to a SharePoint Document Library

Check this article out:
https://support.office.com/en-us/article/Add-multiple-Office-templates-to-a-document-library-cde94e90-a1ba-4b94-a187-600ed68562bb

29 January 2016

Change Network from Public to Private in Windows Server 2012 R2

To change Network from Public to Private in Windows Server 2012 R2
  1. Hit Winkey + R to open Run prompt and type gpedit.msc.
  2. Navigate to: Computer Configuration /Windows Settings / Security Setting /Network List Manager Policies.
  3. Choose your Network name from the right pane.
  4. Go to Network Location tab and change the Location type from Public to Private.
  5. Close Local Policy Editor.
References: