Category Archives: PowerShell

How to Install IIS and modules on windows 2012 r2 using Powershell

Open your Powershell in Run as Administrator mode: then run the following powershell Cmdlet Set-ExecutionPolicy RemoteSigned Import-Module ServerManager install-windowsfeature net-framework-core Add-WindowsFeature Web-Server, Web-Static-Content, Web-Default-Doc, Web-Http-Errors, Web-Asp-Net, Web-Net-Ext, Web-ISAPI-Ext, Web-ISAPI-Filter, Web-Http-Logging, Web-Log-Libraries, Web-Request-Monitor, Web-Http-Tracing, Web-Basic-Auth, Web-Windows-Auth, Web-Client-Auth, Web-Filtering, Web-Stat-Compression, Web-Dyn-Compression, NET-Framework-45-Core, NET-WCF-HTTP-Activation45, Web-Asp-Net45, Web-Mgmt-Tools, Web-Scripting-Tools, Web-Mgmt-Console, Web-Mgmt-Compat, Windows-Identity-Foundation, Server-Media-Foundation, BITS restart-computer

sesecurityprivilege access is denied

sesecurityprivilege access is denied Z:\MSExchange2003Enterprise\SUPPORT\EXDEPLOY>POLICYTEST.EXE This tool will check every domain controller in the local domain to see if the “Manage auditing and security logs” privilege granted to the  Exchange Enterprise Servers” group by DomainPrep has replicated to that DC.  If the policy change has not yet replicated to all DCs, then you should… Read More »

Enable PowerShell to Run locally

PS C:\Users\Sibanda\MyScripts> Set-ExecutionPolicy RemoteSigned Execution Policy Change The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose you to the security risks described in the about_Execution_Policies help topic. Do you want to change the execution policy? [Y] Yes  [N] No  [S] Suspend  [?] Help (default is… Read More »