Szukaj na tym blogu

czwartek, 29 października 2015

Performance monitor disk counters

To measure latency use: Avg. Disk sec/Write and Avg. Disk sec/Read. The values recorded by these counters are always in seconds (nevermind the scale, scale is used only for the graph). So if the average recorded value for Avg. Disk sec/Write is 0,022 sec it is equal to 22 ms. Latency up to 25 ms is accepted and quite normal

PhysicalDisk\% Idle Time This measures the percentage of time the disk was idle during the sample interval. If this counter falls below 20 percent, the disk system is saturated. You may consider replacing the current disk system with a faster disk system.

Memory\Cache Bytes This indicates the amount of memory being used for the file system cache. There may be a disk bottleneck if this value is greater than 300MB.


wtorek, 27 października 2015

Find out hard disk parametrs from disk model number

A. A typical desktop hard disk rotate at 7,200 revolutions per minute (RPM). A typical server hard disk spin at 10,000 or 15,000 rpm to achieve sequential media transfer speeds. You can use hard disk model number to obtain disk RPM. For example, a typical Seagat disk Model # ST373455SS can provide following information:
  • ST - Brand identity
  • 3 - Form Factor (3 = 3.5")
  • 73 - Disk size / Capacity in GB i.e. 73GB
  • 4 - Reserved for future use
  • 5 - RPM ( 5 = 15k and 0 = 10K)
  • - Generation
  • SS - Indicates interface i.e Serial Attached SCSI

czwartek, 15 października 2015

Script for asking for computer name during OS deployment task sequence

You need to create a package with script like the below


Dim sNewComputerName, oTaskSequence, sTSMachineName, bPromptName
Set oTaskSequence = CreateObject ("Microsoft.SMS.TSEnvironment")
' Get the name the computer is set to receive and truncate to first 6 letters
sTSMachineName = lcase(oTaskSequence("_SMSTSMachineName"))
If left(sTSMachineName,6) = "minint" Then
 bPromptName = True
ElseIf sTSMachineName = "minwinpc" Then
 bPromptName = True
Else
 bPromptName = False
End If
' Note: The wscript.echo commands are logged in SMSTS.log for troubleshooting.  They are not displayed to the end user.
If bPromptName = True Then
 wscript.echo "Detected that the computer name is scheduled to receive a random value.  Prompting user to input a standard name."
 sNewComputerName = InputBox ("Please enter a standard computer name to continue.", "Computer Name", , 30,30)
 oTaskSequence("OSDComputerName") = UCase(sNewComputerName)
 wscript.echo "Set Task Sequence variable OSDComputerName to: " & sNewComputerName
Else
 wscript.echo "Computer set to receive a standard name, continuing as is."
End If

SCCM task sequence to change Program Files location

I used it in scenarion with computers with 2 hard disks: firts small one SSD and second one standard SATA disk. We wanted to place all program files on the second disk

There is a package contains PFx86.reg file and program for this package:
cmd /c xcopy *.* %systemroot%\temp /E /H /C /I /Q /Y

Reg PFx86.reg file looks like below:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion]
"ProgramFilesDir"="D:\\Program Files"
"ProgramFilesDir (x86)"="D:\\Program Files (x86)"
"ProgramW6432Dir"="D:\\Program Files"

Then You run two command line tasks:
%systemroot%\syswow64\regedit /s %systemroot%\temp\PFx86.reg

and
%systemroot%\regedit /s %systemroot%\temp\PFx86.reg


poniedziałek, 5 października 2015

To remove item (meeting) from meeting\conference room hosted on Exchange when users left the company

In Exchange management shell:

Get-MailboxFolderStatistics -Identity RoomName -FolderScope calendar
Look at the FolderPath it could be different
FolderPath                        : /Kalendarz
FolderPath                        : /Calendar

Add-MailboxFolderPermission -Identity RoomName:\Kalendarz -User -AccessRigh
ts owner

Then You can remove any meetings from RoomName meeting room using Outlook