Showing posts with label general. Show all posts
Showing posts with label general. Show all posts

Monday, February 08, 2016

Install .Net 3.5 on Windows 2012 R2 server


To install .Net 3.5 on Windows 2012 R2 server you need to mount Windows 2012 R2 dvd and point installation on "dvd"\sorce\sxs directory - in Powershell it will be like this:
 
Add-WindowsFeature NET-Framework-Core -Source d:\sources\sxs

Thursday, January 17, 2013

The WS-Management Service cannot process the request

Exchange 2010 sp2 try to run PowerSheel:
fix:
Recycle MSExchangePowerShellAppPool in IIS.

Wednesday, October 17, 2012

Windows 7 Folder Redirection rename the Home folder in "My Documents

PowerShell script to fix the problem:
$myLocations="\\share1\allusers","\\share2\users","\\pshare3\AdminUsers"

foreach ($loc in $myLocations)
{

    set-location $loc
    $items=Get-ChildItem
    foreach ($item in $items)
    {
      if ($item.getType().name -like "DirectoryInfo")
      {
          cd $item.name
          if (test-path desktop.ini) {del .\desktop.ini -force}
          cd ..
      }
    }
}

Friday, December 09, 2011

Domain Admins Group permissions

I always puzzle why with Domain Admins account rights you have additional dialog box if you access files or directories which do not have explicit permissions for your login account. Finally, I spend some time to research the problem and it is UAC who does it. So if you annoyed by this you need to set UAC down low like in the picture.

Tuesday, January 04, 2011

Friday, February 05, 2010

Cannot install SQL2008

Then I run install it give me in Setup Support Rules: "Restart Computer" - Status is not passed. Solution:
Clearing (but you can delete the key) the value in the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations fixed the issue.
(no reboot)

Thursday, January 21, 2010

Copy NTFS security info.

To copy NTFS information from a volume on Windows 2008 sp2:
robocopy \\fs01\ustore c:\temp\ustoresec /secfix /copy:SOT /E
I will copy the directory structure with security information for folders - no individual files.
S - security
O - ownership
T - timestamp
E - copy all subdirectories including empty

Friday, January 08, 2010

Windows 7 God mode

On Windows 7 computer create a new folder and name it as : GodMode.{ED7BA470-8E54-465E-825C-99712043E01C} .
You will have all configuration and management tools of the OS.

Tuesday, November 10, 2009

Windows icons

I always forgot:
The icons located in \system32\shell32.dll and imageres.dll

Tuesday, October 27, 2009

DCDiag results

configuration: 3 DC - 2003, 2008, 2008
run dcdiag: test services did not pass on 2003 DC
message: it should be WIN32_SHARE_PROCESS not WIN32_OWN_PROCESS
Go to registry :- HKLM-system-CCS-Services-RpcSs . Select RPCSS .

look at the right side you will see a Binary value as "Type" its value is set to 10 . 10 is for WIN32_OWN_PROCESS

If you will change it to 20 in decimal it will be WIN32_SHARE_PROCESS .

Did it on 2003 DC.

GPO processing 1006 1030 errors on terminal server.

issue: Some users accounts randomly stop process GPO.
solution:
  1. Make the user account memeber of "domain admin" group.
  2. Login to TS with the account.
  3. From CMD run "rundll32.exe keymgr.dll,KRShowKeyMgr" command.
  4. Delete everything from "Stored User Names and Passwordds" GUI.
  5. Remove the user from "domain admin" group.

Thursday, September 24, 2009

Microsoft FTP 7.5

The task was to create a FTP service for non-active directory users:
  1. Users have rights for all directories from the root down.
  2. Users have access only isolated directories under root.
Solution:
  1. Use windows 2008 sp 2 VM on Hyper-V
  2. IIS 7.0
  3. FTP 7.5
  4. IIS Manager Authentication
  5. FTP Virtual Host Names
  6. FTP User Isolation - "User Name directory (disable global virtual directories)
Notes:
  1. Do not forget to change security for "Network services" account (ref.3)
  2. Created 3 FTP sites - one for global access (ref.5) needed to enable IE connection, second for non separated FTP and third for isolated users.
  3. In IE7 and 8 you can use "Open FTP site in Windows Explorer" option under "Page", but you will need authenticate second time.
  4. To authenticate you need to type user name as pointed in (ref.4) - "ftpheader.yourdomain.com|username" or with (ref.4) "ftpheader.yourdomain.com\username". The authentiacation will take place after connection to the global FTP site (ref.5).
  5. Regular FTP clients can connect directly using "Virtual host names".
FTP certificate should be chosen on IIS 7.0 server level:

Monday, July 06, 2009

DFSR on windows 2003 R2 servers.

  1. Start DFS management console on any Windows 2003 R2 server.
  2. Configure Replication (membership, connections and replicated folders). If you already have a previously shared folder what you want to replicate on other server - do not copy files, just replicate.
  3. After the replication is done configure a namespace.
  4. Publish the replicated folders to the namespace, and configure login script to access the published share.
  5. It is perfectly normal to have a staging file (..\..\DfsrPrivate\Staging) containing data "If the size of a staging folder is below 90 percent of configured capacity (the high watermark), then staged files are kept in the folder and can be used in case new members are added" - from http://technet.microsoft.com/en-us/library/cc782648(WS.10).aspx

Monday, June 15, 2009

NTP servers pool

Very convinent way to configure NTP sources, servers:
0.pool.ntp.org
1.pool.ntp.org
2.pool.ntp.org
Command line: net time /setsntp:"0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org"
Do not forget to restart "windows time" service.

Tuesday, May 26, 2009

BB 8310 Status

To find BB status including free memory do: alt+shift+H

Monday, May 11, 2009

Broken by updates.

Symptoms:
You can not access IIS web sites locally, search indexing does not work, any service what should authenticate to IIS with NTLM does not work.
Solution: 

I fixed it by this method on two MOSS 2007 servers -

"Method 2: Disable the loopback check

Follow these steps:
  1. Click Start, click Run, type regedit, and then click OK.
  2. In Registry Editor, locate and then click the following registry key:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa
  3. Right-click Lsa, point to New, and then click DWORD Value.
  4. Type DisableLoopbackCheck, and then press ENTER.
  5. Right-click DisableLoopbackCheck, and then click Modify.
  6. In the Value data box, type 1, and then click OK.
  7. Quit Registry Editor, and then restart your computer. "

Wednesday, April 08, 2009

Essential VI Commands

Command Action:

vi Starts the Vi editor
vi <filename> Starts Vi and opens the given file for editing
:q! Exits the Vi editor without saving changes (quit!)
:wq! Exits the Vi editor and saves changes (write and quit!)
:set nu Turns on line numbering
esc Exits text insert mode
i Enters text insert mode
Arrow keys Navigates the cursor
Backspace key Deletes previous character
Delete Deletes selected character

Wednesday, January 21, 2009

Can not browse to DELL IT Assistant

After upgrading Java 6 to update 11, can not open the "IT Assistant" site. Uninstall update and everything will be fine. I checked with update 5 and 7. But you need to reinstall latest update what left, you can do it from "Add/remove programs".

Tuesday, January 20, 2009

Sysprep on Windows 2008

Then use sysprep on Windows 2008, use Generalize option, if you want to change SID. Sysprep you can find under system32 directory.

Thursday, September 25, 2008

Usefull command line utilities

I decided to put some command line utilities what I use and always forgot here. I will update the list:
Terminal services
works on Vista
qwinsta - query terminal services connection
rwinsta - logoff terminal services connection or any local session

General:
Works on Vista and Windows 2008
query { PROCESS SESSION TERMSERVER USER }

Network:
netstat - Displays protocol statistics and current TCP/IP network connections

* all utilities have help just add /? after the utility name or Google it.