Random Notes from the field - Stuff to remember

Here's a bunch of random notes of Windows stuff that I wanted to remember

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get User who's logged on remotely
WMIC /NODE: "hostname"  COMPUTERSYSTEM GET USERNAME
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sysprep
'A fatal error occurred while trying to sysprep the machine.' 

This error shows that sysprep was run multiple times on the machine, please open a command prompt, type: slmgr /dlv to view how many times of remaining Windows Activation count. Generally speaking, to sysprep the image on a single computer for multiple times, you need to configure the Microsoft-Windows-Security-SPP | SkipRearm to 1 in the unattend.xml file. I am assuming whether you configure the Microsoft-Windows-Security-Licensing-SLC | SkipRearm to 1 instead of SPP, the SLC setting is deprecated and should not be used.  
As a work around of this problem, please type: regedit in the Start Search box to open Registry Editor, set the value of GeneralizationState under HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus to 7, then run sysprep again.
If the same issue still persists, please unistall the MSDTC and Reinstall it, then try the sysprep.
To uninstall MSDTC :- msdtc -uninstall
To reinstall  MSDTC :- msdtc –install


EVENT ID 1074 = Shutdown
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Open Network Connections
ncpa.cpl network connections 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ReSync Time
w32tm /resync
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Extending Partition with DELL extpart 
DELL extpart c: 10240 
if this fails to see C: drive stop the indexing service and the windows search service and try again. Or the COMMVAULT services
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Check User account details
net user username /domain
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Check VSS
vssadmin list writers
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Powershell Eqiv TOP command
while (1) { ps | sort -desc cpu | select -first 30; sleep -seconds 2; cls }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Turn Firewall Off
netsh advfirewall set allprofiles state off
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Install Dot Net 3.5 on WinServer2012  (R: is DVD Drive)
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:R:\sources\sxs
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get DEV Group Members
get-adgroupmember -identity DEV -Recursive | GET-ADUSER | SORT NAME | FORMAT-TABLE Name, Enabled -autosize
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
extend the grace period on Win2008
 slmgr.vbs -dli
slmgr.vbs –rearm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Clean up WINSXS
Windows 2008 Server
DISM /online /Cleanup-Image /SpSuperseded
Windows 2012 R2
dism.exe /online /Cleanup-Image /StartComponentCleanup
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
See with processor you have 32 or 64
echo %PROCESSOR_ARCHITECTURE%
AMD64 = 64Bit
x86 = 32Bit
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SNMP Tabs not showing 
From and elevated PowerShell prompt Install-WindowsFeature RSAT-SNMP 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Comments

Popular posts from this blog

Going old school with CommVault Simpana Data Interface Pairs