JimEJamm: Computers, Cars, Catholicism.
-
Commands to overcome file folder path issues
Delete folder with space at the end for instance “Z:\WEB\Feature Page\CK ” rmdir /S “\\?\Z:\WEB\Feature Page\CK ” The file name is too long – shorten the path by substituting a drive letter for a portion of the path subst Y: D:\this\file\path\is\waaaay\too\long Y: dir subst Y: /D
-
Download and run Microsoft Security Scanner (MSERT)
First download: powershell -Command “& {Start-BitsTransfer -Source “http://definitionupdates.microsoft.com/download/definitionupdates/safetyscanner/amd64/msert.exe” -Destination “C:\users\public\downloads\msert\msert.exe”}” Run: C:\Users\Public\Downloads\msert\msert.exe /Q /H Script to parse log and create Event: # Requires that New-EventLog -LogName -Source “MSERT” is run on the system first $msertfile = “C:\Windows\debug\msert.log” $msertmessage = Get-Content $msertfile $searchtext = “No infection found” $source = “MSERT” if ($msertmessage | Select-String $searchtext -quiet) […]
-
Hyper-V server on USB
Pre-requisites: Download GImageX Download the latest Hyper-V ISO Create VHD Put in the USB drive diskpart select disk 3 clean create partition primary select partition 1 active format quick fs=ntfs assign letter=z create vdisk file=z:\hyperv1.vhd maximum=24576 type=fixed select vdisk file=z:\hyperv1.vhd attach vdisk create partition primary assign letter=r format quick fs=ntfs label=hyperv1 exit Apply WIM to […]
-
Join me on Twitch
Watch live video from JimEJamm on www.twitch.tv
-
Dell SUU & OM
DELL SUU (if suulauncher.exe doesn’t work) Launch Dell SUU in server core using command-line. G:\IT\Dell Software Update Utility 6.3.0\suu -g Proceed as usual DELL OM Unzip open manage into C:\OpenManage using G:\IT\Dell OpenManage\OM-SrvAdmin-Dell-Web-WIN-6.3.0-2075_A00.20.exe Run the prereq checker in silent mode using command-line C:\OpenManage\windows\PreReqChecker>RunPreReqChecks.exe /s Ensure that prereq returns to prompt without errors. change to C:\OpenManage\windows\SystemsManagement and […]
-
Winbind
Integrating AD logins to RHEL6 Use yum to install samba-winbind Use authconfig to configure winbind, best not to update the pam files directly. (First, authconfig –savebackup [name]) [root@example]# authconfig –enablewinbind –enablewinbindauth –smbsecurity=ads –smbrealm=your.domain.local –smbservers=dc.your.domain.local –smbworkgroup=WORKGROUP –smbidmapuid=10000-20000 –smbidmapgid=10000-20000 — winbindtemplatehomedir=/home/%D/%U –winbindtemplateshell=/bin/bash –enablewinbindusedefaultdomain –winbindtemplatepri marygroup=%U –enablemkhomedir –updateall Add the server to the domain [root@example]# net ads join […]
-
WEvtUtil
Example of dumping a user’s logins from an RD gateway and domain controller. wevtutil qe /r:RDGATEWAY Microsoft-Windows-TerminalServices-Gateway/Operational /e:root /f:RenderedXML /q:”*[UserData[EventInfo[Username=’DOMAIN\username’]]]” >wevtutil.username.xml wevtutil qe /r:DCSERVER System /f:RenderedXML /q:”*[System[(EventID=5723) and TimeCreated[timediff(@SystemTime)<=8640000]]]” > 5723.xml wevtutil qe /r:DCSERVER Security /f:RenderedXML /q:”*[System[(EventID=4740) and TimeCreated[timediff(@SystemTime)<=8640000]]]” > 4740.xml
-
Diskpart
Example to create a RAID10 striped volume with RAIDR SSD PCIe cards: Hit CTRL+M on boot up to reconfigure RAIDR from RAID0 to RAID1 Do again for second RAIDR card ( you now have two RAID1 RAIDR SSD PCIe cards) from diskpart: select drive # (the first SSD drive) clean (optional) convert dynamic select drive […]
-
KMS Activation
FINDING THE DOMAIN KMS SERVERS nslookup -q=SRV _VLMCS._TCP.your.domain.local KMS OS Client Setup Keys By default, the Windows 7 and Windows Server 2008 R2 operating systems use KMS for activation. In volume installations, the setup key is installed by default, which makes the system a KMS client. If you are converting a computer from a KMS host, MAK, […]
-
Installing SQL on core
For example .. setup.exe /q /iacceptsqlserverlicenseterms /action=install /features=sqlengine,replication /instanceid=SQLEXPRESS /instancename=SQLEXPRESS /usemicrosoftupdate OR you can force enable the UI if (really?) necessary setup.exe /uimode=EnableUIonServerCore Don’t forget your firewall allow rules netsh advfirewall firewall add rule name=”Allow SQL TCP 54321″ protocol=TCP dir=in localport=54321 action=allow netsh advfirewall firewall add rule name=”Allow SQL UDP 1434″ protocol=UDP dir=in localport=1434 action=allow […]
Got any book recommendations?