Архив

Archive for the ‘Microsoft’ Category

проблема с Normal.dot на терминальном сервере

MS Word 2003, установленный на терминальном сервере Windows 2003 Server, начал через раз выдавать предложение создать новый файл шаблонов Normal.dot в связи с его повреждением.

Выглядело это так:

Word has detected a problem with the existing Normal.dot. Would you like to create a new Normal.dot?

Полное удаление существующих шаблонов и временныз файлов никак не влияло – Word стабильно выдавал свое предупреждение, есть шаблон или его нет.

Помогло выполнение действий, описанных в статьях базы знаний Microsoft:

Every other time that you open a document in Word, the document opens in recovery mode or you receive an error message
You are prompted to save the changes to the Normal.dot or Normal.dotm or Normal.dotm global template every time that you quit Word
Читать дальше…

Как обновить Windows 7 Ultimate RC до Windows 7 Enterprise RTM

Использование на рабочем ноутбуке Windows 7 RC показало, что эта операционная система гораздо быстрее и удобнее в работе, чем Windows XP и Windows Vista.

Однако вышел официальный релиз, компаниям-партнерам давно доступны RTM версии – подходит время обновления.

Причем доступна партнерам именно Enterprise редакция. По информации с сайта Майкрософт, Ultimate и Enterprise полностью идентичны – просто последняя доступна для лицензирования только организациям.

Некоторое неудобство вызывало уведомление Майкрософт о том, что такое обновление будет недоступно.

И правда, запустив установку мы получим сообщение ошибке.

Но не переставлять же хорошо работающую систему, в самом деле!

Приступим.

Что делать с Windows 7 Ultimate RC

Запустить  Registry Editor (Start > Run > regedit)

Открыть раздел HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\Current Version

Заменить слово “Ultimate” на “Enterprise” в ключах ProductName и EditionID.

На этом изменение Windows 7 RC завершено.

Модификация установки WIndows 7 Enterprise

Я рекомендую использовать для установки USB (Flash) диск. Устанавливается система быстрее, чем с DVD. Носить удобнее. Да и модификации можно делать сразу, не записывая ничего на диски. Как это сделать, написано здесь:  http://blogs.technet.com/iwalker/archive/2009/01/21/windows-7-windows-server-2008-r2-c-usb.aspx

Нам остается открыть для редактирования файл \sources\cversion.ini,  заменить значение MinClient на 7100 и сохранить его.

Это все. Можно запускать установку. Для обновления существующей системы это обязательно нужно сделать внутри нее.

Оригинал взят отсюда: http://www.gmtaz.com/index.php/how-to-upgrade-windows-7-rc-ultimate-to-rtm-enterprise/

Рубрики:HOW-TO, Microsoft, Windows 7 Метки: ,

How to Run Programs as a Domain User from a Non-domain Computer

In most cases, not being joined to a client’s domain doesn’t make one iota of difference. You need to access a network share or printer, browser to it and you will be prompted for domain credentials. The fact that you’re using different domain credentials to access the resource from those that you logged in with doesn’t matter one bit. If you want to expedite the process and not wait for an authentication time-out, you can utilize NET USE from the command line to tell Windows which credentials you want to use when accessing certain computers. You can even make them persistent or roll the whole thing into a batch script that you can execute whenever at a particular client.

net use \\server /user:domain\username /persistent:yes

Unfortunately this doesn’t work in all cases. One of my longstanding development pet peeves has been certain tools – I’m looking at you SQL Server Management Studio and SQL Query Analyzer – that don’t allow you to specify alternate domain credentials for authentication. For example, SQL Server Management Studio allows you to log into a SQL Server instance using Windows Authentication or SQL Server Authentication. If the SQL instance requires Windows Authentication – the recommended configuration – SQL Server Management Studio uses your logged in credentials. This works well if your computer is part of the domain, but fails horribly if not. It doesn’t let you specify alternate credentials or even prompt you for alternate credentials if the log-in fails.

Читать дальше…

Рубрики:AD, Microsoft Метки: ,

Как восстановить отсутствующие разделы в Group Policy Editor

Однажды я столкнулся с ситуацией, когда оказалось невозможным включить Windows Firewall. Опции включения и отключения не могли быть изменены. Такое бывает, если эта опция установлена групповой политикой. Причем для этого не обязательно, чтобы компьютер находился в домене. В моем случае с большой вероятностью файервол был отключен вирусом.

Запустив gpedit.msc для редактирования групповой политики, я с удивлением обнаружил, что там отсутствует раздел, содержащий настройки Windows Firewall. Эта статья описывает методы, позволящие восстановить доступ к настройке отсутствующих политик.

When you open the Group Policy Editor in Windows XP Professional, some of the categories under Administrative Templates may be missing. For example when you expand Administrative Templates, the System category may be missing. This article provides information on how to restore the missing folders to the Group Policy Editor.

Читать дальше…

Рубрики:Group Policy, Microsoft, Windows XP

Как узнать имя выполняемого командного файла

И другие фишки, которые могут пригодится при batch-programming
%* in a batch script refers to all the arguments (e.g. %1 %2 %3
%4 %5 …)
Substitution of batch parameters (%n) has been enhanced.  You can
now use the following optional syntax:
%~1         – expands %1 removing any surrounding quotes («)
%~f1        - expands %1 to a fully qualified path name
%~d1        - expands %1 to a drive letter only
%~p1        - expands %1 to a path only
%~n1        - expands %1 to a file name only
%~x1        - expands %1 to a file extension only
%~s1        - expanded path contains short names only
%~a1        - expands %1 to file attributes
%~t1        - expands %1 to date/time of file
%~z1        - expands %1 to size of file
%~$PATH:1   – searches the directories listed in the PATH
environment variable and expands %1 to the fully
qualified name of the first one found.  If the
environment variable name is not defined or the
file is not found by the search, then this
modifier expands to the empty string
The modifiers can be combined to get compound results:
%~dp1       – expands %1 to a drive letter and path only
%~nx1       – expands %1 to a file name and extension only
%~dp$PATH:1 – searches the directories listed in the PATH
environment variable for %1 and expands to the
drive letter and path of the first one found.
%~ftza1     – expands %1 to a DIR like output line
In the above examples %1 and PATH can be replaced by other
valid values.  The %~ syntax is terminated by a valid argument
number.  The %~ modifiers may not be used with %*

Using batch parameters

You can use batch parameters anywhere within a batch file to extract information about your environment settings.

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/percent.mspx?mfr=true

Shift

Changes the position of batch parameters in a batch file.

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/shift.mspx?mfr=true

Using command redirection operators

You can use redirection operators to redirect command input and output streams from the default locations to different locations. The input or output stream location is referred to as a handle

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/redirection.mspx?mfr=true

Using filters

Used in conjunction with the command redirection pipe character (|), a command filter is a command within a command that reads the command’s input, transforms the input, and then writes the output. Filter commands help you sort, view, and select parts of a command output.

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/filters.mspx?mfr=true

Читать дальше…

Рубрики:Batch programming, Microsoft

Как упавший контроллер домена поднять

http://articles.techrepublic.com.com/5100-10878_11-6082663.html

хорошая статья – что делать, если упал один из контроллеров домена

Читать дальше…

Рубрики:AD, HOW-TO, Microsoft Метки: , ,

NTFS Links

NTFS links – reparse, symbolic, hard, junction

http://waynes-world-it.blogspot.com/2008/06/ntfs-links-reparse-symbolic-hard.html

Reading through various Microsoft documents, it seems several terms have been adopted to describe methods of linking one NTFS object to another in different scenarios. I tried and couldn’t find a single description of the different methods; therefore below you’ll find my interpretation, mostly describing how they link to each other, and the tools available to manage the links.

Reparse Point File – user-defined data, interpreted by a file sytem filter, eg. RIS SIS, Microsoft RSS
Reparse Point Directory – Map a local folder to any other local folder on or across local volumes, eg c:\windows\temp mapped to c:\temp
Hard Link File – filesystem link linking one file to another, linking a file object to one or more directory entries.
NTFS Junction Point Directory -> Reparse Point Directory
Directory Symbolic Link -> NTFS Junction Point Directory
Volume Mount point -> Directory Symbolic Link mapping the root of one local volume to a folder in another local volume
Soft Link Directory -> NTFS Junction Point Directory -> Reparse Point Directory
NTFS Junction Point Files -> Reparse Point File
Symbolic Directory Links -> NTFS Junction Point Directory
Symbolic File Links Matching Unix symbolic link (soft link) functionality with absolute file, relative file in local -> local, local -> remote, remote -> local and remote -> remote combinations, available in Vista and 2008.
Tools to manage links:

linkd.exe (2000 resource kit) – Create NTFS Junction Points (the source directory must be empty)
mountvol.exe (2000 CD-rom) – Manage directory symbolic links deisnged to mount a volume (which may or may not have a drive letter already associated) bypassing 26 drive letter limitations
delrp.exe (2000 resource kit) – Delete NTFS junction points and other types of reparse points
junction.exe (sysinternals) – Create or delete NTFS Junction points (reparse points). Note that you can create a junction that maps a directory to a file target, it just doesn’t achieve much.
fsutil.exe hardlink (oem with XP/2003) – Create hard file links
fsutil.exe reparsepoint (oem with XP/2003) – Query or delete reparse points
mklink – Vista/2008 utility to create symbolic directory and file links, hard links and directory junctions
Читать дальше…

Рубрики:Microsoft Метки: ,

Как подружить Vista и Samba

Ноябрь 4, 2008 Sharm 1 комментарий

Установив Microsoft Vista обнаружил, что с компьютера невозможно получить доступ к сетевым ресурсам на сервере Samba под Linux. Быстрый поиск показал, что причиной является отсутствие поддержки NTLMv2 на нашем Samba сервере. В Microsoft Vista по умолчанию отключены более старые протоколы аутентификации. 

Исправить эту ситуацию можно так:

1. Открыть окно «Run» для выполнения команд и запустить «secpol.msc»:

Vista and Samba

2. Выбрать «continue» когда Vista выведет предупреждение

3. Выбрать «Local Policies» –> «Security Options»:

Vista and Samba

4. Найти «Network Security: LAN Manager authentication level» и открыть. 

5. Изменить значение по-умолчанию «NTVLM2 responses only» на «LM and NTLM – use NTLMV2 session security if negotiated»:

Vista and Samba

Теперь Vista сможет работать с Samba нормально. Однако лучшим вариантом, пожалуй, является обновление Samba до 3-ей версии, где уже реализована поддержка NTVLM2. 

Нас ведь интересует безопасная работа :)

Original

Полезные ресурсы по Windows Server 2008

Документация от Microsoft на русском языке:

http://www.microsoft.com/rus/windowsserver2008/tutorials/default.mspx

Как продлить работу пробной версии Vista/Server 2008 до 120 или 240 дней

Windows Vista and Windows Server 2008 has free activation grace period which allows user to install and use the operating system for 120 days and 240 days without product key or product activation completed. The initial grace period given is 30 days and 60 days respectively for Windows Vista and Server 2008, and user has to “rearm” the system when the expiration of grace period is nearly ending in order to reset and extend the trial evaluation period, and hence activation grace period again.

  1. Open an elevated privilege command prompt.
  2. Type the slmgr.vbs -rearm, and then press Enter to reset the activation grace period to 60 days.
  3. Restart the computer.

Читать дальше…