Quick Fixes

Working Robocopy switches

/mir /sec /log:c:\log.txt

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

To check a Clients Azure join status

dsregcmd /status

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

Create In-Private Mode shortcut. In Target type either:

"%ProgramFiles%\Microsoft\Edge\Application\msedge.exe" -inprivate https://URL
OR
"%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge.exe" -inprivate https://URL

Found a service that was grey out from stopping so needed to force it to stop.

Find OID in task manager or from below, identify server name from Services console.

sc queryex <service name>

taskkill /F /PID <Service PID>

net user %USERNAME% /domain –> user a/c stats.


Perfmon.exe /res

Review computer reliability and problem history

Perfmon.exe /rel

———————————————————-

To set a fixed amount of SQL memory

  1. In Object Explorer, right-click a server and select Properties.
  2. Click the Memory
  3. Under Server Memory Options, enter the amount that you want for Minimum server memory and Maximum server memory.

Use the default settings to allow SQL Server to change its memory requirements dynamically based on available system resources. The default setting for min server memory is 0, and the default setting for max server memory is 2147483647 megabytes (MB). The minimum amount of memory you can specify for max server memory is 16 MB.

———————————————————

    • net statistics server – Server uptime
    • Event 1074 – who forced it down.
    • Event 6005 – Time event log started.
    • Event 6006 – Time event log stopped.

——————————————————

  • ncpa.cpl – launch LAN connection
    ——————————————————
    netstat -an Displays current network connections, ports and routing tables. MS Website
    netstat -b Displays current exe’s connected to internet.
    ——————————————————
  • Find a list of Alias’s in Exchange 2003. Dumps txt to c:\

dsquery * -filter “(&(mail=*)(proxyaddresses=smtp:*))” -attr proxyaddresses displayname -limit 0 > email_addresses.txt

——————————————————

  • systeminfo  (from DOS prompt)

This is give you the spec of a win7 of w2k8 machine.
——————————————————

  • dir *.pst /s > c:\pst.txt     This will save DIR query to a text file.  (ping.bat >> b:\test\ping.txt)
    ——————————————————
  • View Outlook 2010 email headers. Open the eMail > Click on [File]  > Click on [Info] > Click on [Properties]
    ——————————————————
  • tasklist /svc   List running services and their associations.
    ——————————————————
  • List of default appliance passwords http://www.phenoelit-us.org/dpl/dpl.html
    ——————————————————
  • Need to find a MAC address remotely = arp -a XXX.XXX.XXX.XXX
    ——————————————————
  • Print labels word 2003, >File > Print > click Options > untick Allow A4/Letter paper resizing. (label margins were slipping down page)
    ——————————————————
  • Windows spools print jobs by default to the following directory as the they are processed:
       %SystemRoot%\SYSTEM32\SPOOL\PRINTERS

——————————————————-

  • Get-MailboxStatistics | ft DisplayName,TotalItemSize,ItemCount

Gets mailboz sizes, can use get-mailboxstatictics on its own for user list.
——————————————————-

  • Create an empty file of certain size. = fsutil file createnew c:\testfile.txt 10485760

——————————————————-
–> shutdown -r -t 0 (restarts a XP machine in zero seconds)
—> shutdown /m \\ComputerName /r /t 01 /y /f (definitely, positively will reboot)
——————————————————-

–> Find a list of Alias’s in Exchange 2003. Dumps txt to c:\

dsquery * -filter “(&(mail=*)(proxyaddresses=smtp:*))” -attr proxyaddresses displayname -limit 0 > email_addresses.txt
——————————————————-

–> systeminfo (from DOS prompt)

This is give you the spec of a win7 of w2k8 machine.
——————————————————-

–> dir *.pst /s > c:\pst.txt This will save DIR query to a text file. (ping.bat >> b:\test\ping.txt)
——————————————————-

–> View Outlook 2010 email headers. Open the eMail > Click on [File] > Click on [Info] > Click on [Properties]
——————————————————-

–> tasklist /svc List running services and their associations.
——————————————————-

–> List of default appliance passwords http://www.phenoelit-us.org/dpl/dpl.html
——————————————————-

–> BPOS client addresses http://www.microsoft.com/online/help/en-us/helphowto/c0a1a4b9-111f-4bd4-8fab-8147344cd278.htm
——————————————————-

–> Need to find a MAC address remotely = arp -a XXX.XXX.XXX.XXX

nslookup } Name Server Lookup
set q=ns } Set query= name server
set q=all } Set query=all
——————————————————-

–> Print labels word 2003, >File > Print > click Options > untick Allow A4/Letter paper resizing. (label margins were slipping down page)
——————————————————-

–> Windows spools print jobs by default to the following directory as the they are processed:

%SystemRoot%\SYSTEM32\SPOOL\PRINTERS
——————————————————-

–> Get-MailboxStatistics | ft DisplayName,TotalItemSize,ItemCount

Gets mailboz sizes, can use get-mailboxstatictics on its own for user list.
——————————————————–

–> Create an empty file of certain size. = fsutil file createnew c:\testfile.txt 10485760
——————————————————–

–> Discover device serial no. from command line ” wmic bios get serialnumber “
Of a remote device
–> wmic /NODE: “PCName” bios get serialnumber
——————————————————–

–> POWERSHELL Context: get-command *monitor* (spits back all commands that contain monitor)
——————————————————–

–> SEP Endpoint Protection Support tool http://www.symantec.com/business/support/index?page=content&id=TECH105414
——————————————————–

–> vssadmin list writers
——————————————————–

–> slmgr -ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxx (To activate windows 8, dos prompt with Admin rights)
———————————————————

–> ROS appears to hang when opened. delete trusted.certs file located in C:\Documents and Settings\yourusername\Application Data\Sun\Java\Deployment\security
——————————————————–

–> HP Printer drivers, explode HP .exe type %temp% you should see a folder like 7zSDF.tmp or 7zS3B81.tmp. Thats your driver.
——————————————————–

–> Delete a Win7 profile from registry :: HKLM\Software\Microsoft\Windows NT\CurrentVersion\ProfileList :: delete subkeys containing profile name.
——————————————————–
–> Find HP temporary Driver folder.
1. Click Start->Run, type %temp% and enter. It may direct you to the Temp folder.
2. The extract folder will be here, normally it is named as “7zSDF?.tmp”
e.g. 7zS3B81 for a HP 6600
——————————————————–
–> Windows 8 o/s cant access Remote Web Workplace
Put the url of the rww site
a. in the trusted site zone
b. in the IE compatibiilty tab

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

Email thru Powershell

PS C:\> Send-MailMessage -To user@YourDomain -from admin@SenderDomain -subject “Is this thing on?” –Smtp Server mail.RoutingServer.com

——————————————————-

Server UpTime from Dos prompt: net statistics server

——————————————————-

List Content and path of files, spit out to a text file
dir /s /b > out.txt

Leave a comment