Managing Domains, Organizational Units, Sites, and Subnets via powershell

Installing .NET 3.5 Framework on Microsoft Windows Server 2012


Error Screen:Windows Server .NET Framework 3.5 Install ErrorSolution:

1. Using the Add Roles and Features Wizard, specify an alternate source path using the link at the bottom of the wizard. For example, D: is my Windows Server DVD media.

D:\Sources\sxs

2. Using PowerShell, specify the source files path when installing.
 Install-WindowsFeature NET-Framework-Core –Source D:\Sources\sxs
3. Using DISM from the command prompt, specify the source files path parameter:

DISM /Online /Enable-Feature /FeatureName:NetFx3 /Source:d:\sources\sxs

4. Using a file share containing the sxs folder, specify the unc share path:

Install-WindowsFeature NET-Framework-Core –Source \\ServerName\ShareName\sxs

Group policy scripts


Get-GPO -All | ForEach-Object {
       
    ([XML](Get-GPOReport -Guid $_.ID -ReportType Xml) | Where-Object {$_.GPO.User.ExtensionData -ne $null}).GPO.Name
    
}
 https://blogs.technet.microsoft.com/poshchap/2016/08/26/one-liner-use-powershell-to-get-gpos-containing-user-settings/ http://techibee.com/group-policies/find-group-policies-objects-in-domain-using-powershell/2408 https://blogs.technet.microsoft.com/ashleymcglone/2013/05/29/dude-wheres-my-gpo-using-powershell-to-find-all-of-your-group-policy-links/ https://blogs.technet.microsoft.com/heyscriptingguy/2013/01/20/powertip-use-powershell-find-all-enabled-group-policy-objects/ http://jeffwouters.nl/index.php/2013/08/powershell-find-disabled-group-policy-objects/ http://winplat.net/2013/07/04/list-group-policy-object-using-powershell/ https://learn-powershell.net/2013/10/05/report-on-group-policy-objects-that-have-logon-scripts/ https://psscripts.wordpress.com/tag/get-gporeport/

Configuring Active Directory (Windows 2008 Server R2) RADIUS Server for OpenVPN Access Server

sample


Get-WinEvent -FilterHashtable @{Path=”C:\Windows\System32\Winevt\Logs\security.evtx”;ID=4624,4634,4647;data=”test”,”administrator”} | % {
New-Object PSObject -Property @{
MachineName = $_.MachineName
EventID = $_.ID
TimeCreated = $_.TimeCreated
User = $_.Properties[5].Value
Domain = $_.Properties[6].Value
WorkstationName = $_.Properties[11].Value
Keywords = $_.KeywordsDisplayNames -join “;”

}
}
Select MachineName,TimeCreated,User,Domain,EventID,WorkstationName,Keywords,message | ft

http://www.guidingtech.com/67372/common-android-problems-solutions/?utm_source=More%20Posts%20Section&utm_medium=Post%20Snippets&utm_campaign=Testing%20More%20Posts

Event Log Filters


Get-WinEvent -FilterHashtable @{Path=”C:\Windows\System32\Winevt\Logs\Archive-Security-2017-05-11-11-28-38-673.evtx”;ID=4624,4634;data=”RRiad”} | % {
New-Object PSObject -Property @{
MachineName = $_.MachineName
TimeCreated = $_.TimeCreated
User = $_.Properties[5].Value
Domain = $_.Properties[6].Value
LogonType = $_.Properties[8].Value
SourceIP = $_.Properties[18].Value
Keywords = $_.KeywordsDisplayNames -join “;”
}
}
Select MachineName,TimeCreated,User,Domain,LogonType,EventID,SourceIP,Keywords | ft

————————*———————–

Get-WinEvent -FilterHashtable @{Path=”C:\Windows\System32\Winevt\Logs\Archive-Security-2017-05-11-08-55-49-805.evtx”;id=4624,4647;data=”MNaqvi”}

——————————————————————–

https://blogs.technet.microsoft.com/askds/2011/09/26/advanced-xml-filtering-in-the-windows-event-viewer/

How to parse Windows Eventlog

https://serverfault.com/questions/593383/script-to-export-custom-view-event-viewer-to-evtx-powershell

The Authoritative Restore Explained

%d bloggers like this: