Category Archives: SYS ADMIN

Server Client Administration

HOW TO SHUTDOWN REMOTE PC! AND HOW TO CANCEL REMOTE SHUTDOWN :)

shutdown /r /f /m [NAME OF COMPUTER] /t 10 /c [MESSAGE] kindly review my home page how to read the SYNTAX that is very important page if you want to become a programmer too 🙂 shutdown /i to use the … Continue reading

Posted in SYS ADMIN | Leave a comment

HOW TO CONFIGURE VPN IN WINDOWS SERVER 2008 R2

1. In Server Manager, right-click Roles and then Add Roles. Allow access for users “Network Access Permission”. You can set that in de Dial-In Tab under the User Premission. This is the Active Directory Users TAKENOTE: OPEN ALL THESE PORTS … Continue reading

Posted in NETWORKING, SYS ADMIN, WINDOWS | Leave a comment

POWERSHELL SCRIPT TO SHOW WINDOWS UPDATE HISTORY!!

RUN THESE SCRIPT IN Powershell! $objSession = new-object -com “Microsoft.Update.Session”  $objSearcher = $objSession.CreateupdateSearcher()  $intCount = $objSearcher.GetTotalHistoryCount()  $colHistory = $objSearcher.QueryHistory(0, $intCount)  foreach ($objHistory in $colHistory)  {    if ($objHistory.HResult -eq 0) {      Write-Host ($objHistory.Date).ToString(“yyyy/MM/dd hh:mm UTC”) $objHistory.Title “- Successfully installed”    } elseif ($objHistory.HResult -eq -2145116140) {      Write-Host ($objHistory.Date).ToString(“yyyy/MM/dd hh:mm UTC”) $objHistory.Title “- Pending Reboot”    } else {      # Report errors for the past month      if (($objHistory.Date).AddMonths(1) -gt (Get-Date)) {        Write-Host ($objHistory.Date).ToString(“yyyy/MM/dd hh:mm UTC”) $objHistory.Title “- Failed to install (Error:”$objHistory.HResult.ToString(“X8″)”)”      }    }  } SOURCE LINK

Posted in SYS ADMIN, WINDOWS | Leave a comment

HOW TO EXPORT ALL USERS IN ACTIVE DIRECTORY – AD DS

CHANGE THE “PATH\FILENAME.CSV” WITH YOUR DESIRE PATH AND FILENAME. Run this in Powershell: Get-ADUser -Filter ‘GivenName -like “*”‘ -Properties * | Select -Property DisplayName,GivenName,Surname,UserPrincipalName,Title,Department,Office,OfficePhone,MobilePhone,Fax,StreetAddress,City,State,PostalCode,Country | Export-CSV “PATH\FILENAME.CSV” -NoTypeInformation -Encoding UTF8 THIS IS THE EXAMPLE OF PATH AND FILENAME Get-ADUser -Filter … Continue reading

Posted in SYS ADMIN | Leave a comment

How To Create a Shortcut That Lets a Standard User Run An Application as Administrator

Enabling the Administrator Account First you’ll need to enable the built-in Administrator account, which is disabled by default. run “cmd” as administrator and type “net user administrator /active:yes” change the PC administrator password then create a shortcut and type this … Continue reading

Posted in SYS ADMIN | Leave a comment